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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001777/0.001777, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.3 MB / 213.4 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008871/0.0008871, allocations: 83.14 kB / 261.4 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.2152/0.2152, allocations: 28.84 MB / 338.2 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.55e-05, allocations: 4 kB / 399 MB, free: 56.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1004, allocations: 54.65 MB / 453.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.391/0.4915, allocations: 79.26 MB / 0.5204 GB, free: 96 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.4918, allocations: 62.58 kB / 0.5205 GB, free: 64 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03509/0.5269, allocations: 14.19 MB / 0.5344 GB, free: 2.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5269, allocations: 0 / 0.5344 GB, free: 2.949 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.562e-05/0.527, allocations: 36 kB / 0.5344 GB, free: 2.914 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001887/0.5289, allocations: 1.373 MB / 0.5357 GB, free: 1.488 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.529, allocations: 8.031 kB / 0.5357 GB, free: 1.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.5292, allocations: 202.2 kB / 0.5359 GB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.5303, allocations: 0.7552 MB / 0.5367 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/0.5304, allocations: 40 kB / 0.5367 GB, free: 448 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.5305, allocations: 63.91 kB / 0.5368 GB, free: 384 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00177/0.5323, allocations: 1.167 MB / 0.5379 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.5341, allocations: 1.112 MB / 0.539 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.5341, allocations: 7.938 kB / 0.539 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-05/0.5342, allocations: 0 / 0.539 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.5342, allocations: 27.94 kB / 0.539 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005257/0.5395, allocations: 3.671 MB / 0.5426 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.5417, allocations: 1.515 MB / 0.5441 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006844/0.5424, allocations: 0.5297 MB / 0.5446 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.892e-05/0.5425, allocations: 24.53 kB / 0.5446 GB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.5425, allocations: 39.12 kB / 0.5447 GB, free: 8.105 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.286e-06/0.5425, allocations: 4 kB / 0.5447 GB, free: 8.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=68): time 0.002051/0.5446, allocations: 1.247 MB / 0.5459 GB, free: 6.848 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.5446, allocations: 63.91 kB / 0.546 GB, free: 6.773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.5458, allocations: 0.9983 MB / 0.5469 GB, free: 5.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.777e-05/0.5459, allocations: 25.7 kB / 0.547 GB, free: 5.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006175/0.5465, allocations: 0.7597 MB / 0.5477 GB, free: 4.969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.5467, allocations: 224.6 kB / 0.5479 GB, free: 4.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.5468, allocations: 0 / 0.5479 GB, free: 4.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5469, allocations: 337.9 kB / 0.5482 GB, free: 4.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006601/0.5476, allocations: 0.4894 MB / 0.5487 GB, free: 3.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007316/0.5484, allocations: 0.5782 MB / 0.5493 GB, free: 3.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.5494, allocations: 0.547 MB / 0.5498 GB, free: 2.766 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.5494, allocations: 0 / 0.5498 GB, free: 2.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002083/0.5515, allocations: 1.33 MB / 0.5511 GB, free: 1.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.5515, allocations: 7.984 kB / 0.5511 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.5515, allocations: 8 kB / 0.5511 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.5516, allocations: 8 kB / 0.5511 GB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/0.5521, allocations: 151.8 kB / 0.5513 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/0.5522, allocations: 11.97 kB / 0.5513 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.5525, allocations: 35.44 kB / 0.5513 GB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.5527, allocations: 79.97 kB / 0.5514 GB, free: 1.129 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 (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.0001712/0.5529, allocations: 124.9 kB / 0.5515 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.5531, allocations: 138.2 kB / 0.5517 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002975/0.556, allocations: 1.56 MB / 0.5532 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.5561, allocations: 12 kB / 0.5532 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5561, allocations: 0 / 0.5532 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.5561, allocations: 3.984 kB / 0.5532 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/0.56, allocations: 2.395 MB / 0.5555 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.56, allocations: 0 / 0.5555 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006067/0.5606, allocations: 131.9 kB / 0.5557 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/0.5607, allocations: 4 kB / 0.5557 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.13e-05/0.5607, allocations: 19.98 kB / 0.5557 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5607, allocations: 4 kB / 0.5557 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5608, allocations: 3.938 kB / 0.5557 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.564, allocations: 2.175 MB / 0.5578 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.5643, allocations: 195.2 kB / 0.558 GB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.5644, allocations: 3.938 kB / 0.558 GB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.5647, allocations: 3.984 kB / 0.558 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.5649, allocations: 52.56 kB / 0.5581 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.565, allocations: 75.91 kB / 0.5581 GB, free: 10.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001411/0.5664, allocations: 0.7788 MB / 0.5589 GB, free: 9.352 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5664, allocations: 0 / 0.5589 GB, free: 9.352 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007437/0.5672, allocations: 186.9 kB / 0.5591 GB, free: 9.168 MB / 394.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 (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.0002524/0.5675, allocations: 119.1 kB / 0.5592 GB, free: 9.043 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.5687, allocations: 0.9316 MB / 0.5601 GB, free: 8.113 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5688, allocations: 0 / 0.5601 GB, free: 8.113 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005488/0.5693, allocations: 0.4901 MB / 0.5606 GB, free: 7.621 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.5699, allocations: 61.23 kB / 0.5606 GB, free: 7.562 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004233/0.5742, allocations: 2.118 MB / 0.5627 GB, free: 5.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.5755, allocations: 1.338 MB / 0.564 GB, free: 4.031 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002976/0.5759, allocations: 68.36 kB / 0.5641 GB, free: 3.961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.576, allocations: 51.42 kB / 0.5641 GB, free: 3.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.576, allocations: 0 / 0.5641 GB, free: 3.91 MB / 394.7 MB Notification: Performance of Templates: time 0.01225/0.5883, allocations: 4.332 MB / 0.5683 GB, free: 15.58 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (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)