Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3268/0.3268, allocations: 28.82 MB / 319.2 MB, free: 5.703 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 71.89 kB / 386.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3364, allocations: 56.4 MB / 443 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.00378/0.3402, allocations: 3.664 MB / 446.7 MB, free: 37.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3415, allocations: 0.6779 MB / 447.4 MB, free: 37.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.3419, allocations: 18.22 kB / 447.4 MB, free: 37.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003687/0.3423, allocations: 180.1 kB / 447.6 MB, free: 37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002795/0.3425, allocations: 137.4 kB / 447.7 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.3431, allocations: 363.9 kB / 448.1 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005812/0.3437, allocations: 0.8467 MB / 448.9 MB, free: 36.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006231/0.3444, allocations: 0.6361 MB / 449.5 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.3446, allocations: 342.4 kB / 449.9 MB, free: 36.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.3448, allocations: 418 kB / 450.3 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3449, allocations: 88.84 kB / 450.4 MB, free: 36.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.3451, allocations: 116.2 kB / 450.5 MB, free: 36.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.3454, allocations: 451.7 kB / 450.9 MB, free: 35.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.3456, allocations: 0.6322 MB / 451.6 MB, free: 35.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007269/0.3464, allocations: 1.211 MB / 452.8 MB, free: 34.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3464, allocations: 2.781 kB / 452.8 MB, free: 34.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3464, allocations: 7.312 kB / 452.8 MB, free: 34.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.3464, allocations: 0 / 452.8 MB, free: 34.82 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001753/0.3482, allocations: 1.82 MB / 454.6 MB, free: 33.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3482, allocations: 10.34 kB / 454.6 MB, free: 33.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/0.3484, allocations: 203.5 kB / 454.8 MB, free: 33.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006797/0.3491, allocations: 0.7539 MB / 455.6 MB, free: 32.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.159e-05/0.3492, allocations: 83.86 kB / 455.6 MB, free: 32.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3493, allocations: 114 kB / 455.7 MB, free: 32.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.3508, allocations: 1.277 MB / 457 MB, free: 32.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.3509, allocations: 192 / 457 MB, free: 32.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.501e-05/0.3509, allocations: 48.44 kB / 457.1 MB, free: 32.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.184e-05/0.351, allocations: 47.03 kB / 457.1 MB, free: 32.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.3525, allocations: 1.228 MB / 458.3 MB, free: 31.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003924/0.3564, allocations: 3.921 MB / 462.3 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.358, allocations: 1.366 MB / 463.6 MB, free: 29.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.3585, allocations: 0.4962 MB / 464.1 MB, free: 29.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.29e-05/0.3586, allocations: 26.83 kB / 464.2 MB, free: 29.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.3586, allocations: 44.62 kB / 464.2 MB, free: 29.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 2.574e-06/0.3586, allocations: 0 / 464.2 MB, free: 29.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.001895/0.3605, allocations: 1.562 MB / 465.8 MB, free: 28.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3606, allocations: 85.55 kB / 465.8 MB, free: 28.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.3619, allocations: 1.375 MB / 467.2 MB, free: 28.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.3619, allocations: 36.33 kB / 467.3 MB, free: 28.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.3623, allocations: 0.8352 MB / 468.1 MB, free: 27.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.3625, allocations: 245 kB / 468.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.3627, allocations: 157.7 kB / 468.5 MB, free: 27.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.3627, allocations: 336.9 kB / 468.8 MB, free: 26.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000495/0.3632, allocations: 472.1 kB / 469.3 MB, free: 26.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006615/0.3639, allocations: 0.7193 MB / 470 MB, free: 26.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.3653, allocations: 1.235 MB / 471.2 MB, free: 25.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3654, allocations: 6.312 kB / 471.2 MB, free: 25.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001883/0.3672, allocations: 1.386 MB / 472.6 MB, free: 25.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.3673, allocations: 9.469 kB / 472.6 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.3673, allocations: 8.531 kB / 472.6 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.026e-05/0.3673, allocations: 16.19 kB / 472.7 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.3679, allocations: 187.4 kB / 472.8 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.15e-05/0.368, allocations: 15.89 kB / 472.9 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.3683, allocations: 90.55 kB / 472.9 MB, free: 25.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-05/0.3684, allocations: 41.72 kB / 473 MB, free: 25.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.000525/0.3689, allocations: 404 kB / 473.4 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.3691, allocations: 144.8 kB / 473.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.3707, allocations: 1.249 MB / 474.8 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3708, allocations: 7.781 kB / 474.8 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.3708, allocations: 0 / 474.8 MB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.3708, allocations: 12.31 kB / 474.8 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.3734, allocations: 2.398 MB / 477.2 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3734, allocations: 5.375 kB / 477.2 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.3739, allocations: 121.8 kB / 477.3 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3739, allocations: 8.062 kB / 477.3 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.374, allocations: 17.44 kB / 477.3 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.374, allocations: 2.75 kB / 477.3 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.374, allocations: 1.375 kB / 477.3 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.3761, allocations: 1.982 MB / 479.3 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.3762, allocations: 211.8 kB / 479.5 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.3763, allocations: 15.81 kB / 479.5 MB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.3766, allocations: 14.94 kB / 479.6 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3767, allocations: 43.5 kB / 479.6 MB, free: 22.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.3768, allocations: 29.72 kB / 479.6 MB, free: 22.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.3778, allocations: 0.9288 MB / 480.6 MB, free: 22.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3778, allocations: 0 / 480.6 MB, free: 22.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007467/0.3786, allocations: 227.6 kB / 480.8 MB, free: 22.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001778/0.3787, allocations: 118.3 kB / 480.9 MB, free: 22.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.3804, allocations: 1.12 MB / 482 MB, free: 21.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3805, allocations: 1.062 kB / 482 MB, free: 21.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006321/0.3811, allocations: 0.5225 MB / 482.5 MB, free: 21.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.3819, allocations: 102.2 kB / 482.6 MB, free: 21.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.3858, allocations: 2.899 MB / 485.5 MB, free: 20.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009183/0.3867, allocations: 1.33 MB / 486.9 MB, free: 19.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000448/0.3872, allocations: 127.5 kB / 487 MB, free: 19.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.3874, allocations: 60.89 kB / 487.1 MB, free: 19.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3874, allocations: 1.125 kB / 487.1 MB, free: 19.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01513/0.4025, allocations: 5.639 MB / 492.7 MB, free: 18.54 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)