Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) [: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.005217/0.005217, allocations: 183.4 kB / 7.457 MB, free: 2.508 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.362/1.362, allocations: 221.4 MB / 229.3 MB, free: 2.984 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.0009471/0.0009472, allocations: 100.4 kB / 280.1 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1839/0.1839, allocations: 28.82 MB / 359.7 MB, free: 1.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2123/0.3962, allocations: 63.6 MB / 423.3 MB, free: 44.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.4959, allocations: 57.46 MB / 480.8 MB, free: 2.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3019/0.7978, allocations: 79.48 MB / 0.5471 GB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.7982, allocations: 59.97 kB / 0.5472 GB, free: 9.969 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.03862/0.8368, allocations: 13.3 MB / 0.5602 GB, free: 12.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.8369, allocations: 12 kB / 0.5602 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006255/0.8375, allocations: 185.6 kB / 0.5604 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009484/0.8385, allocations: 0.4962 MB / 0.5608 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.914e-05/0.8386, allocations: 36 kB / 0.5609 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.8389, allocations: 56 kB / 0.5609 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002531/0.8415, allocations: 1.355 MB / 0.5623 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.8437, allocations: 1.035 MB / 0.5633 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.8437, allocations: 0 / 0.5633 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.909e-05/0.8438, allocations: 0 / 0.5633 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.368e-05/0.8439, allocations: 62.11 kB / 0.5633 GB, free: 9.293 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006727/0.8506, allocations: 2.896 MB / 0.5662 GB, free: 6.344 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.8524, allocations: 1.093 MB / 0.5672 GB, free: 5.246 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007745/0.8532, allocations: 0.561 MB / 0.5678 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.8534, allocations: 36.77 kB / 0.5678 GB, free: 4.648 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.8534, allocations: 39.22 kB / 0.5678 GB, free: 4.602 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 7.293e-06/0.8534, allocations: 7.984 kB / 0.5679 GB, free: 4.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002465/0.8559, allocations: 1.314 MB / 0.5691 GB, free: 3.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.856, allocations: 64.05 kB / 0.5692 GB, free: 3.195 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.8576, allocations: 0.9996 MB / 0.5702 GB, free: 2.188 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.8577, allocations: 25.7 kB / 0.5702 GB, free: 2.156 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004102/0.8581, allocations: 0.5083 MB / 0.5707 GB, free: 1.637 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.8584, allocations: 216.7 kB / 0.5709 GB, free: 1.422 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/0.8584, allocations: 4 kB / 0.5709 GB, free: 1.418 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.8586, allocations: 333.9 kB / 0.5712 GB, free: 1.086 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007223/0.8593, allocations: 0.5402 MB / 0.5717 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000857/0.8602, allocations: 0.7153 MB / 0.5724 GB, free: 15.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.8614, allocations: 0.6236 MB / 0.5731 GB, free: 15.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.8614, allocations: 4 kB / 0.5731 GB, free: 15.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002493/0.8639, allocations: 1.478 MB / 0.5745 GB, free: 13.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.8639, allocations: 4 kB / 0.5745 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.8639, allocations: 15.98 kB / 0.5745 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.16e-05/0.864, allocations: 8 kB / 0.5745 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008016/0.8648, allocations: 216.1 kB / 0.5747 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-05/0.8648, allocations: 15.94 kB / 0.5748 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.8653, allocations: 71.27 kB / 0.5748 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.8655, allocations: 87.97 kB / 0.5749 GB, free: 13.23 MB / 410.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.000287/0.8658, allocations: 127.9 kB / 0.575 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.8661, allocations: 134.2 kB / 0.5752 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.8698, allocations: 1.767 MB / 0.5769 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.8698, allocations: 4 kB / 0.5769 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.8698, allocations: 0 / 0.5769 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.8698, allocations: 7.984 kB / 0.5769 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00474/0.8746, allocations: 2.451 MB / 0.5793 GB, free: 8.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.8746, allocations: 7.938 kB / 0.5793 GB, free: 8.664 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008676/0.8755, allocations: 159.8 kB / 0.5794 GB, free: 8.508 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.689e-05/0.8755, allocations: 4 kB / 0.5794 GB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-05/0.8756, allocations: 27.89 kB / 0.5795 GB, free: 8.477 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.8756, allocations: 0 / 0.5795 GB, free: 8.477 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.8757, allocations: 4 kB / 0.5795 GB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003485/0.8792, allocations: 2.29 MB / 0.5817 GB, free: 6.16 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006842/0.886, allocations: 5.24 MB / 0.5868 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.8863, allocations: 187.3 kB / 0.587 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.8865, allocations: 7.984 kB / 0.587 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.8869, allocations: 27.89 kB / 0.587 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.887, allocations: 52.58 kB / 0.5871 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.8872, allocations: 67.98 kB / 0.5872 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001546/0.8887, allocations: 0.789 MB / 0.5879 GB, free: 15.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001529/0.8903, allocations: 194.9 kB / 0.5881 GB, free: 15.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.0002613/0.8905, allocations: 107.1 kB / 0.5882 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.8919, allocations: 1.002 MB / 0.5892 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.8919, allocations: 0 / 0.5892 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000596/0.8925, allocations: 0.5022 MB / 0.5897 GB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.893, allocations: 42.53 kB / 0.5897 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.8978, allocations: 2.134 MB / 0.5918 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/0.8997, allocations: 1.415 MB / 0.5932 GB, free: 10.28 MB / 426.7 MB Notification: Performance of SimCode: time 1.203e-06/0.8997, allocations: 0 / 0.5932 GB, free: 10.28 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)