Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_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") [: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.003082/0.003082, allocations: 174.4 kB / 7.459 MB, free: 2.48 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.442/1.442, allocations: 221.4 MB / 229.3 MB, free: 3.027 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.0009476/0.0009477, allocations: 99.27 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1643/0.1643, allocations: 28.84 MB / 359.7 MB, free: 1.617 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.987e-06/9.017e-06, allocations: 3.938 kB / 423.2 MB, free: 44.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 57.47 MB / 480.7 MB, free: 2.691 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2866/0.4189, allocations: 80 MB / 0.5475 GB, free: 9.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4192, allocations: 64.84 kB / 0.5476 GB, free: 9.605 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03513/0.4544, allocations: 13.87 MB / 0.5612 GB, free: 11.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.094e-05/0.4545, allocations: 28 kB / 0.5612 GB, free: 11.69 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001747/0.4562, allocations: 1.384 MB / 0.5625 GB, free: 10.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4563, allocations: 12.02 kB / 0.5625 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.4565, allocations: 197.5 kB / 0.5627 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.4577, allocations: 0.7592 MB / 0.5635 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.4577, allocations: 32 kB / 0.5635 GB, free: 9.203 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.4579, allocations: 67.98 kB / 0.5636 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001904/0.4598, allocations: 1.249 MB / 0.5648 GB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.4615, allocations: 1.15 MB / 0.5659 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.4615, allocations: 0 / 0.5659 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.078e-05/0.4616, allocations: 0 / 0.5659 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/0.4616, allocations: 28 kB / 0.5659 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006202/0.4678, allocations: 3.678 MB / 0.5695 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002377/0.4703, allocations: 1.621 MB / 0.5711 GB, free: 1.242 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007594/0.4711, allocations: 0.561 MB / 0.5717 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.4712, allocations: 32.61 kB / 0.5717 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.4712, allocations: 43.16 kB / 0.5717 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 4.018e-06/0.4713, allocations: 0 / 0.5717 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.002539/0.4738, allocations: 1.329 MB / 0.573 GB, free: 15.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.4739, allocations: 64.06 kB / 0.5731 GB, free: 15.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.4753, allocations: 1.018 MB / 0.5741 GB, free: 14.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.439e-05/0.4754, allocations: 25.7 kB / 0.5741 GB, free: 14.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003338/0.4757, allocations: 473.9 kB / 0.5746 GB, free: 13.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002822/0.476, allocations: 220.6 kB / 0.5748 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.476, allocations: 0 / 0.5748 GB, free: 13.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4762, allocations: 334 kB / 0.5751 GB, free: 13.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006859/0.4769, allocations: 0.5244 MB / 0.5756 GB, free: 12.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007305/0.4776, allocations: 0.6239 MB / 0.5762 GB, free: 11.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.4787, allocations: 0.5808 MB / 0.5768 GB, free: 11.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4787, allocations: 0 / 0.5768 GB, free: 11.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002207/0.4809, allocations: 1.4 MB / 0.5781 GB, free: 9.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.481, allocations: 12.06 kB / 0.5782 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.481, allocations: 3.938 kB / 0.5782 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.481, allocations: 8 kB / 0.5782 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/0.4817, allocations: 159.7 kB / 0.5783 GB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.4817, allocations: 11.94 kB / 0.5783 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.482, allocations: 35.44 kB / 0.5784 GB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4822, allocations: 79.97 kB / 0.5784 GB, free: 9.625 MB / 410.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.0001824/0.4824, allocations: 114.7 kB / 0.5786 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.4825, allocations: 142.2 kB / 0.5787 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/0.4857, allocations: 1.744 MB / 0.5804 GB, free: 7.613 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.4858, allocations: 4 kB / 0.5804 GB, free: 7.609 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4858, allocations: 0 / 0.5804 GB, free: 7.609 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.4858, allocations: 7.891 kB / 0.5804 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003757/0.4895, allocations: 2.49 MB / 0.5828 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4896, allocations: 4 kB / 0.5828 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006413/0.4902, allocations: 135.8 kB / 0.583 GB, free: 4.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.4903, allocations: 4 kB / 0.583 GB, free: 4.922 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-05/0.4903, allocations: 15.98 kB / 0.583 GB, free: 4.906 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.4903, allocations: 4 kB / 0.583 GB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4903, allocations: 0 / 0.583 GB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003093/0.4934, allocations: 2.31 MB / 0.5852 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.4937, allocations: 203 kB / 0.5854 GB, free: 2.352 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.4939, allocations: 8.125 kB / 0.5854 GB, free: 2.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.4941, allocations: 0 / 0.5854 GB, free: 2.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.4943, allocations: 56.58 kB / 0.5855 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.4944, allocations: 63.98 kB / 0.5856 GB, free: 2.227 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001136/0.4955, allocations: 0.8024 MB / 0.5863 GB, free: 1.426 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006506/0.4962, allocations: 190.9 kB / 0.5865 GB, free: 1.238 MB / 410.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.0002059/0.4964, allocations: 119 kB / 0.5866 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.4975, allocations: 0.9557 MB / 0.5876 GB, free: 160 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4975, allocations: 0 / 0.5876 GB, free: 160 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004978/0.498, allocations: 0.4944 MB / 0.5881 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.4986, allocations: 69.17 kB / 0.5881 GB, free: 15.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.5023, allocations: 2.104 MB / 0.5902 GB, free: 13.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/0.5034, allocations: 1.396 MB / 0.5915 GB, free: 12.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5034, allocations: 0 / 0.5915 GB, free: 12.02 MB / 426.7 MB Notification: Performance of Templates: time 0.01443/0.5179, allocations: 5.886 MB / 0.5973 GB, free: 6.141 MB / 426.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)