Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005016/0.005016, allocations: 175.8 kB / 7.46 MB, free: 2.484 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.252/1.252, allocations: 221.4 MB / 229.3 MB, free: 3.023 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.001159/0.001159, allocations: 96.78 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1565/0.1565, allocations: 28.83 MB / 359.7 MB, free: 1.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.392e-06, allocations: 0 / 423.2 MB, free: 44.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1258, allocations: 57.47 MB / 480.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3007/0.4266, allocations: 79.47 MB / 0.547 GB, free: 10.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4269, allocations: 63.97 kB / 0.5471 GB, free: 10.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03164/0.4585, allocations: 11.91 MB / 0.5587 GB, free: 14.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.88e-05/0.4586, allocations: 28 kB / 0.5588 GB, free: 14.14 MB / 394.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.001871/0.4605, allocations: 1.357 MB / 0.5601 GB, free: 12.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.4605, allocations: 8.031 kB / 0.5601 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.4608, allocations: 189.6 kB / 0.5603 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.4614, allocations: 0.5079 MB / 0.5608 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.72e-05/0.4614, allocations: 32 kB / 0.5608 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.4616, allocations: 60 kB / 0.5608 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001978/0.4635, allocations: 1.351 MB / 0.5622 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.4652, allocations: 1.035 MB / 0.5632 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.4652, allocations: 0 / 0.5632 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.4653, allocations: 0 / 0.5632 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.047e-05/0.4654, allocations: 54.12 kB / 0.5632 GB, free: 9.426 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00533/0.4707, allocations: 2.905 MB / 0.5661 GB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.4722, allocations: 1.082 MB / 0.5671 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007101/0.4729, allocations: 0.565 MB / 0.5677 GB, free: 4.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.473, allocations: 32.78 kB / 0.5677 GB, free: 4.785 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.4731, allocations: 39.16 kB / 0.5677 GB, free: 4.738 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.4731, allocations: 4 kB / 0.5677 GB, free: 4.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002186/0.4753, allocations: 1.318 MB / 0.569 GB, free: 3.406 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.4753, allocations: 56.06 kB / 0.5691 GB, free: 3.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.4766, allocations: 1.007 MB / 0.5701 GB, free: 2.324 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.4767, allocations: 29.7 kB / 0.5701 GB, free: 2.289 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.477, allocations: 0.5044 MB / 0.5706 GB, free: 1.773 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.4772, allocations: 220.7 kB / 0.5708 GB, free: 1.555 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.4773, allocations: 0 / 0.5708 GB, free: 1.555 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4774, allocations: 338 kB / 0.5711 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007255/0.4782, allocations: 0.5402 MB / 0.5717 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008967/0.4791, allocations: 0.7153 MB / 0.5724 GB, free: 15.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.4802, allocations: 0.6275 MB / 0.573 GB, free: 15.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4803, allocations: 0 / 0.573 GB, free: 15.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002393/0.4826, allocations: 1.478 MB / 0.5744 GB, free: 13.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.4827, allocations: 4 kB / 0.5744 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4827, allocations: 4 kB / 0.5744 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.4827, allocations: 15.98 kB / 0.5744 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007547/0.4835, allocations: 212.2 kB / 0.5746 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.4835, allocations: 11.98 kB / 0.5746 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.4839, allocations: 75.27 kB / 0.5747 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4841, allocations: 87.97 kB / 0.5748 GB, free: 13.37 MB / 410.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.0002432/0.4843, allocations: 134.8 kB / 0.5749 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.4845, allocations: 134.2 kB / 0.5751 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003368/0.4879, allocations: 1.767 MB / 0.5768 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.4879, allocations: 8 kB / 0.5768 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.4879, allocations: 0 / 0.5768 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.488, allocations: 3.984 kB / 0.5768 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0037/0.4917, allocations: 2.451 MB / 0.5792 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.4917, allocations: 0 / 0.5792 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007195/0.4924, allocations: 155.9 kB / 0.5793 GB, free: 8.652 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.4924, allocations: 4 kB / 0.5793 GB, free: 8.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.218e-05/0.4925, allocations: 23.89 kB / 0.5794 GB, free: 8.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.4925, allocations: 8 kB / 0.5794 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4925, allocations: 0 / 0.5794 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003086/0.4956, allocations: 2.298 MB / 0.5816 GB, free: 6.301 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.4958, allocations: 199.2 kB / 0.5818 GB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.496, allocations: 3.906 kB / 0.5818 GB, free: 6.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.4963, allocations: 19.98 kB / 0.5818 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4965, allocations: 60.58 kB / 0.5819 GB, free: 6.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.4966, allocations: 71.97 kB / 0.582 GB, free: 5.934 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001071/0.4977, allocations: 0.7812 MB / 0.5827 GB, free: 5.152 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007432/0.4984, allocations: 194.9 kB / 0.5829 GB, free: 4.961 MB / 410.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.0002279/0.4987, allocations: 104.1 kB / 0.583 GB, free: 4.852 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.5001, allocations: 1 MB / 0.584 GB, free: 3.848 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5001, allocations: 4.125 kB / 0.584 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.5007, allocations: 0.51 MB / 0.5845 GB, free: 3.336 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.5011, allocations: 41.03 kB / 0.5845 GB, free: 3.289 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.5052, allocations: 2.095 MB / 0.5866 GB, free: 1.148 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/0.5065, allocations: 1.396 MB / 0.5879 GB, free: 15.72 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5065, allocations: 3.938 kB / 0.5879 GB, free: 15.72 MB / 426.7 MB Notification: Performance of Templates: time 0.01412/0.5206, allocations: 5.961 MB / 0.5938 GB, free: 9.758 MB / 426.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)