Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001512, allocations: 174 kB / 7.648 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.093/2.093, allocations: 205.3 MB / 213.4 MB, free: 13.7 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.0011/0.0011, allocations: 87.97 kB / 261.4 MB, free: 13.43 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.2358/0.2358, allocations: 28.84 MB / 338.2 MB, free: 500 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.624e-05/1.633e-05, allocations: 4 kB / 399 MB, free: 56.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 54.65 MB / 453.7 MB, free: 2.109 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5526, allocations: 79.22 MB / 0.5204 GB, free: 128 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.553, allocations: 62.84 kB / 0.5205 GB, free: 100 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05858/0.6116, allocations: 14.18 MB / 0.5343 GB, free: 3.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6117, allocations: 0 / 0.5343 GB, free: 3.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001176/0.6118, allocations: 32 kB / 0.5344 GB, free: 2.984 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003024/0.6148, allocations: 1.373 MB / 0.5357 GB, free: 1.559 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.6149, allocations: 12.02 kB / 0.5357 GB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005253/0.6155, allocations: 197.5 kB / 0.5359 GB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.6173, allocations: 0.7552 MB / 0.5366 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.6174, allocations: 32 kB / 0.5367 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/0.6177, allocations: 64 kB / 0.5367 GB, free: 464 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003182/0.6209, allocations: 1.171 MB / 0.5379 GB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.6237, allocations: 1.108 MB / 0.539 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.6238, allocations: 4 kB / 0.539 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.6239, allocations: 0 / 0.539 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.624, allocations: 28 kB / 0.539 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009548/0.6335, allocations: 3.663 MB / 0.5426 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0038/0.6374, allocations: 1.519 MB / 0.544 GB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.6387, allocations: 0.5256 MB / 0.5446 GB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001408/0.6388, allocations: 32.75 kB / 0.5446 GB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.6389, allocations: 35.12 kB / 0.5446 GB, free: 8.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 3.466e-06/0.6389, allocations: 4 kB / 0.5446 GB, free: 8.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003461/0.6424, allocations: 1.247 MB / 0.5458 GB, free: 6.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.6425, allocations: 63.91 kB / 0.5459 GB, free: 6.859 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002104/0.6446, allocations: 1.006 MB / 0.5469 GB, free: 5.848 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.6448, allocations: 25.7 kB / 0.5469 GB, free: 5.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008873/0.6457, allocations: 0.7481 MB / 0.5476 GB, free: 5.059 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004121/0.6462, allocations: 224.6 kB / 0.5479 GB, free: 4.836 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.719e-05/0.6462, allocations: 0 / 0.5479 GB, free: 4.836 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6464, allocations: 333.9 kB / 0.5482 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.6476, allocations: 497.2 kB / 0.5487 GB, free: 4.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.649, allocations: 0.5821 MB / 0.5492 GB, free: 3.402 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.6507, allocations: 0.547 MB / 0.5498 GB, free: 2.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.6507, allocations: 4 kB / 0.5498 GB, free: 2.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003664/0.6544, allocations: 1.322 MB / 0.551 GB, free: 1.523 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.6545, allocations: 10.38 kB / 0.5511 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.6545, allocations: 4 kB / 0.5511 GB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.6545, allocations: 4 kB / 0.5511 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.6556, allocations: 155.8 kB / 0.5512 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.6557, allocations: 4 kB / 0.5512 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.6562, allocations: 31.53 kB / 0.5512 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.6564, allocations: 79.97 kB / 0.5513 GB, free: 1.242 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 (82): * Single equations (assignments): 82 * 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.0002045/0.6566, allocations: 120.8 kB / 0.5514 GB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.6569, allocations: 138.2 kB / 0.5516 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004745/0.6617, allocations: 1.563 MB / 0.5531 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.6617, allocations: 4 kB / 0.5531 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.6618, allocations: 0 / 0.5531 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.6618, allocations: 11.92 kB / 0.5531 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006142/0.6679, allocations: 2.388 MB / 0.5554 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.668, allocations: 4 kB / 0.5554 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.6691, allocations: 135.9 kB / 0.5556 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/0.6692, allocations: 3.938 kB / 0.5556 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.886e-05/0.6693, allocations: 19.98 kB / 0.5556 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.6693, allocations: 0 / 0.5556 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6693, allocations: 4 kB / 0.5556 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005143/0.6745, allocations: 2.16 MB / 0.5577 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.6749, allocations: 203 kB / 0.5579 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/0.6751, allocations: 12 kB / 0.5579 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.6756, allocations: 0 / 0.5579 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.6758, allocations: 48.56 kB / 0.558 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/0.676, allocations: 75.97 kB / 0.558 GB, free: 10.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001689/0.6777, allocations: 0.7829 MB / 0.5588 GB, free: 9.473 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.6777, allocations: 0 / 0.5588 GB, free: 9.473 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001062/0.6788, allocations: 183 kB / 0.559 GB, free: 9.293 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 (67): * Single equations (assignments): 67 * 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.000267/0.6791, allocations: 123 kB / 0.5591 GB, free: 9.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.6809, allocations: 0.9354 MB / 0.56 GB, free: 8.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.681, allocations: 0 / 0.56 GB, free: 8.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.6819, allocations: 497.9 kB / 0.5605 GB, free: 7.742 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008144/0.6827, allocations: 69.22 kB / 0.5605 GB, free: 7.676 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005284/0.688, allocations: 2.106 MB / 0.5626 GB, free: 5.527 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/0.6894, allocations: 1.342 MB / 0.5639 GB, free: 4.152 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.6899, allocations: 72.36 kB / 0.564 GB, free: 4.082 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.6901, allocations: 43.44 kB / 0.564 GB, free: 4.039 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6902, allocations: 4 kB / 0.564 GB, free: 4.035 MB / 394.7 MB Notification: Performance of Templates: time 0.01996/0.7101, allocations: 4.306 MB / 0.5682 GB, free: 15.73 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)