Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [: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.006186/0.006186, allocations: 180.9 kB / 7.458 MB, free: 2.496 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.345/1.345, allocations: 221.4 MB / 229.3 MB, free: 3.379 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.0009602/0.0009603, allocations: 100.2 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1522/0.1522, allocations: 28.83 MB / 359.7 MB, free: 1.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.155e-06/8.266e-06, allocations: 0 / 423.2 MB, free: 44.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 57.48 MB / 480.7 MB, free: 2.672 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.424, allocations: 80.07 MB / 0.5476 GB, free: 9.551 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.4243, allocations: 63.97 kB / 0.5477 GB, free: 9.488 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03754/0.4618, allocations: 14.13 MB / 0.5615 GB, free: 11.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.64e-05/0.4619, allocations: 32 kB / 0.5615 GB, free: 11.29 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001805/0.4637, allocations: 1.42 MB / 0.5629 GB, free: 9.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4638, allocations: 8.031 kB / 0.5629 GB, free: 9.812 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.464, allocations: 205.4 kB / 0.5631 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.4652, allocations: 0.7666 MB / 0.5638 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.4652, allocations: 40 kB / 0.5639 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.4654, allocations: 67.94 kB / 0.5639 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001905/0.4673, allocations: 1.359 MB / 0.5653 GB, free: 7.324 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.4691, allocations: 1.249 MB / 0.5665 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.4691, allocations: 0 / 0.5665 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.118e-05/0.4692, allocations: 0 / 0.5665 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.208e-05/0.4693, allocations: 59.88 kB / 0.5666 GB, free: 5.949 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005596/0.4749, allocations: 3.89 MB / 0.5704 GB, free: 1.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.4771, allocations: 1.641 MB / 0.572 GB, free: 316 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007315/0.4778, allocations: 0.5775 MB / 0.5725 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.4779, allocations: 32.8 kB / 0.5726 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.478, allocations: 39.22 kB / 0.5726 GB, free: 15.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.755e-06/0.478, allocations: 0 / 0.5726 GB, free: 15.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.002243/0.4802, allocations: 1.357 MB / 0.5739 GB, free: 14.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.4803, allocations: 81.77 kB / 0.574 GB, free: 14.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001476/0.4818, allocations: 1.088 MB / 0.5751 GB, free: 13.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.326e-05/0.4818, allocations: 25.7 kB / 0.5751 GB, free: 13.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003921/0.4822, allocations: 0.5438 MB / 0.5756 GB, free: 12.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/0.4825, allocations: 232.5 kB / 0.5758 GB, free: 12.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.4825, allocations: 0 / 0.5758 GB, free: 12.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4827, allocations: 341.9 kB / 0.5762 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007374/0.4834, allocations: 0.5485 MB / 0.5767 GB, free: 11.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000881/0.4843, allocations: 0.8038 MB / 0.5775 GB, free: 10.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.4855, allocations: 0.6548 MB / 0.5781 GB, free: 9.812 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.4855, allocations: 4 kB / 0.5781 GB, free: 9.809 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002445/0.488, allocations: 1.556 MB / 0.5796 GB, free: 8.242 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.488, allocations: 4 kB / 0.5796 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.488, allocations: 8.906 kB / 0.5797 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.4881, allocations: 15.94 kB / 0.5797 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/0.4888, allocations: 211.7 kB / 0.5799 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.4888, allocations: 19.92 kB / 0.5799 GB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.4893, allocations: 63.12 kB / 0.5799 GB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.4894, allocations: 95.97 kB / 0.58 GB, free: 7.832 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.00018/0.4896, allocations: 128.7 kB / 0.5802 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.4898, allocations: 142.1 kB / 0.5803 GB, free: 7.559 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/0.4932, allocations: 1.803 MB / 0.5821 GB, free: 5.742 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4932, allocations: 8 kB / 0.5821 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4932, allocations: 0 / 0.5821 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.4932, allocations: 7.891 kB / 0.5821 GB, free: 5.727 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/0.497, allocations: 2.526 MB / 0.5845 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.497, allocations: 0 / 0.5845 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.4977, allocations: 147.8 kB / 0.5847 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.4978, allocations: 0 / 0.5847 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.16e-05/0.4978, allocations: 20 kB / 0.5847 GB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.4979, allocations: 7.984 kB / 0.5847 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4979, allocations: 0 / 0.5847 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003211/0.5011, allocations: 2.428 MB / 0.5871 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.5013, allocations: 207 kB / 0.5873 GB, free: 312 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.5015, allocations: 0 / 0.5873 GB, free: 312 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.5018, allocations: 7.984 kB / 0.5873 GB, free: 304 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.502, allocations: 52.59 kB / 0.5873 GB, free: 252 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.5021, allocations: 71.97 kB / 0.5874 GB, free: 180 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.001175/0.5033, allocations: 0.8432 MB / 0.5882 GB, free: 15.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007859/0.5041, allocations: 210.7 kB / 0.5884 GB, free: 15.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002017/0.5043, allocations: 108.1 kB / 0.5885 GB, free: 15.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.5056, allocations: 1.035 MB / 0.5895 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.5056, allocations: 3.938 kB / 0.5895 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00054/0.5061, allocations: 0.4989 MB / 0.59 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005988/0.5067, allocations: 80.33 kB / 0.5901 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.5107, allocations: 2.191 MB / 0.5922 GB, free: 11.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/0.5119, allocations: 1.44 MB / 0.5937 GB, free: 9.695 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/0.512, allocations: 0 / 0.5937 GB, free: 9.695 MB / 426.7 MB Notification: Performance of Templates: time 0.01503/0.527, allocations: 6.432 MB / 0.5999 GB, free: 3.262 MB / 426.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)