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.001097/0.001097, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001104/0.001104, allocations: 190.8 kB / 16.13 MB, free: 6.652 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.399/1.399, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3395/0.3395, allocations: 28.79 MB / 318.8 MB, free: 5.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 59.91 kB / 385.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4354/0.4367, allocations: 56.41 MB / 442.3 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004793/0.4416, allocations: 3.642 MB / 446 MB, free: 37.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.4438, allocations: 0.6606 MB / 446.6 MB, free: 37.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.4442, allocations: 18.34 kB / 446.6 MB, free: 37.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004464/0.4447, allocations: 124.7 kB / 446.8 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.445, allocations: 92.19 kB / 446.9 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.4456, allocations: 310.7 kB / 447.2 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006527/0.4463, allocations: 0.8161 MB / 448 MB, free: 36.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007264/0.447, allocations: 0.6168 MB / 448.6 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.4473, allocations: 299.8 kB / 448.9 MB, free: 36.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003164/0.4476, allocations: 428.6 kB / 449.3 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.4477, allocations: 57.94 kB / 449.4 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.4479, allocations: 82.81 kB / 449.4 MB, free: 36.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000299/0.4482, allocations: 407.1 kB / 449.8 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002991/0.4485, allocations: 0.5844 MB / 450.4 MB, free: 35.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007197/0.4492, allocations: 1.128 MB / 451.6 MB, free: 35.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4493, allocations: 0 / 451.6 MB, free: 35.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4493, allocations: 0 / 451.6 MB, free: 35.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.4493, allocations: 0 / 451.6 MB, free: 35.32 MB / 366.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.002113/0.4514, allocations: 1.786 MB / 453.3 MB, free: 34.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.22e-05/0.4515, allocations: 15.47 kB / 453.4 MB, free: 34.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.4518, allocations: 193.3 kB / 453.5 MB, free: 33.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008025/0.4526, allocations: 0.746 MB / 454.3 MB, free: 33.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.4526, allocations: 74.78 kB / 454.4 MB, free: 33.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.4528, allocations: 107.4 kB / 454.5 MB, free: 33.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.4543, allocations: 1.158 MB / 455.6 MB, free: 32.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.4544, allocations: 2.781 kB / 455.6 MB, free: 32.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/0.4545, allocations: 44.38 kB / 455.7 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/0.4545, allocations: 26.22 kB / 455.7 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.456, allocations: 1.095 MB / 456.8 MB, free: 32.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/0.4605, allocations: 3.678 MB / 460.5 MB, free: 30.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.4621, allocations: 1.327 MB / 461.8 MB, free: 30.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.4627, allocations: 485.3 kB / 462.3 MB, free: 30.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.622e-05/0.4628, allocations: 29.38 kB / 462.3 MB, free: 30.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.4628, allocations: 44.55 kB / 462.3 MB, free: 30.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.826e-06/0.4628, allocations: 0 / 462.3 MB, free: 30.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.002049/0.4649, allocations: 1.517 MB / 463.9 MB, free: 29.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.4649, allocations: 62.12 kB / 463.9 MB, free: 29.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.4664, allocations: 1.287 MB / 465.2 MB, free: 29.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.4664, allocations: 38.58 kB / 465.2 MB, free: 29.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.4669, allocations: 0.7699 MB / 466 MB, free: 28.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.467, allocations: 230.1 kB / 466.2 MB, free: 28.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.4671, allocations: 115.8 kB / 466.4 MB, free: 28.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.743e-05/0.4672, allocations: 333.2 kB / 466.7 MB, free: 27.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/0.4676, allocations: 440.3 kB / 467.1 MB, free: 27.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004451/0.4681, allocations: 0.5257 MB / 467.6 MB, free: 27.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.4692, allocations: 0.9965 MB / 468.6 MB, free: 27.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.4692, allocations: 1.312 kB / 468.6 MB, free: 27.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001683/0.4709, allocations: 1.176 MB / 469.8 MB, free: 26.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.471, allocations: 9.5 kB / 469.8 MB, free: 26.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.471, allocations: 3.375 kB / 469.8 MB, free: 26.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.471, allocations: 5.375 kB / 469.8 MB, free: 26.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004793/0.4715, allocations: 133.9 kB / 470 MB, free: 26.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.4715, allocations: 8.516 kB / 470 MB, free: 26.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.4718, allocations: 52.84 kB / 470 MB, free: 26.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.4718, allocations: 26.22 kB / 470 MB, free: 26.81 MB / 366.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.0005356/0.4724, allocations: 381.2 kB / 470.4 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.4726, allocations: 142.6 kB / 470.6 MB, free: 26.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.4742, allocations: 1.196 MB / 471.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.4742, allocations: 6.781 kB / 471.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.4742, allocations: 5.344 kB / 471.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4742, allocations: 3.422 kB / 471.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.4772, allocations: 2.357 MB / 474.1 MB, free: 25.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.4772, allocations: 0 / 474.1 MB, free: 25.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/0.4777, allocations: 112.7 kB / 474.2 MB, free: 25.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.4777, allocations: 2.5 kB / 474.2 MB, free: 25.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.527e-05/0.4777, allocations: 13.5 kB / 474.2 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/0.4777, allocations: 5.562 kB / 474.3 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4777, allocations: 8 kB / 474.3 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.4801, allocations: 1.873 MB / 476.1 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.4803, allocations: 205 kB / 476.3 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.524e-05/0.4804, allocations: 12.12 kB / 476.3 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.4807, allocations: 10.75 kB / 476.4 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.4808, allocations: 40.97 kB / 476.4 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.4808, allocations: 25.16 kB / 476.4 MB, free: 24.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.4821, allocations: 0.8965 MB / 477.3 MB, free: 24.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4821, allocations: 1.562 kB / 477.3 MB, free: 24.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007423/0.4828, allocations: 209.8 kB / 477.5 MB, free: 24.03 MB / 366.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.000221/0.4831, allocations: 119.1 kB / 477.6 MB, free: 23.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.4847, allocations: 0.9841 MB / 478.6 MB, free: 23.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4847, allocations: 4.062 kB / 478.6 MB, free: 23.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005873/0.4853, allocations: 0.5053 MB / 479.1 MB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007177/0.486, allocations: 91.47 kB / 479.2 MB, free: 23.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.4902, allocations: 3.355 MB / 482.6 MB, free: 21.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008145/0.491, allocations: 1.304 MB / 483.9 MB, free: 20.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.4913, allocations: 76.16 kB / 484 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.4914, allocations: 45.36 kB / 484 MB, free: 20.9 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4914, allocations: 3.938 kB / 484 MB, free: 20.89 MB / 366.1 MB Notification: Performance of Templates: time 0.01393/0.5054, allocations: 4.99 MB / 489 MB, free: 20.41 MB / 366.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)