Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009444/0.0009447, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005808/0.005808, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4001/0.4001, allocations: 28.84 MB / 320.3 MB, free: 6.227 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003572, allocations: 12 kB / 388.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3326, allocations: 57.48 MB / 446 MB, free: 32.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003155/0.3358, allocations: 3.174 MB / 449.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.3374, allocations: 0.6637 MB / 449.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.3378, allocations: 13.69 kB / 449.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.3381, allocations: 122.6 kB / 449.9 MB, free: 29.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.3384, allocations: 102 kB / 450 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.339, allocations: 304.2 kB / 450.3 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006543/0.3397, allocations: 0.8083 MB / 451.1 MB, free: 29.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007295/0.3404, allocations: 0.5985 MB / 451.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.3406, allocations: 211 kB / 451.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.3408, allocations: 320.3 kB / 452.3 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.258e-05/0.3409, allocations: 20.44 kB / 452.3 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.341, allocations: 44.58 kB / 452.3 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.3413, allocations: 353 kB / 452.7 MB, free: 28.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002646/0.3415, allocations: 0.5335 MB / 453.2 MB, free: 28.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006626/0.3422, allocations: 1.086 MB / 454.3 MB, free: 27.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3422, allocations: 2.812 kB / 454.3 MB, free: 27.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3422, allocations: 0 / 454.3 MB, free: 27.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.3423, allocations: 0 / 454.3 MB, free: 27.69 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001528/0.3438, allocations: 1.508 MB / 455.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3438, allocations: 10.5 kB / 455.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.344, allocations: 198.3 kB / 456 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006624/0.3447, allocations: 0.757 MB / 456.8 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.613e-05/0.3448, allocations: 76.45 kB / 456.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.3449, allocations: 100.6 kB / 456.9 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3463, allocations: 1.165 MB / 458.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.3463, allocations: 192 / 458.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.871e-05/0.3464, allocations: 44.41 kB / 458.1 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.3464, allocations: 26.81 kB / 458.2 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3477, allocations: 1.106 MB / 459.3 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004046/0.3518, allocations: 3.687 MB / 463 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.3535, allocations: 1.328 MB / 464.3 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005742/0.3541, allocations: 491.5 kB / 464.8 MB, free: 22.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-05/0.3542, allocations: 28.41 kB / 464.8 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.3542, allocations: 41.69 kB / 464.8 MB, free: 22.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.514e-06/0.3542, allocations: 0 / 464.8 MB, free: 22.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.002112/0.3563, allocations: 1.529 MB / 466.4 MB, free: 22.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.3564, allocations: 59.5 kB / 466.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/0.3581, allocations: 1.282 MB / 467.7 MB, free: 21.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.3582, allocations: 40.33 kB / 467.7 MB, free: 21.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005321/0.3587, allocations: 0.7715 MB / 468.5 MB, free: 20.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3589, allocations: 232.2 kB / 468.7 MB, free: 20.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/0.359, allocations: 58.59 kB / 468.8 MB, free: 20.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.671e-05/0.3591, allocations: 340.9 kB / 469.1 MB, free: 20.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.3596, allocations: 438.2 kB / 469.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000656/0.3603, allocations: 0.5375 MB / 470.1 MB, free: 20.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.3616, allocations: 1.003 MB / 471.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3616, allocations: 0 / 471.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001759/0.3634, allocations: 1.2 MB / 472.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.3634, allocations: 5.938 kB / 472.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3634, allocations: 2.906 kB / 472.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.937e-05/0.3635, allocations: 5 kB / 472.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004892/0.364, allocations: 131.6 kB / 472.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.364, allocations: 6.047 kB / 472.5 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.3644, allocations: 57.45 kB / 472.5 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.3644, allocations: 27.22 kB / 472.5 MB, free: 19.34 MB / 350.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 (83): * Single equations (assignments): 83 * 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.0007216/0.3652, allocations: 383.3 kB / 472.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.3653, allocations: 141.5 kB / 473 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.3672, allocations: 1.194 MB / 474.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.3672, allocations: 7.688 kB / 474.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3673, allocations: 0.5156 kB / 474.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3673, allocations: 7.562 kB / 474.3 MB, free: 18.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.3705, allocations: 2.368 MB / 476.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3705, allocations: 0.7031 kB / 476.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.371, allocations: 118.6 kB / 476.7 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.371, allocations: 2.5 kB / 476.7 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.371, allocations: 14.31 kB / 476.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.371, allocations: 2.938 kB / 476.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3711, allocations: 4.688 kB / 476.8 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.3734, allocations: 1.88 MB / 478.6 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.3735, allocations: 209.8 kB / 478.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.3736, allocations: 12.61 kB / 478.9 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.3738, allocations: 9.359 kB / 478.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3739, allocations: 43.22 kB / 478.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.374, allocations: 25.22 kB / 478.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.3751, allocations: 0.8982 MB / 479.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3751, allocations: 3.938 kB / 479.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006122/0.3757, allocations: 207 kB / 480 MB, free: 15.7 MB / 350.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 (68): * Single equations (assignments): 68 * 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.0001831/0.3759, allocations: 110.4 kB / 480.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.377, allocations: 0.9998 MB / 481.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.377, allocations: 0 / 481.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004979/0.3776, allocations: 0.5115 MB / 481.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.3782, allocations: 92.73 kB / 481.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.3816, allocations: 3.39 MB / 485.1 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007899/0.3824, allocations: 1.305 MB / 486.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002608/0.3827, allocations: 72.58 kB / 486.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3828, allocations: 48.88 kB / 486.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3828, allocations: 0 / 486.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of Templates: time 0.009898/0.3927, allocations: 4.808 MB / 491.4 MB, free: 5.266 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) Environment - environmentSimulation: