Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [: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.006217/0.006217, allocations: 184.2 kB / 7.462 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.564/1.564, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.0009149/0.0009149, allocations: 99.59 kB / 280.1 MB, free: 1.297 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1526/0.1526, allocations: 28.83 MB / 359.7 MB, free: 1.602 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.23e-06, allocations: 0 / 423.2 MB, free: 44.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 57.47 MB / 480.7 MB, free: 2.68 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.278/0.3868, allocations: 80.02 MB / 0.5476 GB, free: 9.629 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.387, allocations: 63.97 kB / 0.5476 GB, free: 9.566 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03564/0.4227, allocations: 13.9 MB / 0.5612 GB, free: 11.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.463e-05/0.4228, allocations: 31.98 kB / 0.5612 GB, free: 11.61 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.00196/0.4248, allocations: 1.38 MB / 0.5626 GB, free: 10.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4248, allocations: 12.03 kB / 0.5626 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.4251, allocations: 197.5 kB / 0.5628 GB, free: 9.973 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.4262, allocations: 0.7551 MB / 0.5635 GB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.4263, allocations: 40 kB / 0.5636 GB, free: 9.129 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.4264, allocations: 56 kB / 0.5636 GB, free: 9.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001923/0.4283, allocations: 1.257 MB / 0.5648 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.4302, allocations: 1.153 MB / 0.566 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.4302, allocations: 0 / 0.566 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.492e-05/0.4303, allocations: 3.906 kB / 0.566 GB, free: 6.594 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.699e-05/0.4303, allocations: 28 kB / 0.566 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006278/0.4366, allocations: 3.686 MB / 0.5696 GB, free: 2.793 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/0.4389, allocations: 1.617 MB / 0.5712 GB, free: 1.164 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007393/0.4397, allocations: 0.5688 MB / 0.5717 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.4398, allocations: 28.84 kB / 0.5718 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.4399, allocations: 43.16 kB / 0.5718 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 3.557e-06/0.4399, allocations: 4 kB / 0.5718 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.002358/0.4422, allocations: 1.33 MB / 0.5731 GB, free: 15.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.4423, allocations: 64.05 kB / 0.5732 GB, free: 15.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.4437, allocations: 1.014 MB / 0.5741 GB, free: 14.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/0.4438, allocations: 25.7 kB / 0.5742 GB, free: 14.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.4441, allocations: 473.9 kB / 0.5746 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.4444, allocations: 232.5 kB / 0.5748 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.4444, allocations: 0 / 0.5748 GB, free: 13.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4445, allocations: 330 kB / 0.5752 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007207/0.4453, allocations: 0.5285 MB / 0.5757 GB, free: 12.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008042/0.4461, allocations: 0.6229 MB / 0.5763 GB, free: 11.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.4472, allocations: 0.5847 MB / 0.5769 GB, free: 11.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/0.4472, allocations: 4 kB / 0.5769 GB, free: 11.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002271/0.4495, allocations: 1.404 MB / 0.5782 GB, free: 9.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4495, allocations: 4 kB / 0.5782 GB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.4495, allocations: 4 kB / 0.5782 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.4496, allocations: 7.938 kB / 0.5782 GB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006709/0.4503, allocations: 155.8 kB / 0.5784 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.4503, allocations: 11.94 kB / 0.5784 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/0.4506, allocations: 35.52 kB / 0.5784 GB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.4507, allocations: 75.98 kB / 0.5785 GB, free: 9.531 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 (83): * Single equations (assignments): 83 * 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.0001568/0.4509, allocations: 126.8 kB / 0.5786 GB, free: 9.402 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.4511, allocations: 138.2 kB / 0.5788 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003196/0.4543, allocations: 1.748 MB / 0.5805 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.4543, allocations: 8 kB / 0.5805 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4543, allocations: 0 / 0.5805 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4544, allocations: 3.984 kB / 0.5805 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003637/0.458, allocations: 2.502 MB / 0.5829 GB, free: 4.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.458, allocations: 0 / 0.5829 GB, free: 4.949 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/0.4587, allocations: 143.7 kB / 0.5831 GB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.4587, allocations: 4 kB / 0.5831 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.671e-05/0.4588, allocations: 15.98 kB / 0.5831 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.4588, allocations: 4 kB / 0.5831 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4588, allocations: 0 / 0.5831 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003136/0.4619, allocations: 2.318 MB / 0.5853 GB, free: 2.445 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4621, allocations: 191.2 kB / 0.5855 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.4623, allocations: 8 kB / 0.5855 GB, free: 2.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.4625, allocations: 4.109 kB / 0.5855 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.4627, allocations: 52.59 kB / 0.5856 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.579e-05/0.4628, allocations: 63.98 kB / 0.5857 GB, free: 2.113 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001094/0.4639, allocations: 0.8061 MB / 0.5864 GB, free: 1.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006581/0.4645, allocations: 198.8 kB / 0.5866 GB, free: 1.113 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 (68): * Single equations (assignments): 68 * 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.0002185/0.4648, allocations: 110.8 kB / 0.5867 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.466, allocations: 0.9518 MB / 0.5877 GB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.466, allocations: 0 / 0.5877 GB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.4666, allocations: 0.4983 MB / 0.5882 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.4671, allocations: 65.2 kB / 0.5882 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.4707, allocations: 2.113 MB / 0.5903 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.4718, allocations: 1.388 MB / 0.5916 GB, free: 11.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4718, allocations: 0 / 0.5916 GB, free: 11.91 MB / 426.7 MB Notification: Performance of Templates: time 0.01376/0.4856, allocations: 5.92 MB / 0.5974 GB, free: 6 MB / 426.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)