Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_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") [: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.00396/0.00396, allocations: 182.5 kB / 7.456 MB, free: 2.516 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.49/1.49, allocations: 221.4 MB / 229.3 MB, free: 3.039 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.001249/0.001249, allocations: 93.42 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.2459/0.2459, allocations: 28.84 MB / 359.7 MB, free: 1.602 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.902e-06, allocations: 3.938 kB / 423.2 MB, free: 44.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 57.48 MB / 480.7 MB, free: 2.668 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2921/0.3961, allocations: 79.88 MB / 0.5474 GB, free: 9.797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.3963, allocations: 63.97 kB / 0.5475 GB, free: 9.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03422/0.4305, allocations: 13.68 MB / 0.5608 GB, free: 12.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.158e-05/0.4307, allocations: 36 kB / 0.5609 GB, free: 12 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001731/0.4324, allocations: 1.341 MB / 0.5622 GB, free: 10.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.4324, allocations: 12.03 kB / 0.5622 GB, free: 10.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.4327, allocations: 193.5 kB / 0.5624 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.4337, allocations: 0.7387 MB / 0.5631 GB, free: 9.617 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.4337, allocations: 32 kB / 0.5631 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.4339, allocations: 63.91 kB / 0.5632 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001707/0.4356, allocations: 1.187 MB / 0.5644 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.4372, allocations: 1.114 MB / 0.5655 GB, free: 7.156 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.4373, allocations: 3.938 kB / 0.5655 GB, free: 7.152 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.4373, allocations: 3.984 kB / 0.5655 GB, free: 7.148 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.4374, allocations: 28 kB / 0.5655 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004799/0.4422, allocations: 3.595 MB / 0.569 GB, free: 3.434 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.4442, allocations: 1.551 MB / 0.5705 GB, free: 1.875 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006594/0.4449, allocations: 0.5414 MB / 0.571 GB, free: 1.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.499e-05/0.445, allocations: 24.86 kB / 0.5711 GB, free: 1.309 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.445, allocations: 43.22 kB / 0.5711 GB, free: 1.258 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.214e-06/0.445, allocations: 0 / 0.5711 GB, free: 1.258 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.001946/0.447, allocations: 1.267 MB / 0.5723 GB, free: 15.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.447, allocations: 64 kB / 0.5724 GB, free: 15.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.4481, allocations: 0.9759 MB / 0.5734 GB, free: 14.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/0.4481, allocations: 25.7 kB / 0.5734 GB, free: 14.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.4484, allocations: 461.6 kB / 0.5738 GB, free: 14.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.4486, allocations: 220.7 kB / 0.574 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.4486, allocations: 4 kB / 0.574 GB, free: 14.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.4488, allocations: 334 kB / 0.5744 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006297/0.4494, allocations: 0.4931 MB / 0.5748 GB, free: 13.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006776/0.4501, allocations: 0.5888 MB / 0.5754 GB, free: 12.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009951/0.4511, allocations: 0.5574 MB / 0.576 GB, free: 12.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4511, allocations: 4 kB / 0.576 GB, free: 12.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001982/0.4531, allocations: 1.337 MB / 0.5773 GB, free: 10.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4531, allocations: 4 kB / 0.5773 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4531, allocations: 11.92 kB / 0.5773 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.4531, allocations: 8 kB / 0.5773 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.4537, allocations: 147.8 kB / 0.5774 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.4537, allocations: 8 kB / 0.5774 GB, free: 10.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.4539, allocations: 35.75 kB / 0.5775 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.454, allocations: 71.98 kB / 0.5775 GB, free: 10.56 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 (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.0001201/0.4542, allocations: 114.5 kB / 0.5776 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.4543, allocations: 134.3 kB / 0.5778 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.4571, allocations: 1.669 MB / 0.5794 GB, free: 8.637 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.4571, allocations: 8 kB / 0.5794 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4571, allocations: 3.906 kB / 0.5794 GB, free: 8.625 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4571, allocations: 7.984 kB / 0.5794 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.4602, allocations: 2.384 MB / 0.5818 GB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4602, allocations: 0 / 0.5818 GB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.4608, allocations: 127.9 kB / 0.5819 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.4608, allocations: 4 kB / 0.5819 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-05/0.4609, allocations: 19.98 kB / 0.5819 GB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.4609, allocations: 4 kB / 0.5819 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4609, allocations: 0 / 0.5819 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00277/0.4637, allocations: 2.2 MB / 0.584 GB, free: 3.805 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.4639, allocations: 207.1 kB / 0.5842 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.464, allocations: 0 / 0.5842 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.4642, allocations: 0 / 0.5842 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.4643, allocations: 44.59 kB / 0.5843 GB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4644, allocations: 72.09 kB / 0.5844 GB, free: 3.469 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0008783/0.4653, allocations: 0.7655 MB / 0.5851 GB, free: 2.703 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000591/0.4659, allocations: 186.8 kB / 0.5853 GB, free: 2.52 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 (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.0001874/0.4661, allocations: 124 kB / 0.5854 GB, free: 2.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.4673, allocations: 0.9089 MB / 0.5863 GB, free: 1.477 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4673, allocations: 0 / 0.5863 GB, free: 1.477 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.4678, allocations: 486.2 kB / 0.5868 GB, free: 1.004 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.4683, allocations: 75.48 kB / 0.5868 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.4717, allocations: 2.012 MB / 0.5888 GB, free: 14.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/0.4729, allocations: 1.365 MB / 0.5901 GB, free: 13.49 MB / 426.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4729, allocations: 0 / 0.5901 GB, free: 13.49 MB / 426.7 MB Notification: Performance of Templates: time 0.01206/0.485, allocations: 5.777 MB / 0.5958 GB, free: 7.723 MB / 426.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)