Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction") translateModel(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005279/0.005279, allocations: 100.3 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 188.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1525/0.1525, allocations: 28.78 MB / 319.3 MB, free: 1.887 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.89 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09312, allocations: 56.4 MB / 0.4889 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction): time 0.00322/0.09638, allocations: 2.336 MB / 0.4912 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.09755, allocations: 0.627 MB / 0.4918 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.09777, allocations: 8 kB / 0.4918 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.09799, allocations: 47.52 kB / 0.4919 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.09812, allocations: 31.67 kB / 0.4919 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.09854, allocations: 123.8 kB / 0.492 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.09887, allocations: 268.1 kB / 0.4923 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.09915, allocations: 186 kB / 0.4925 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.09927, allocations: 103.6 kB / 0.4926 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.0994, allocations: 123.3 kB / 0.4927 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.38e-05/0.09945, allocations: 28 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.09957, allocations: 59.91 kB / 0.4928 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.073e-05/0.09967, allocations: 79.69 kB / 0.4928 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.09979, allocations: 151 kB / 0.493 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.1002, allocations: 330.4 kB / 0.4933 GB, free: 5.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1002, allocations: 0 / 0.4933 GB, free: 5.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1002, allocations: 0 / 0.4933 GB, free: 5.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1002, allocations: 4 kB / 0.4933 GB, free: 5.617 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008921/0.1011, allocations: 0.6677 MB / 0.494 GB, free: 4.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.1011, allocations: 8.031 kB / 0.494 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/0.1012, allocations: 44.66 kB / 0.494 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.1015, allocations: 295.6 kB / 0.4943 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1016, allocations: 25.03 kB / 0.4943 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.1016, allocations: 32.38 kB / 0.4943 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.1022, allocations: 343.9 kB / 0.4947 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1022, allocations: 0 / 0.4947 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.1022, allocations: 16 kB / 0.4947 GB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1022, allocations: 8 kB / 0.4947 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.1027, allocations: 242.4 kB / 0.4949 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.1042, allocations: 1.156 MB / 0.496 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/0.1047, allocations: 222.5 kB / 0.4963 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.1049, allocations: 96.81 kB / 0.4964 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.1049, allocations: 15.98 kB / 0.4964 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.1052, allocations: 157.8 kB / 0.4965 GB, free: 2.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.1052, allocations: 0 / 0.4965 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006516/0.1059, allocations: 321.4 kB / 0.4968 GB, free: 1.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.106, allocations: 63.25 kB / 0.4969 GB, free: 1.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.1062, allocations: 262.7 kB / 0.4971 GB, free: 1.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.1062, allocations: 29.7 kB / 0.4972 GB, free: 1.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1064, allocations: 216.3 kB / 0.4974 GB, free: 1.207 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.76e-05/0.1064, allocations: 67.47 kB / 0.4974 GB, free: 1.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.1065, allocations: 45.7 kB / 0.4975 GB, free: 1.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1066, allocations: 338.8 kB / 0.4978 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.1068, allocations: 92.19 kB / 0.4979 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.107, allocations: 137.5 kB / 0.498 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.1074, allocations: 249.9 kB / 0.4983 GB, free: 248 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1074, allocations: 3.938 kB / 0.4983 GB, free: 244 kB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005177/0.108, allocations: 319.1 kB / 0.4986 GB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.108, allocations: 40.97 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.108, allocations: 0 / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.108, allocations: 4 kB / 0.4986 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.1082, allocations: 35.92 kB / 0.4986 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1082, allocations: 4 kB / 0.4986 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.1084, allocations: 27.81 kB / 0.4987 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1084, allocations: 12 kB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (Hunting.count,$PRE.Hunting.count,Hunting.T_start,$PRE.Hunting.T_start,$whenCondition1,Lynx.Integrator1.local_reset,Hare.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.1085, allocations: 168.4 kB / 0.4988 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.1086, allocations: 23.86 kB / 0.4989 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004705/0.1091, allocations: 263.6 kB / 0.4991 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1091, allocations: 0 / 0.4991 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1091, allocations: 0 / 0.4991 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1091, allocations: 0 / 0.4991 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007381/0.1098, allocations: 0.6623 MB / 0.4998 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1098, allocations: 3.938 kB / 0.4998 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.11, allocations: 35.91 kB / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1101, allocations: 0 / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.1101, allocations: 8 kB / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1101, allocations: 0 / 0.4998 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1101, allocations: 7.938 kB / 0.4998 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006697/0.1108, allocations: 461.3 kB / 0.5003 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.1108, allocations: 104.9 kB / 0.5004 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.1109, allocations: 4 kB / 0.5004 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.111, allocations: 7.984 kB / 0.5004 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.1111, allocations: 27.84 kB / 0.5004 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1111, allocations: 4 kB / 0.5004 GB, free: 13.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.1113, allocations: 194 kB / 0.5006 GB, free: 13.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1113, allocations: 0 / 0.5006 GB, free: 13.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1116, allocations: 67.84 kB / 0.5007 GB, free: 13.67 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Hare.Integrator1.y,Lynx.Integrator1.y) * Number of discrete variables: 3 ($whenCondition1,Hunting.T_start,Hunting.count) * Number of discrete states: 1 (Hunting.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001276/0.1117, allocations: 107.8 kB / 0.5008 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.1122, allocations: 286.9 kB / 0.501 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1122, allocations: 0 / 0.501 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.1125, allocations: 107.9 kB / 0.5011 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.1128, allocations: 33.12 kB / 0.5012 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009522/0.1138, allocations: 0.5718 MB / 0.5017 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.1141, allocations: 0.7865 MB / 0.5025 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.213e-05/0.1142, allocations: 13.55 kB / 0.5025 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.1142, allocations: 19.44 kB / 0.5025 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1143, allocations: 4 kB / 0.5025 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Templates: time 0.004884/0.1191, allocations: 2.004 MB / 0.5045 GB, free: 9.68 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.makefile (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.sim & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Hair_Lynx_Interaction.pipe 2>&1)