Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.004128/0.004128, allocations: 183.2 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.434/1.434, allocations: 221.4 MB / 229.3 MB, free: 3.051 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.001154/0.001155, allocations: 104.8 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.1658/0.1658, allocations: 28.84 MB / 359.7 MB, free: 1.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1957/0.3615, allocations: 63.59 MB / 423.3 MB, free: 44.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.4667, allocations: 57.47 MB / 480.8 MB, free: 2.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3189/0.7857, allocations: 80.08 MB / 0.5477 GB, free: 9.523 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/0.7859, allocations: 67.95 kB / 0.5478 GB, free: 9.457 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.04171/0.8276, allocations: 15.58 MB / 0.563 GB, free: 9.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.8277, allocations: 15.98 kB / 0.563 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005089/0.8282, allocations: 201.4 kB / 0.5632 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.8298, allocations: 0.7705 MB / 0.564 GB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.041e-05/0.8298, allocations: 36 kB / 0.564 GB, free: 8.723 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002334/0.8301, allocations: 60 kB / 0.564 GB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002696/0.8328, allocations: 1.359 MB / 0.5654 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.8351, allocations: 1.253 MB / 0.5666 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.8351, allocations: 4 kB / 0.5666 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.532e-05/0.8352, allocations: 0 / 0.5666 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.602e-05/0.8353, allocations: 51.89 kB / 0.5667 GB, free: 5.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007412/0.8427, allocations: 3.89 MB / 0.5704 GB, free: 1.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.845, allocations: 1.638 MB / 0.572 GB, free: 296 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008257/0.8459, allocations: 0.5735 MB / 0.5726 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.846, allocations: 36.61 kB / 0.5726 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.846, allocations: 39.22 kB / 0.5727 GB, free: 15.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.414e-06/0.846, allocations: 0 / 0.5727 GB, free: 15.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.002354/0.8484, allocations: 1.349 MB / 0.574 GB, free: 14.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.8485, allocations: 89.7 kB / 0.5741 GB, free: 14.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/0.8501, allocations: 1.092 MB / 0.5751 GB, free: 13.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.8502, allocations: 25.7 kB / 0.5752 GB, free: 13.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004032/0.8506, allocations: 0.536 MB / 0.5757 GB, free: 12.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.8509, allocations: 240.5 kB / 0.5759 GB, free: 12.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.467e-05/0.851, allocations: 0 / 0.5759 GB, free: 12.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.8511, allocations: 337.9 kB / 0.5762 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007856/0.8519, allocations: 0.5563 MB / 0.5768 GB, free: 11.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009822/0.8529, allocations: 0.796 MB / 0.5776 GB, free: 10.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.8542, allocations: 0.6587 MB / 0.5782 GB, free: 9.793 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.8542, allocations: 4 kB / 0.5782 GB, free: 9.789 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00288/0.8571, allocations: 1.555 MB / 0.5797 GB, free: 8.223 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.8571, allocations: 4.969 kB / 0.5797 GB, free: 8.219 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.8572, allocations: 8 kB / 0.5797 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.156e-05/0.8572, allocations: 16 kB / 0.5798 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/0.858, allocations: 207.7 kB / 0.58 GB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.811e-05/0.858, allocations: 19.92 kB / 0.58 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000578/0.8586, allocations: 63.12 kB / 0.58 GB, free: 7.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.8588, allocations: 95.91 kB / 0.5801 GB, free: 7.816 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.000249/0.8591, allocations: 138.1 kB / 0.5803 GB, free: 7.676 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003642/0.8594, allocations: 142.1 kB / 0.5804 GB, free: 7.535 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004038/0.8635, allocations: 1.803 MB / 0.5822 GB, free: 5.719 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.8635, allocations: 8 kB / 0.5822 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.8635, allocations: 0 / 0.5822 GB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.8635, allocations: 7.891 kB / 0.5822 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.868, allocations: 2.53 MB / 0.5846 GB, free: 3.125 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.8681, allocations: 0 / 0.5846 GB, free: 3.125 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006555/0.8687, allocations: 143.8 kB / 0.5848 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.444e-05/0.8687, allocations: 0 / 0.5848 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.989e-05/0.8688, allocations: 19.98 kB / 0.5848 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.764e-06/0.8688, allocations: 4 kB / 0.5848 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.8689, allocations: 0 / 0.5848 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003541/0.8724, allocations: 2.432 MB / 0.5872 GB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006668/0.8791, allocations: 5.402 MB / 0.5925 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002838/0.8794, allocations: 203.1 kB / 0.5926 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.8796, allocations: 8 kB / 0.5927 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003596/0.8799, allocations: 0 / 0.5927 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.8801, allocations: 60.48 kB / 0.5927 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.8802, allocations: 79.91 kB / 0.5928 GB, free: 10.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001237/0.8815, allocations: 0.8355 MB / 0.5936 GB, free: 9.871 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001383/0.8829, allocations: 202.9 kB / 0.5938 GB, free: 9.672 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002276/0.8831, allocations: 110.3 kB / 0.5939 GB, free: 9.555 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.8844, allocations: 1.041 MB / 0.5949 GB, free: 8.512 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.8845, allocations: 0 / 0.5949 GB, free: 8.512 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005193/0.885, allocations: 0.5005 MB / 0.5954 GB, free: 8.016 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006001/0.8856, allocations: 77.66 kB / 0.5955 GB, free: 7.938 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.8898, allocations: 2.214 MB / 0.5976 GB, free: 5.672 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.8911, allocations: 1.458 MB / 0.5991 GB, free: 4.184 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.8911, allocations: 0 / 0.5991 GB, free: 4.184 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4_fmu --startTime=1900 --stopTime=2000 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)