Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.003537/0.003537, allocations: 185.1 kB / 7.459 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.361/1.361, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.001078/0.001078, allocations: 94.34 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.2098/0.2098, allocations: 28.83 MB / 359.7 MB, free: 1.602 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2396/0.4495, allocations: 63.59 MB / 423.3 MB, free: 44.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.5656, allocations: 57.46 MB / 480.8 MB, free: 2.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.9114, allocations: 80.12 MB / 0.5478 GB, free: 9.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.9117, allocations: 63.97 kB / 0.5478 GB, free: 9.418 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.04128/0.953, allocations: 15.43 MB / 0.5629 GB, free: 9.891 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.9531, allocations: 12 kB / 0.5629 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.9534, allocations: 197.5 kB / 0.5631 GB, free: 9.684 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.9546, allocations: 0.7632 MB / 0.5638 GB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.9547, allocations: 32 kB / 0.5639 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.9548, allocations: 64 kB / 0.5639 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001981/0.9568, allocations: 1.253 MB / 0.5651 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.9587, allocations: 1.165 MB / 0.5663 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.9587, allocations: 0 / 0.5663 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-05/0.9588, allocations: 8 kB / 0.5663 GB, free: 6.281 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-05/0.9589, allocations: 24 kB / 0.5663 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006056/0.9649, allocations: 3.706 MB / 0.5699 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/0.9673, allocations: 1.645 MB / 0.5715 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000798/0.9681, allocations: 0.5727 MB / 0.5721 GB, free: 240 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.9683, allocations: 32.61 kB / 0.5721 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009797/0.9693, allocations: 0.6745 MB / 0.5728 GB, free: 15.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 5.11e-06/0.9693, allocations: 7.938 kB / 0.5728 GB, free: 15.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.002482/0.9718, allocations: 1.357 MB / 0.5741 GB, free: 14.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.9718, allocations: 60.06 kB / 0.5742 GB, free: 14.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.9734, allocations: 1.03 MB / 0.5752 GB, free: 13.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.059e-05/0.9734, allocations: 29.7 kB / 0.5752 GB, free: 12.99 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004441/0.9739, allocations: 470.1 kB / 0.5757 GB, free: 12.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002695/0.9742, allocations: 236.4 kB / 0.5759 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.9742, allocations: 0 / 0.5759 GB, free: 12.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.9744, allocations: 334 kB / 0.5762 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007094/0.9751, allocations: 0.5324 MB / 0.5767 GB, free: 11.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007969/0.9759, allocations: 0.6383 MB / 0.5773 GB, free: 10.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.9771, allocations: 0.5964 MB / 0.5779 GB, free: 10.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.9771, allocations: 0 / 0.5779 GB, free: 10.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002404/0.9795, allocations: 1.435 MB / 0.5793 GB, free: 8.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.9795, allocations: 7.984 kB / 0.5793 GB, free: 8.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.9795, allocations: 4 kB / 0.5793 GB, free: 8.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.9796, allocations: 8 kB / 0.5794 GB, free: 8.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000714/0.9803, allocations: 159.9 kB / 0.5795 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.9803, allocations: 11.89 kB / 0.5795 GB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.9807, allocations: 39.81 kB / 0.5796 GB, free: 8.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.9809, allocations: 87.92 kB / 0.5796 GB, free: 8.395 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 (89): * Single equations (assignments): 89 * 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.0002848/0.9812, allocations: 124.8 kB / 0.5798 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.9814, allocations: 142.1 kB / 0.5799 GB, free: 8.125 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.9849, allocations: 1.779 MB / 0.5816 GB, free: 6.332 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/0.985, allocations: 8 kB / 0.5816 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.985, allocations: 0 / 0.5816 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.9851, allocations: 3.984 kB / 0.5816 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.989, allocations: 2.533 MB / 0.5841 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.989, allocations: 0 / 0.5841 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006564/0.9896, allocations: 143.8 kB / 0.5843 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.739e-06/0.9897, allocations: 0 / 0.5843 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.9897, allocations: 23.98 kB / 0.5843 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.326e-06/0.9898, allocations: 8 kB / 0.5843 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.9898, allocations: 0 / 0.5843 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00341/0.9932, allocations: 2.349 MB / 0.5866 GB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006635/0.9999, allocations: 5.361 MB / 0.5918 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000603/1.001, allocations: 331 kB / 0.5921 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/1.001, allocations: 4 kB / 0.5921 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/1.001, allocations: 4 kB / 0.5921 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/1.001, allocations: 52.58 kB / 0.5922 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.001, allocations: 71.92 kB / 0.5923 GB, free: 11.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001309/1.003, allocations: 0.8065 MB / 0.593 GB, free: 10.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00138/1.004, allocations: 202.8 kB / 0.5932 GB, free: 10.34 MB / 426.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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002493/1.004, allocations: 113.9 kB / 0.5933 GB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00127/1.006, allocations: 0.9831 MB / 0.5943 GB, free: 9.234 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.006, allocations: 0 / 0.5943 GB, free: 9.234 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005746/1.006, allocations: 0.51 MB / 0.5948 GB, free: 8.727 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006134/1.007, allocations: 61.28 kB / 0.5949 GB, free: 8.664 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/1.011, allocations: 2.169 MB / 0.597 GB, free: 6.453 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/1.013, allocations: 1.431 MB / 0.5984 GB, free: 4.988 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.013, allocations: 0 / 0.5984 GB, free: 4.988 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)