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.001428/0.001428, 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.001161/0.001161, allocations: 193.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.423/1.423, 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.313/0.313, allocations: 28.8 MB / 318.8 MB, free: 5.953 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 51.92 kB / 385.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4136, allocations: 56.41 MB / 442.3 MB, free: 39.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005573/0.4193, allocations: 3.661 MB / 446 MB, free: 37.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.4214, allocations: 0.6761 MB / 446.7 MB, free: 37.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005936/0.422, allocations: 15.16 kB / 446.7 MB, free: 37.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004963/0.4225, allocations: 125.7 kB / 446.8 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.4229, allocations: 94.33 kB / 446.9 MB, free: 37.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008417/0.4238, allocations: 315.2 kB / 447.2 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000923/0.4247, allocations: 0.8208 MB / 448 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008915/0.4256, allocations: 0.6105 MB / 448.6 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.426, allocations: 309.3 kB / 449 MB, free: 36.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003693/0.4263, allocations: 438.3 kB / 449.4 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.4265, allocations: 56.53 kB / 449.4 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.4268, allocations: 85.23 kB / 449.5 MB, free: 36.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004335/0.4272, allocations: 426 kB / 449.9 MB, free: 36.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004135/0.4276, allocations: 0.5995 MB / 450.5 MB, free: 35.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009365/0.4286, allocations: 1.169 MB / 451.7 MB, free: 35.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4286, allocations: 0 / 451.7 MB, free: 35.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.4286, allocations: 0 / 451.7 MB, free: 35.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.4286, allocations: 0 / 451.7 MB, free: 35.36 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.002256/0.4309, allocations: 1.819 MB / 453.5 MB, free: 34.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.4309, allocations: 8.375 kB / 453.5 MB, free: 34.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.4311, allocations: 213 kB / 453.7 MB, free: 33.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006378/0.4318, allocations: 0.7572 MB / 454.5 MB, free: 33.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/0.4319, allocations: 79.89 kB / 454.6 MB, free: 33.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.432, allocations: 105.3 kB / 454.7 MB, free: 33.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.4335, allocations: 1.278 MB / 456 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.4336, allocations: 2.719 kB / 456 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.4337, allocations: 44.03 kB / 456 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-05/0.4338, allocations: 46.48 kB / 456 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.4358, allocations: 1.234 MB / 457.3 MB, free: 32.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00585/0.4416, allocations: 3.921 MB / 461.2 MB, free: 30.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.4435, allocations: 1.36 MB / 462.6 MB, free: 29.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006907/0.4442, allocations: 494.5 kB / 463 MB, free: 29.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.4443, allocations: 35.38 kB / 463.1 MB, free: 29.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.4444, allocations: 42 kB / 463.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 3.466e-06/0.4444, allocations: 0 / 463.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.002718/0.4471, allocations: 1.552 MB / 464.7 MB, free: 29.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.4472, allocations: 85.55 kB / 464.8 MB, free: 29.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.4493, allocations: 1.376 MB / 466.1 MB, free: 28.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.4494, allocations: 36.83 kB / 466.2 MB, free: 28.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006632/0.45, allocations: 0.8417 MB / 467 MB, free: 28.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.4503, allocations: 240.8 kB / 467.2 MB, free: 27.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.4505, allocations: 156.6 kB / 467.4 MB, free: 27.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.878e-05/0.4506, allocations: 339.7 kB / 467.7 MB, free: 27.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007989/0.4514, allocations: 479.8 kB / 468.2 MB, free: 27.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.4527, allocations: 0.7176 MB / 468.9 MB, free: 26.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002264/0.455, allocations: 1.24 MB / 470.2 MB, free: 26.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.455, allocations: 2.375 kB / 470.2 MB, free: 26.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002828/0.4578, allocations: 1.391 MB / 471.5 MB, free: 25.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.4579, allocations: 8.062 kB / 471.6 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.4579, allocations: 7.938 kB / 471.6 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.055e-05/0.4579, allocations: 12.22 kB / 471.6 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008706/0.4588, allocations: 188.4 kB / 471.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.817e-05/0.4589, allocations: 16.69 kB / 471.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007162/0.4596, allocations: 90.7 kB / 471.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.4597, allocations: 42.38 kB / 471.9 MB, free: 25.82 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.000982/0.4607, allocations: 414 kB / 472.3 MB, free: 25.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/0.461, allocations: 144.5 kB / 472.4 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/0.4637, allocations: 1.245 MB / 473.7 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.4637, allocations: 6.75 kB / 473.7 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4637, allocations: 1.125 kB / 473.7 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.4638, allocations: 16.42 kB / 473.7 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004172/0.4679, allocations: 2.398 MB / 476.1 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/0.468, allocations: 1.281 kB / 476.1 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.4684, allocations: 119.3 kB / 476.2 MB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.4685, allocations: 2.156 kB / 476.2 MB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.835e-05/0.4685, allocations: 21.86 kB / 476.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.4685, allocations: 7.125 kB / 476.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4685, allocations: 1.344 kB / 476.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.471, allocations: 1.985 MB / 478.3 MB, free: 23.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.4713, allocations: 203.2 kB / 478.5 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.4715, allocations: 27.33 kB / 478.5 MB, free: 23.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.4718, allocations: 17.38 kB / 478.5 MB, free: 23.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4719, allocations: 42.95 kB / 478.5 MB, free: 23.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.472, allocations: 21.16 kB / 478.6 MB, free: 23.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001552/0.4735, allocations: 0.9352 MB / 479.5 MB, free: 22.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4735, allocations: 1.156 kB / 479.5 MB, free: 22.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009305/0.4745, allocations: 220.5 kB / 479.7 MB, free: 22.91 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.0002022/0.4747, allocations: 130.2 kB / 479.8 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.4763, allocations: 1.082 MB / 480.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.4763, allocations: 4 kB / 480.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007098/0.477, allocations: 0.5169 MB / 481.4 MB, free: 22.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008728/0.4779, allocations: 97.45 kB / 481.5 MB, free: 22.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006175/0.4841, allocations: 3.489 MB / 485 MB, free: 20.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.4855, allocations: 1.329 MB / 486.4 MB, free: 19.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005353/0.486, allocations: 134.4 kB / 486.5 MB, free: 19.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.4863, allocations: 57.95 kB / 486.5 MB, free: 19.62 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4863, allocations: 0 / 486.5 MB, free: 19.62 MB / 366.1 MB Notification: Performance of Templates: time 0.01641/0.5027, allocations: 5.409 MB / 491.9 MB, free: 18.68 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)