Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001472/0.001472, 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 1.959/1.959, 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.001075/0.001075, allocations: 86.39 kB / 261.4 MB, free: 13.45 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.2339/0.2339, allocations: 28.84 MB / 338.2 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.479e-05/1.492e-05, allocations: 0 / 399 MB, free: 56.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09525, allocations: 54.65 MB / 453.7 MB, free: 2.121 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4634/0.5588, allocations: 79.11 MB / 0.5203 GB, free: 212 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5591, allocations: 65.78 kB / 0.5204 GB, free: 180 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06006/0.6192, allocations: 13.99 MB / 0.534 GB, free: 3.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6192, allocations: 0 / 0.534 GB, free: 3.324 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000151/0.6194, allocations: 28 kB / 0.5341 GB, free: 3.297 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.003003/0.6224, allocations: 1.337 MB / 0.5354 GB, free: 1.906 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.6225, allocations: 8.031 kB / 0.5354 GB, free: 1.898 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004755/0.623, allocations: 201.5 kB / 0.5356 GB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.6248, allocations: 0.7386 MB / 0.5363 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.6249, allocations: 32 kB / 0.5363 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.6251, allocations: 64 kB / 0.5364 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00317/0.6283, allocations: 1.117 MB / 0.5375 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003037/0.6314, allocations: 1.072 MB / 0.5385 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/0.6315, allocations: 0 / 0.5385 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.94e-05/0.6316, allocations: 0 / 0.5385 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.259e-05/0.6316, allocations: 27.95 kB / 0.5385 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009538/0.6412, allocations: 3.58 MB / 0.542 GB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00365/0.6449, allocations: 1.449 MB / 0.5435 GB, free: 9.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.6461, allocations: 0.506 MB / 0.544 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001408/0.6463, allocations: 32.75 kB / 0.544 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.6463, allocations: 43.12 kB / 0.544 GB, free: 8.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.216e-06/0.6464, allocations: 0 / 0.544 GB, free: 8.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003335/0.6497, allocations: 1.188 MB / 0.5452 GB, free: 7.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.6498, allocations: 59.97 kB / 0.5452 GB, free: 7.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.6518, allocations: 0.9526 MB / 0.5462 GB, free: 6.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002128/0.6521, allocations: 25.7 kB / 0.5462 GB, free: 6.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008808/0.653, allocations: 0.7397 MB / 0.5469 GB, free: 5.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003373/0.6533, allocations: 212.8 kB / 0.5471 GB, free: 5.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/0.6534, allocations: 0 / 0.5471 GB, free: 5.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.6536, allocations: 330 kB / 0.5474 GB, free: 5.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.6547, allocations: 473.2 kB / 0.5479 GB, free: 4.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.656, allocations: 0.5547 MB / 0.5484 GB, free: 4.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.6577, allocations: 0.5236 MB / 0.5489 GB, free: 3.699 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.6577, allocations: 0 / 0.5489 GB, free: 3.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003532/0.6612, allocations: 1.263 MB / 0.5502 GB, free: 2.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.6613, allocations: 7.953 kB / 0.5502 GB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.6614, allocations: 4 kB / 0.5502 GB, free: 2.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.239e-05/0.6614, allocations: 4 kB / 0.5502 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.6625, allocations: 148.1 kB / 0.5503 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.762e-05/0.6625, allocations: 15.94 kB / 0.5503 GB, free: 2.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.663, allocations: 27.53 kB / 0.5504 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.6632, allocations: 75.97 kB / 0.5504 GB, free: 2.148 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.0002306/0.6635, allocations: 116.9 kB / 0.5506 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.6638, allocations: 130.3 kB / 0.5507 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004677/0.6685, allocations: 1.493 MB / 0.5521 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.6685, allocations: 11.94 kB / 0.5522 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.6685, allocations: 3.938 kB / 0.5522 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.6686, allocations: 7.969 kB / 0.5522 GB, free: 372 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00611/0.6747, allocations: 2.289 MB / 0.5544 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.6748, allocations: 3.938 kB / 0.5544 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.6758, allocations: 131.8 kB / 0.5545 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.712e-05/0.6759, allocations: 7.953 kB / 0.5545 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.676, allocations: 19.98 kB / 0.5546 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.676, allocations: 8 kB / 0.5546 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.676, allocations: 0 / 0.5546 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005181/0.6812, allocations: 2.066 MB / 0.5566 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003749/0.6817, allocations: 191.2 kB / 0.5568 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.6819, allocations: 7.938 kB / 0.5568 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.6823, allocations: 0 / 0.5568 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.6825, allocations: 56.5 kB / 0.5568 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/0.6826, allocations: 63.98 kB / 0.5569 GB, free: 11.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.6843, allocations: 0.7537 MB / 0.5576 GB, free: 10.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.6843, allocations: 0 / 0.5576 GB, free: 10.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000939/0.6853, allocations: 183 kB / 0.5578 GB, free: 10.51 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 (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.0002652/0.6856, allocations: 107.1 kB / 0.5579 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.6874, allocations: 0.8964 MB / 0.5588 GB, free: 9.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6874, allocations: 0 / 0.5588 GB, free: 9.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000872/0.6883, allocations: 474.5 kB / 0.5592 GB, free: 9.035 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007963/0.6891, allocations: 69.09 kB / 0.5593 GB, free: 8.969 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00527/0.6944, allocations: 2.023 MB / 0.5613 GB, free: 6.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.6958, allocations: 1.311 MB / 0.5625 GB, free: 5.562 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005048/0.6964, allocations: 76.36 kB / 0.5626 GB, free: 5.484 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.6966, allocations: 39.44 kB / 0.5627 GB, free: 5.445 MB / 394.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6966, allocations: 4 kB / 0.5627 GB, free: 5.441 MB / 394.7 MB Notification: Performance of Templates: time 0.01987/0.7165, allocations: 4.229 MB / 0.5668 GB, free: 1.211 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)