Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.002549/0.002549, allocations: 183.6 kB / 7.457 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.378/1.378, allocations: 221.4 MB / 229.3 MB, free: 3.023 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.001015/0.001015, allocations: 100 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.184/0.184, allocations: 28.84 MB / 359.7 MB, free: 1.566 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2278/0.4119, allocations: 63.59 MB / 423.3 MB, free: 44.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.5338, allocations: 57.47 MB / 480.8 MB, free: 2.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3249/0.8588, allocations: 79.88 MB / 0.5475 GB, free: 9.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.8591, allocations: 68.55 kB / 0.5476 GB, free: 9.605 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.03825/0.8974, allocations: 15.06 MB / 0.5623 GB, free: 10.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.642e-05/0.8975, allocations: 8 kB / 0.5623 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003164/0.8978, allocations: 193.6 kB / 0.5625 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.899, allocations: 0.7348 MB / 0.5632 GB, free: 9.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.899, allocations: 32 kB / 0.5632 GB, free: 9.469 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.8992, allocations: 67.91 kB / 0.5633 GB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001787/0.9009, allocations: 1.191 MB / 0.5645 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.9026, allocations: 1.106 MB / 0.5655 GB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.9027, allocations: 11.88 kB / 0.5656 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.9027, allocations: 4 kB / 0.5656 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.9028, allocations: 24 kB / 0.5656 GB, free: 7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006058/0.9088, allocations: 3.595 MB / 0.5691 GB, free: 3.312 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.911, allocations: 1.543 MB / 0.5706 GB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006816/0.9117, allocations: 0.5414 MB / 0.5711 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.9118, allocations: 32.84 kB / 0.5712 GB, free: 1.188 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.9119, allocations: 35.22 kB / 0.5712 GB, free: 1.145 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.256e-06/0.9119, allocations: 0 / 0.5712 GB, free: 1.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002304/0.9142, allocations: 1.263 MB / 0.5724 GB, free: 15.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.9143, allocations: 60.06 kB / 0.5725 GB, free: 15.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.9157, allocations: 0.9798 MB / 0.5734 GB, free: 14.81 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.253e-05/0.9158, allocations: 25.7 kB / 0.5735 GB, free: 14.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.9162, allocations: 469.6 kB / 0.5739 GB, free: 14.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002453/0.9164, allocations: 212.7 kB / 0.5741 GB, free: 14.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.9165, allocations: 0 / 0.5741 GB, free: 14.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.9167, allocations: 334 kB / 0.5744 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007725/0.9174, allocations: 0.497 MB / 0.5749 GB, free: 13.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007951/0.9182, allocations: 0.5927 MB / 0.5755 GB, free: 12.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.9193, allocations: 0.5574 MB / 0.576 GB, free: 12.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.9194, allocations: 0 / 0.576 GB, free: 12.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002235/0.9216, allocations: 1.337 MB / 0.5774 GB, free: 10.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.9216, allocations: 4.312 kB / 0.5774 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.9217, allocations: 4 kB / 0.5774 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.9217, allocations: 11.94 kB / 0.5774 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005869/0.9223, allocations: 151.8 kB / 0.5775 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.9223, allocations: 11.97 kB / 0.5775 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.9226, allocations: 35.44 kB / 0.5776 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.9228, allocations: 75.98 kB / 0.5776 GB, free: 10.45 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 (81): * Single equations (assignments): 81 * 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.0001451/0.9229, allocations: 114.7 kB / 0.5777 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.9231, allocations: 130.3 kB / 0.5779 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003084/0.9262, allocations: 1.669 MB / 0.5795 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.9262, allocations: 8 kB / 0.5795 GB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.9262, allocations: 3.906 kB / 0.5795 GB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.9263, allocations: 3.984 kB / 0.5795 GB, free: 8.508 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003515/0.9298, allocations: 2.392 MB / 0.5818 GB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.9298, allocations: 0 / 0.5818 GB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.9304, allocations: 143.8 kB / 0.582 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.9304, allocations: 0 / 0.582 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.804e-05/0.9305, allocations: 19.98 kB / 0.582 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.9305, allocations: 0 / 0.582 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.9305, allocations: 0 / 0.582 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002989/0.9335, allocations: 2.2 MB / 0.5842 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006211/0.9398, allocations: 5.029 MB / 0.5891 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003147/0.9401, allocations: 195.1 kB / 0.5893 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.9403, allocations: 4 kB / 0.5893 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.9406, allocations: 0 / 0.5893 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.9407, allocations: 44.59 kB / 0.5893 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.9408, allocations: 67.97 kB / 0.5894 GB, free: 14.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001113/0.9419, allocations: 0.7694 MB / 0.5901 GB, free: 13.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0012/0.9431, allocations: 182.9 kB / 0.5903 GB, free: 13.36 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 (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.0002204/0.9434, allocations: 123 kB / 0.5904 GB, free: 13.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.9445, allocations: 0.9089 MB / 0.5913 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.9446, allocations: 3.938 kB / 0.5913 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004804/0.9451, allocations: 486.3 kB / 0.5918 GB, free: 11.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.9456, allocations: 65.03 kB / 0.5918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.9497, allocations: 2.043 MB / 0.5938 GB, free: 9.691 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/0.951, allocations: 1.388 MB / 0.5952 GB, free: 8.273 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.951, allocations: 0 / 0.5952 GB, free: 8.273 MB / 426.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)