Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 221.5 MB / 229.6 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008457/0.0008458, allocations: 96.94 kB / 280.5 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1693/0.1693, allocations: 28.83 MB / 360.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.372e-05/1.374e-05, allocations: 0 / 423.8 MB, free: 32.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 57.48 MB / 481.3 MB, free: 6.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3895/0.4964, allocations: 79.96 MB / 0.5481 GB, free: 10.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4967, allocations: 60.86 kB / 0.5481 GB, free: 10.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02965/0.5263, allocations: 14.03 MB / 0.5618 GB, free: 6.363 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5264, allocations: 4 kB / 0.5618 GB, free: 6.359 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.414e-05/0.5264, allocations: 30.12 kB / 0.5619 GB, free: 6.359 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001284/0.5277, allocations: 1.33 MB / 0.5632 GB, free: 5.398 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.5278, allocations: 11.67 kB / 0.5632 GB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.528, allocations: 193.3 kB / 0.5634 GB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007535/0.5287, allocations: 0.7441 MB / 0.5641 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.5288, allocations: 34.84 kB / 0.5641 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.5289, allocations: 57.5 kB / 0.5642 GB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001316/0.5302, allocations: 1.116 MB / 0.5653 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.5315, allocations: 1.073 MB / 0.5663 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.5315, allocations: 3.812 kB / 0.5663 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-05/0.5316, allocations: 0 / 0.5663 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.5316, allocations: 23.03 kB / 0.5663 GB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/0.5353, allocations: 3.585 MB / 0.5698 GB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.5368, allocations: 1.449 MB / 0.5712 GB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000497/0.5373, allocations: 0.509 MB / 0.5717 GB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.019e-05/0.5374, allocations: 31.31 kB / 0.5718 GB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/0.5375, allocations: 38.81 kB / 0.5718 GB, free: 1.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.134e-06/0.5375, allocations: 0 / 0.5718 GB, free: 1.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.001543/0.539, allocations: 1.187 MB / 0.573 GB, free: 1.266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.065e-05/0.539, allocations: 59.97 kB / 0.573 GB, free: 1.195 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008271/0.5399, allocations: 0.9617 MB / 0.574 GB, free: 456 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.5399, allocations: 25.7 kB / 0.574 GB, free: 424 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003322/0.5403, allocations: 0.7349 MB / 0.5747 GB, free: 0 / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.5405, allocations: 219.8 kB / 0.5749 GB, free: 15.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.5405, allocations: 0 / 0.5749 GB, free: 15.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5406, allocations: 328.4 kB / 0.5752 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.5412, allocations: 469 kB / 0.5757 GB, free: 15.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006222/0.5419, allocations: 0.56 MB / 0.5762 GB, free: 14.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009023/0.5428, allocations: 0.5206 MB / 0.5767 GB, free: 14.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5428, allocations: 4 kB / 0.5767 GB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001857/0.5446, allocations: 1.261 MB / 0.578 GB, free: 13.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.5447, allocations: 11.98 kB / 0.578 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5447, allocations: 0 / 0.578 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.5447, allocations: 8 kB / 0.578 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005593/0.5453, allocations: 147.5 kB / 0.5781 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.5453, allocations: 11.94 kB / 0.5781 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.5456, allocations: 35.31 kB / 0.5782 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.5457, allocations: 76.84 kB / 0.5782 GB, free: 13.02 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * 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.0001386/0.5458, allocations: 112.8 kB / 0.5784 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.546, allocations: 134.1 kB / 0.5785 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002588/0.5486, allocations: 1.484 MB / 0.5799 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.5486, allocations: 12 kB / 0.5799 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.5486, allocations: 0 / 0.5799 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.5487, allocations: 11.88 kB / 0.58 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.5518, allocations: 2.292 MB / 0.5822 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5518, allocations: 0 / 0.5822 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/0.5524, allocations: 131.8 kB / 0.5823 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.699e-06/0.5524, allocations: 4 kB / 0.5823 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.869e-05/0.5525, allocations: 19.92 kB / 0.5823 GB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.5525, allocations: 4 kB / 0.5823 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5525, allocations: 4 kB / 0.5823 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.5552, allocations: 2.06 MB / 0.5844 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.5554, allocations: 191.2 kB / 0.5845 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.5555, allocations: 4 kB / 0.5845 GB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.5557, allocations: 3.984 kB / 0.5846 GB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.5558, allocations: 51.12 kB / 0.5846 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.273e-05/0.5559, allocations: 63.86 kB / 0.5847 GB, free: 7.727 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009668/0.5569, allocations: 0.7583 MB / 0.5854 GB, free: 7.156 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5569, allocations: 0 / 0.5854 GB, free: 7.156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006124/0.5575, allocations: 179 kB / 0.5856 GB, free: 6.98 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.0001878/0.5577, allocations: 120 kB / 0.5857 GB, free: 6.859 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000992/0.5587, allocations: 0.8938 MB / 0.5866 GB, free: 6.145 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5587, allocations: 0 / 0.5866 GB, free: 6.145 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004777/0.5592, allocations: 478.8 kB / 0.587 GB, free: 5.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.5597, allocations: 70.61 kB / 0.5871 GB, free: 5.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.5625, allocations: 2.01 MB / 0.589 GB, free: 3.898 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008999/0.5634, allocations: 1.322 MB / 0.5903 GB, free: 2.582 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000218/0.5637, allocations: 72.36 kB / 0.5904 GB, free: 2.508 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.5638, allocations: 46.5 kB / 0.5904 GB, free: 2.465 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5638, allocations: 0 / 0.5904 GB, free: 2.465 MB / 378.7 MB Notification: Performance of Templates: time 0.01008/0.5739, allocations: 4.227 MB / 0.5946 GB, free: 14.28 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)