Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 105 kB / 16.41 MB, free: 6.461 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.001349/0.001349, allocations: 185.7 kB / 17.34 MB, free: 5.719 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1636/0.1636, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.89 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09839, allocations: 56.41 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004364/0.1028, allocations: 3.649 MB / 0.4932 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1045, allocations: 0.6779 MB / 0.4939 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005873/0.1051, allocations: 19.94 kB / 0.4939 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005003/0.1056, allocations: 170.3 kB / 0.4941 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004555/0.1061, allocations: 138.7 kB / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007538/0.1068, allocations: 359.6 kB / 0.4946 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007846/0.1076, allocations: 0.8444 MB / 0.4954 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007095/0.1083, allocations: 0.6442 MB / 0.496 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.1086, allocations: 330.4 kB / 0.4963 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.1089, allocations: 421.6 kB / 0.4967 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.109, allocations: 84 kB / 0.4968 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.1092, allocations: 112 kB / 0.4969 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002932/0.1095, allocations: 430.5 kB / 0.4973 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003656/0.1098, allocations: 0.6164 MB / 0.4979 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009738/0.1108, allocations: 1.252 MB / 0.4991 GB, free: 292 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1108, allocations: 0 / 0.4991 GB, free: 292 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1108, allocations: 0 / 0.4991 GB, free: 292 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.1109, allocations: 0 / 0.4991 GB, free: 292 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001808/0.1127, allocations: 1.78 MB / 0.5009 GB, free: 14.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1127, allocations: 12.03 kB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.1129, allocations: 198.5 kB / 0.5011 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.1137, allocations: 0.7511 MB / 0.5018 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.861e-05/0.1137, allocations: 82.44 kB / 0.5019 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.1138, allocations: 108.3 kB / 0.502 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1152, allocations: 1.154 MB / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.1152, allocations: 192 / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-05/0.1153, allocations: 47.94 kB / 0.5032 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.1153, allocations: 31.98 kB / 0.5032 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1165, allocations: 1.093 MB / 0.5043 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003554/0.1201, allocations: 3.638 MB / 0.5078 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.1215, allocations: 1.334 MB / 0.5091 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.1219, allocations: 486.3 kB / 0.5096 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.486e-05/0.122, allocations: 28.77 kB / 0.5096 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.1221, allocations: 35.12 kB / 0.5097 GB, free: 5.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 1.693e-06/0.1221, allocations: 4 kB / 0.5097 GB, free: 5.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001582/0.1236, allocations: 1.516 MB / 0.5111 GB, free: 3.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.1237, allocations: 63.97 kB / 0.5112 GB, free: 3.613 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.1249, allocations: 1.285 MB / 0.5125 GB, free: 2.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.125, allocations: 37.7 kB / 0.5125 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004808/0.1255, allocations: 0.7793 MB / 0.5132 GB, free: 1.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1256, allocations: 224.7 kB / 0.5135 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.1257, allocations: 118.2 kB / 0.5136 GB, free: 1.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.909e-05/0.1259, allocations: 337.8 kB / 0.5139 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/0.1263, allocations: 437.1 kB / 0.5143 GB, free: 392 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1935/0.3198, allocations: 0.5237 MB / 0.5148 GB, free: 27.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.3212, allocations: 0.991 MB / 0.5158 GB, free: 27.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.3212, allocations: 1.875 kB / 0.5158 GB, free: 27.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001341/0.3226, allocations: 1.181 MB / 0.5169 GB, free: 27.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3226, allocations: 5.594 kB / 0.517 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3226, allocations: 4 kB / 0.517 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.3227, allocations: 6.438 kB / 0.517 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.3231, allocations: 132.2 kB / 0.5171 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.3232, allocations: 5.219 kB / 0.5171 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.3235, allocations: 56.16 kB / 0.5171 GB, free: 27.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/0.3235, allocations: 23.34 kB / 0.5172 GB, free: 27.56 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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.0005339/0.3241, allocations: 381.4 kB / 0.5175 GB, free: 27.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.3242, allocations: 144.1 kB / 0.5177 GB, free: 27.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.3257, allocations: 1.193 MB / 0.5188 GB, free: 27.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3257, allocations: 10.03 kB / 0.5188 GB, free: 27.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3257, allocations: 0 / 0.5188 GB, free: 27.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.3257, allocations: 4.641 kB / 0.5188 GB, free: 27.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.3282, allocations: 2.354 MB / 0.5211 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.3282, allocations: 4.812 kB / 0.5212 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.3287, allocations: 109.8 kB / 0.5213 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3287, allocations: 2.75 kB / 0.5213 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.3288, allocations: 17.89 kB / 0.5213 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.3288, allocations: 9.734 kB / 0.5213 GB, free: 27.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3288, allocations: 0 / 0.5213 GB, free: 27.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.3308, allocations: 1.871 MB / 0.5231 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.3309, allocations: 198.3 kB / 0.5233 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.353e-05/0.331, allocations: 15.31 kB / 0.5233 GB, free: 26.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.3312, allocations: 19.31 kB / 0.5233 GB, free: 26.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.998e-05/0.3313, allocations: 37.62 kB / 0.5234 GB, free: 26.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.3314, allocations: 18.27 kB / 0.5234 GB, free: 26.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.3325, allocations: 0.8988 MB / 0.5243 GB, free: 26.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3325, allocations: 0 / 0.5243 GB, free: 26.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005353/0.333, allocations: 205.9 kB / 0.5245 GB, free: 26.53 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001508/0.3332, allocations: 124 kB / 0.5246 GB, free: 26.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.3344, allocations: 0.9807 MB / 0.5255 GB, free: 26.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3344, allocations: 0 / 0.5255 GB, free: 26.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005596/0.335, allocations: 0.5087 MB / 0.526 GB, free: 26.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.3355, allocations: 96.31 kB / 0.5261 GB, free: 26.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.3391, allocations: 2.842 MB / 0.5289 GB, free: 24.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008401/0.3399, allocations: 1.311 MB / 0.5302 GB, free: 24.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3401, allocations: 55.48 kB / 0.5302 GB, free: 24.16 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3401, allocations: 7 kB / 0.5302 GB, free: 24.16 MB / 398.1 MB Notification: Performance of Templates: time 0.01725/0.3573, allocations: 11.29 MB / 0.5413 GB, free: 20.33 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)