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.001178/0.001178, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001323/0.001323, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3076/0.3076, allocations: 28.84 MB / 319.9 MB, free: 6.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005262/0.0005264, allocations: 8 kB / 387.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3359, allocations: 57.49 MB / 445.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.002717/0.3386, allocations: 2.907 MB / 448.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3398, allocations: 0.6593 MB / 448.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002938/0.3402, allocations: 18.22 kB / 449 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002618/0.3404, allocations: 120.2 kB / 449.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.3407, allocations: 87.03 kB / 449.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.3412, allocations: 259.2 kB / 449.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005583/0.3418, allocations: 0.7749 MB / 450.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005302/0.3423, allocations: 480.9 kB / 450.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.3425, allocations: 238.9 kB / 450.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.3427, allocations: 308.6 kB / 451.2 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.832e-05/0.3428, allocations: 24.5 kB / 451.2 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.3429, allocations: 43.28 kB / 451.3 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.3431, allocations: 333.8 kB / 451.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3432, allocations: 228.5 kB / 451.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004995/0.3437, allocations: 0.7974 MB / 452.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3437, allocations: 0 / 452.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3438, allocations: 3.031 kB / 452.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.3438, allocations: 0 / 452.6 MB, free: 28.54 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.001507/0.3453, allocations: 1.531 MB / 454.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.3453, allocations: 8.531 kB / 454.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.3455, allocations: 201.3 kB / 454.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006081/0.3462, allocations: 0.6832 MB / 455 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.3462, allocations: 79.89 kB / 455.1 MB, free: 26.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.481e-05/0.3463, allocations: 111 kB / 455.2 MB, free: 26.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3476, allocations: 1.154 MB / 456.4 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.3477, allocations: 0 / 456.4 MB, free: 26.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.3477, allocations: 50.5 kB / 456.4 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.3477, allocations: 23.62 kB / 456.4 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.3489, allocations: 1.091 MB / 457.5 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003709/0.3526, allocations: 3.685 MB / 461.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.3542, allocations: 1.333 MB / 462.5 MB, free: 23.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005339/0.3547, allocations: 485.4 kB / 463 MB, free: 23.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.278e-05/0.3548, allocations: 24.7 kB / 463 MB, free: 23.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.3548, allocations: 46 kB / 463.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.905e-06/0.3548, allocations: 0 / 463.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.00202/0.3569, allocations: 1.523 MB / 464.6 MB, free: 23.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.3569, allocations: 58.34 kB / 464.7 MB, free: 22.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.3585, allocations: 1.271 MB / 465.9 MB, free: 22.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.3586, allocations: 39.55 kB / 466 MB, free: 22.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000488/0.3591, allocations: 0.7729 MB / 466.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.3592, allocations: 230.7 kB / 467 MB, free: 21.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.3592, allocations: 15.75 kB / 467 MB, free: 21.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.3593, allocations: 331.9 kB / 467.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.3599, allocations: 435.9 kB / 467.7 MB, free: 21.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005922/0.3605, allocations: 0.5359 MB / 468.3 MB, free: 21.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006118/0.3611, allocations: 479.9 kB / 468.7 MB, free: 20.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3611, allocations: 1.469 kB / 468.7 MB, free: 20.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001527/0.3626, allocations: 1.182 MB / 469.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.3627, allocations: 6.375 kB / 469.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.3627, allocations: 7.781 kB / 469.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3627, allocations: 5.594 kB / 469.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.3632, allocations: 133.5 kB / 470.1 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.3632, allocations: 6.406 kB / 470.1 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3635, allocations: 57.73 kB / 470.1 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.137e-05/0.3636, allocations: 24.58 kB / 470.2 MB, free: 20.51 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004697/0.364, allocations: 374.2 kB / 470.5 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3642, allocations: 145.5 kB / 470.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.3658, allocations: 1.196 MB / 471.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3658, allocations: 8.234 kB / 471.9 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3658, allocations: 4 kB / 471.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.3659, allocations: 3.094 kB / 471.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.3688, allocations: 2.365 MB / 474.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3688, allocations: 0 / 474.2 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.3693, allocations: 114.9 kB / 474.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.3693, allocations: 6.469 kB / 474.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.3693, allocations: 15.88 kB / 474.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.3693, allocations: 2.656 kB / 474.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3694, allocations: 0 / 474.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.3717, allocations: 1.881 MB / 476.3 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.3719, allocations: 200.1 kB / 476.5 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.372, allocations: 16.31 kB / 476.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.3722, allocations: 12.59 kB / 476.5 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/0.3723, allocations: 39.56 kB / 476.5 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.3723, allocations: 18.42 kB / 476.5 MB, free: 18.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001268/0.3736, allocations: 0.8813 MB / 477.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3736, allocations: 0 / 477.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006186/0.3742, allocations: 211.5 kB / 477.6 MB, free: 17.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001639/0.3744, allocations: 130.4 kB / 477.8 MB, free: 17.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.3755, allocations: 0.9815 MB / 478.7 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3755, allocations: 0 / 478.7 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004861/0.376, allocations: 0.5098 MB / 479.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.3766, allocations: 103.1 kB / 479.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.3806, allocations: 3.204 MB / 482.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009543/0.3816, allocations: 1.312 MB / 483.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002571/0.3819, allocations: 76.33 kB / 483.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.382, allocations: 45.92 kB / 484 MB, free: 11.77 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.382, allocations: 0 / 484 MB, free: 11.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01059/0.3926, allocations: 4.688 MB / 488.7 MB, free: 7.527 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: