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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.00258/0.00258, allocations: 182.9 kB / 7.463 MB, free: 2.512 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.314/1.314, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.001005/0.001005, allocations: 99.7 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1774/0.1774, allocations: 28.84 MB / 359.7 MB, free: 1.527 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2139/0.3914, allocations: 63.59 MB / 423.3 MB, free: 44.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.5138, allocations: 57.47 MB / 480.8 MB, free: 2.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3951/0.909, allocations: 80 MB / 0.5476 GB, free: 9.535 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.9093, allocations: 63.95 kB / 0.5477 GB, free: 9.473 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.04105/0.9504, allocations: 15.28 MB / 0.5626 GB, free: 10.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.9504, allocations: 8 kB / 0.5626 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/0.9507, allocations: 197.5 kB / 0.5628 GB, free: 9.914 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.9519, allocations: 0.763 MB / 0.5636 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.096e-05/0.9519, allocations: 32 kB / 0.5636 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.9521, allocations: 60 kB / 0.5637 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001902/0.954, allocations: 1.245 MB / 0.5649 GB, free: 7.762 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.9558, allocations: 1.147 MB / 0.566 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.9558, allocations: 3.938 kB / 0.566 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-05/0.9559, allocations: 0 / 0.566 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.9559, allocations: 31.94 kB / 0.566 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005984/0.9619, allocations: 3.678 MB / 0.5696 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.9644, allocations: 1.625 MB / 0.5712 GB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008942/0.9653, allocations: 0.5649 MB / 0.5718 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.9654, allocations: 32.61 kB / 0.5718 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.173e-05/0.9655, allocations: 39.22 kB / 0.5718 GB, free: 480 kB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 5.31e-06/0.9655, allocations: 0 / 0.5718 GB, free: 480 kB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.002303/0.9678, allocations: 1.329 MB / 0.5731 GB, free: 15.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.9679, allocations: 56.06 kB / 0.5732 GB, free: 15.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.9692, allocations: 1.03 MB / 0.5742 GB, free: 14.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.055e-05/0.9693, allocations: 25.7 kB / 0.5742 GB, free: 14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.9697, allocations: 477.9 kB / 0.5747 GB, free: 13.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.9699, allocations: 220.6 kB / 0.5749 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-05/0.9699, allocations: 0 / 0.5749 GB, free: 13.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.9701, allocations: 337.9 kB / 0.5752 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007342/0.9708, allocations: 0.5243 MB / 0.5757 GB, free: 12.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007933/0.9716, allocations: 0.624 MB / 0.5763 GB, free: 11.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.9728, allocations: 0.5769 MB / 0.5769 GB, free: 11.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.9728, allocations: 0 / 0.5769 GB, free: 11.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002338/0.9751, allocations: 1.404 MB / 0.5783 GB, free: 9.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.9752, allocations: 8 kB / 0.5783 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.9752, allocations: 0 / 0.5783 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.587e-05/0.9752, allocations: 8 kB / 0.5783 GB, free: 9.777 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006873/0.9759, allocations: 155.7 kB / 0.5784 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.976, allocations: 12.25 kB / 0.5784 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.9763, allocations: 43.44 kB / 0.5785 GB, free: 9.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.9764, allocations: 75.97 kB / 0.5785 GB, free: 9.496 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.0001675/0.9766, allocations: 114.7 kB / 0.5787 GB, free: 9.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.9768, allocations: 138.2 kB / 0.5788 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.98, allocations: 1.748 MB / 0.5805 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.98, allocations: 12 kB / 0.5805 GB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.9801, allocations: 0 / 0.5805 GB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.9801, allocations: 7.891 kB / 0.5805 GB, free: 7.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.9837, allocations: 2.483 MB / 0.5829 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.9837, allocations: 0 / 0.5829 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006405/0.9844, allocations: 135.8 kB / 0.5831 GB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/0.9844, allocations: 4 kB / 0.5831 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.108e-05/0.9845, allocations: 19.98 kB / 0.5831 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.9845, allocations: 4 kB / 0.5831 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.9845, allocations: 4 kB / 0.5831 GB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003351/0.9879, allocations: 2.314 MB / 0.5854 GB, free: 2.434 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006735/0.9946, allocations: 5.271 MB / 0.5905 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.9949, allocations: 199.1 kB / 0.5907 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.9951, allocations: 0 / 0.5907 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000339/0.9955, allocations: 11.98 kB / 0.5907 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.9956, allocations: 44.59 kB / 0.5907 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.9958, allocations: 67.98 kB / 0.5908 GB, free: 12.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001398/0.9972, allocations: 0.8024 MB / 0.5916 GB, free: 12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001446/0.9986, allocations: 198.8 kB / 0.5918 GB, free: 11.8 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: 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.0002827/0.9989, allocations: 110.1 kB / 0.5919 GB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/1, allocations: 0.9485 MB / 0.5928 GB, free: 10.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1, allocations: 4.062 kB / 0.5928 GB, free: 10.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/1.001, allocations: 0.4944 MB / 0.5933 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/1.002, allocations: 65.2 kB / 0.5934 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005949/1.008, allocations: 2.146 MB / 0.5955 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/1.01, allocations: 1.412 MB / 0.5968 GB, free: 6.543 MB / 426.7 MB Notification: Performance of SimCode: time 2.915e-06/1.01, allocations: 0 / 0.5968 GB, free: 6.543 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)