Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.00147, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.3 MB / 213.4 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001127, allocations: 88.44 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.2308/0.2308, allocations: 28.84 MB / 338.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.609e-05/1.617e-05, allocations: 0 / 399 MB, free: 56.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 54.65 MB / 453.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.5331, allocations: 78.66 MB / 0.5199 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.5334, allocations: 59.97 kB / 0.5199 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05175/0.5851, allocations: 12.21 MB / 0.5318 GB, free: 5.551 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.468e-06/0.5852, allocations: 0 / 0.5318 GB, free: 5.551 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.682e-05/0.5852, allocations: 35.94 kB / 0.5319 GB, free: 5.516 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003158/0.5884, allocations: 1.349 MB / 0.5332 GB, free: 4.117 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.5885, allocations: 12.03 kB / 0.5332 GB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004761/0.589, allocations: 189.6 kB / 0.5334 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008589/0.5898, allocations: 0.504 MB / 0.5339 GB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.59, allocations: 39.88 kB / 0.5339 GB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003175/0.5903, allocations: 56 kB / 0.534 GB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003544/0.5939, allocations: 1.261 MB / 0.5352 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002669/0.5966, allocations: 0.9997 MB / 0.5362 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.5967, allocations: 0 / 0.5362 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.5968, allocations: 0 / 0.5362 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.854e-05/0.5969, allocations: 54.12 kB / 0.5362 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007956/0.6049, allocations: 2.854 MB / 0.539 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.6075, allocations: 1.079 MB / 0.5401 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.6088, allocations: 0.5217 MB / 0.5406 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.6089, allocations: 28.69 kB / 0.5406 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/0.609, allocations: 51 kB / 0.5407 GB, free: 12.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 5.46e-06/0.609, allocations: 0 / 0.5407 GB, free: 12.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003474/0.6125, allocations: 1.235 MB / 0.5419 GB, free: 11.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.6126, allocations: 63.97 kB / 0.5419 GB, free: 11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.6146, allocations: 0.9839 MB / 0.5429 GB, free: 10.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002359/0.6149, allocations: 25.7 kB / 0.5429 GB, free: 9.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009038/0.6158, allocations: 0.7661 MB / 0.5437 GB, free: 9.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004322/0.6163, allocations: 220.7 kB / 0.5439 GB, free: 8.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/0.6164, allocations: 0 / 0.5439 GB, free: 8.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.6165, allocations: 334 kB / 0.5442 GB, free: 8.648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.6178, allocations: 0.4972 MB / 0.5447 GB, free: 8.152 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.6193, allocations: 0.6795 MB / 0.5453 GB, free: 7.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.6213, allocations: 0.5773 MB / 0.5459 GB, free: 6.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.6213, allocations: 0 / 0.5459 GB, free: 6.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004083/0.6254, allocations: 1.396 MB / 0.5473 GB, free: 5.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.6255, allocations: 8 kB / 0.5473 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.6255, allocations: 8 kB / 0.5473 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.435e-05/0.6256, allocations: 11.95 kB / 0.5473 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.6271, allocations: 207.7 kB / 0.5475 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/0.6272, allocations: 11.98 kB / 0.5475 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007163/0.6279, allocations: 71.48 kB / 0.5476 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/0.6281, allocations: 87.97 kB / 0.5477 GB, free: 5.016 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0003093/0.6284, allocations: 142.5 kB / 0.5478 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.6288, allocations: 130.3 kB / 0.5479 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.6338, allocations: 1.571 MB / 0.5494 GB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.6339, allocations: 11.95 kB / 0.5495 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.6339, allocations: 0 / 0.5495 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.634, allocations: 3.984 kB / 0.5495 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006256/0.6402, allocations: 2.336 MB / 0.5517 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.6403, allocations: 7.938 kB / 0.5518 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.6416, allocations: 163.8 kB / 0.5519 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.897e-05/0.6417, allocations: 4 kB / 0.5519 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.6418, allocations: 15.98 kB / 0.5519 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.6418, allocations: 11.95 kB / 0.5519 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.6418, allocations: 0 / 0.5519 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005218/0.6471, allocations: 2.152 MB / 0.554 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.6474, allocations: 195.3 kB / 0.5542 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.6476, allocations: 0 / 0.5542 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.6482, allocations: 19.98 kB / 0.5542 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.6484, allocations: 60.44 kB / 0.5543 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/0.6486, allocations: 75.97 kB / 0.5544 GB, free: 14.03 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001583/0.6502, allocations: 0.7656 MB / 0.5551 GB, free: 13.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6502, allocations: 0 / 0.5551 GB, free: 13.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009232/0.6511, allocations: 190.9 kB / 0.5553 GB, free: 13.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.0002524/0.6514, allocations: 111.1 kB / 0.5554 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.6533, allocations: 0.9716 MB / 0.5564 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6533, allocations: 4.438 kB / 0.5564 GB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00089/0.6542, allocations: 0.4979 MB / 0.5569 GB, free: 11.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005051/0.6547, allocations: 41.12 kB / 0.5569 GB, free: 11.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.66, allocations: 2.104 MB / 0.5589 GB, free: 9.293 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.6614, allocations: 1.327 MB / 0.5602 GB, free: 7.941 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007585/0.6622, allocations: 120.4 kB / 0.5604 GB, free: 7.824 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.6625, allocations: 59.36 kB / 0.5604 GB, free: 7.766 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6625, allocations: 0 / 0.5604 GB, free: 7.766 MB / 394.7 MB Notification: Performance of Templates: time 0.01929/0.6818, allocations: 4.31 MB / 0.5646 GB, free: 3.453 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)