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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.004384/0.004384, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.36/1.36, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.001047/0.001047, allocations: 94.62 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1674/0.1674, allocations: 28.82 MB / 359.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2584/0.4258, allocations: 63.6 MB / 423.3 MB, free: 44.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.5553, allocations: 57.47 MB / 480.8 MB, free: 2.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.9194, allocations: 80.02 MB / 0.5477 GB, free: 9.613 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.9197, allocations: 63.97 kB / 0.5477 GB, free: 9.551 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.03863/0.9584, allocations: 15.32 MB / 0.5627 GB, free: 10.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.9584, allocations: 8 kB / 0.5627 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.9587, allocations: 197.5 kB / 0.5629 GB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.9597, allocations: 0.7629 MB / 0.5636 GB, free: 9.133 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.9598, allocations: 32 kB / 0.5637 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.9599, allocations: 60 kB / 0.5637 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001821/0.9617, allocations: 1.245 MB / 0.5649 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.9635, allocations: 1.15 MB / 0.5661 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.9636, allocations: 0 / 0.5661 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.9636, allocations: 7.844 kB / 0.5661 GB, free: 6.574 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/0.9637, allocations: 28 kB / 0.5661 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.9692, allocations: 3.686 MB / 0.5697 GB, free: 2.773 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002145/0.9714, allocations: 1.628 MB / 0.5713 GB, free: 1.133 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.9721, allocations: 0.561 MB / 0.5718 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.9722, allocations: 36.84 kB / 0.5719 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/0.9723, allocations: 39.22 kB / 0.5719 GB, free: 496 kB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 2.094e-06/0.9723, allocations: 0 / 0.5719 GB, free: 496 kB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.002333/0.9746, allocations: 1.329 MB / 0.5732 GB, free: 15.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.9747, allocations: 67.98 kB / 0.5733 GB, free: 15.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.9762, allocations: 1.014 MB / 0.5743 GB, free: 14.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.9762, allocations: 25.7 kB / 0.5743 GB, free: 14.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003675/0.9766, allocations: 477.9 kB / 0.5747 GB, free: 13.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.9768, allocations: 228.6 kB / 0.5749 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.9769, allocations: 0 / 0.5749 GB, free: 13.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.977, allocations: 330 kB / 0.5753 GB, free: 12.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007273/0.9778, allocations: 0.5246 MB / 0.5758 GB, free: 12.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008026/0.9786, allocations: 0.6249 MB / 0.5764 GB, free: 11.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.9797, allocations: 0.5808 MB / 0.577 GB, free: 11.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.9798, allocations: 0 / 0.577 GB, free: 11.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002252/0.982, allocations: 1.407 MB / 0.5783 GB, free: 9.805 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.982, allocations: 8 kB / 0.5783 GB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.9821, allocations: 0 / 0.5783 GB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.9821, allocations: 8 kB / 0.5783 GB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000641/0.9827, allocations: 159.7 kB / 0.5785 GB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.9828, allocations: 4 kB / 0.5785 GB, free: 9.629 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.9831, allocations: 43.77 kB / 0.5785 GB, free: 9.586 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.9832, allocations: 75.98 kB / 0.5786 GB, free: 9.512 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.0002049/0.9834, allocations: 116.8 kB / 0.5787 GB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.9836, allocations: 138.2 kB / 0.5789 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003116/0.9867, allocations: 1.759 MB / 0.5806 GB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.9867, allocations: 4 kB / 0.5806 GB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.9867, allocations: 4 kB / 0.5806 GB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.9868, allocations: 7.984 kB / 0.5806 GB, free: 7.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.9903, allocations: 2.49 MB / 0.583 GB, free: 4.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.9903, allocations: 0 / 0.583 GB, free: 4.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006333/0.9909, allocations: 143.7 kB / 0.5832 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/0.991, allocations: 0 / 0.5832 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.296e-05/0.991, allocations: 23.98 kB / 0.5832 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.991, allocations: 0 / 0.5832 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.9911, allocations: 0 / 0.5832 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003112/0.9942, allocations: 2.322 MB / 0.5854 GB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006558/1.001, allocations: 5.271 MB / 0.5906 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/1.001, allocations: 199.2 kB / 0.5908 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/1.001, allocations: 7.891 kB / 0.5908 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/1.002, allocations: 4 kB / 0.5908 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.002, allocations: 48.59 kB / 0.5908 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/1.002, allocations: 72.34 kB / 0.5909 GB, free: 12.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001183/1.003, allocations: 0.7983 MB / 0.5917 GB, free: 11.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001404/1.004, allocations: 194.9 kB / 0.5919 GB, free: 11.78 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 (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.000236/1.005, allocations: 107 kB / 0.592 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/1.006, allocations: 0.9601 MB / 0.5929 GB, free: 10.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.006, allocations: 4.062 kB / 0.5929 GB, free: 10.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/1.007, allocations: 0.5022 MB / 0.5934 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005385/1.007, allocations: 64.41 kB / 0.5935 GB, free: 10.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/1.011, allocations: 2.136 MB / 0.5956 GB, free: 7.957 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.012, allocations: 1.412 MB / 0.5969 GB, free: 6.516 MB / 426.7 MB Notification: Performance of SimCode: time 7.72e-07/1.012, allocations: 0 / 0.5969 GB, free: 6.516 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)