Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [: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.00496/0.00496, allocations: 179.4 kB / 7.457 MB, free: 2.512 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.421/1.421, allocations: 221.4 MB / 229.3 MB, free: 3.062 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.0009343/0.0009341, allocations: 92.7 kB / 280.1 MB, free: 1.309 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1535/0.1535, allocations: 28.82 MB / 359.7 MB, free: 1.602 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.292e-06/6.322e-06, allocations: 0 / 423.2 MB, free: 44.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 57.47 MB / 480.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.304/0.4059, allocations: 80.11 MB / 0.5477 GB, free: 9.508 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.4062, allocations: 59.97 kB / 0.5477 GB, free: 9.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03617/0.4424, allocations: 14 MB / 0.5614 GB, free: 11.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.712e-05/0.4425, allocations: 36 kB / 0.5614 GB, free: 11.37 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002168/0.4447, allocations: 1.4 MB / 0.5628 GB, free: 9.914 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4447, allocations: 12.03 kB / 0.5628 GB, free: 9.902 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.445, allocations: 201.5 kB / 0.563 GB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.4461, allocations: 0.7632 MB / 0.5637 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.4462, allocations: 32 kB / 0.5638 GB, free: 8.859 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.4463, allocations: 60 kB / 0.5638 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001914/0.4482, allocations: 1.261 MB / 0.5651 GB, free: 7.535 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.45, allocations: 1.161 MB / 0.5662 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.45, allocations: 0 / 0.5662 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.368e-05/0.4501, allocations: 4 kB / 0.5662 GB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.4501, allocations: 24 kB / 0.5662 GB, free: 6.281 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005396/0.4555, allocations: 3.706 MB / 0.5698 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.4577, allocations: 1.644 MB / 0.5714 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.4585, allocations: 0.5727 MB / 0.572 GB, free: 268 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.711e-05/0.4586, allocations: 32.86 kB / 0.572 GB, free: 232 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008669/0.4595, allocations: 0.6783 MB / 0.5727 GB, free: 15.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 2.866e-06/0.4595, allocations: 0 / 0.5727 GB, free: 15.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.002395/0.4619, allocations: 1.357 MB / 0.574 GB, free: 14.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.462, allocations: 64 kB / 0.5741 GB, free: 14.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.4635, allocations: 1.026 MB / 0.5751 GB, free: 13.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.227e-05/0.4636, allocations: 29.7 kB / 0.5751 GB, free: 13.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/0.464, allocations: 474.1 kB / 0.5756 GB, free: 12.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/0.4643, allocations: 240.4 kB / 0.5758 GB, free: 12.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.564e-05/0.4643, allocations: 0 / 0.5758 GB, free: 12.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4645, allocations: 334 kB / 0.5761 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006974/0.4652, allocations: 0.5285 MB / 0.5766 GB, free: 11.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007871/0.466, allocations: 0.6422 MB / 0.5772 GB, free: 10.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.4671, allocations: 0.5965 MB / 0.5778 GB, free: 10.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4671, allocations: 0 / 0.5778 GB, free: 10.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002406/0.4695, allocations: 1.435 MB / 0.5792 GB, free: 8.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.4695, allocations: 4.344 kB / 0.5792 GB, free: 8.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4695, allocations: 8 kB / 0.5792 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.4696, allocations: 8 kB / 0.5793 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006678/0.4703, allocations: 159.8 kB / 0.5794 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.4703, allocations: 11.84 kB / 0.5794 GB, free: 8.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.4706, allocations: 35.53 kB / 0.5794 GB, free: 8.508 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.4707, allocations: 83.97 kB / 0.5795 GB, free: 8.426 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 (89): * Single equations (assignments): 89 * 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.0002372/0.471, allocations: 128.8 kB / 0.5797 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.4712, allocations: 142.1 kB / 0.5798 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.4745, allocations: 1.779 MB / 0.5815 GB, free: 6.359 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.4745, allocations: 8 kB / 0.5815 GB, free: 6.352 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4745, allocations: 0 / 0.5815 GB, free: 6.352 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.4746, allocations: 3.984 kB / 0.5815 GB, free: 6.348 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00376/0.4783, allocations: 2.541 MB / 0.584 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4783, allocations: 3.984 kB / 0.584 GB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000633/0.479, allocations: 139.8 kB / 0.5842 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.479, allocations: 0 / 0.5842 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.439e-05/0.4791, allocations: 23.98 kB / 0.5842 GB, free: 3.598 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4791, allocations: 4 kB / 0.5842 GB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4791, allocations: 4 kB / 0.5842 GB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003342/0.4825, allocations: 2.357 MB / 0.5865 GB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.483, allocations: 331 kB / 0.5868 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.4832, allocations: 0 / 0.5868 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.4834, allocations: 4 kB / 0.5868 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.4836, allocations: 52.58 kB / 0.5869 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.4837, allocations: 63.98 kB / 0.5869 GB, free: 0.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001086/0.4848, allocations: 0.8105 MB / 0.5877 GB, free: 15.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006648/0.4855, allocations: 194.8 kB / 0.5879 GB, free: 15.75 MB / 426.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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000229/0.4857, allocations: 127.1 kB / 0.588 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.487, allocations: 0.9792 MB / 0.589 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.487, allocations: 0 / 0.589 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.4876, allocations: 0.51 MB / 0.5895 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.4881, allocations: 69.27 kB / 0.5895 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003863/0.492, allocations: 2.126 MB / 0.5916 GB, free: 11.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/0.4933, allocations: 1.406 MB / 0.593 GB, free: 10.46 MB / 426.7 MB Notification: Performance of SimCode: time 8.61e-07/0.4933, allocations: 0 / 0.593 GB, free: 10.46 MB / 426.7 MB Notification: Performance of Templates: time 0.0156/0.5089, allocations: 6.123 MB / 0.599 GB, free: 4.336 MB / 426.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)