Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.483/1.483, allocations: 221.5 MB / 229.6 MB, free: 7.598 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.00102/0.001021, allocations: 83 kB / 280.4 MB, free: 5.355 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2485/0.2485, allocations: 28.83 MB / 360.1 MB, free: 2.234 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.9e-05, allocations: 0 / 423.9 MB, free: 32.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1385, allocations: 57.49 MB / 481.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5986, allocations: 79.55 MB / 0.5478 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.5988, allocations: 64.73 kB / 0.5478 GB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03346/0.6323, allocations: 12.22 MB / 0.5597 GB, free: 6.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6324, allocations: 0 / 0.5597 GB, free: 6.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.808e-05/0.6324, allocations: 34.91 kB / 0.5598 GB, free: 6.926 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002499/0.6349, allocations: 1.355 MB / 0.5611 GB, free: 5.957 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.635, allocations: 11.48 kB / 0.5611 GB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.6353, allocations: 194.3 kB / 0.5613 GB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006549/0.636, allocations: 0.4999 MB / 0.5618 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.512e-05/0.6361, allocations: 34.91 kB / 0.5618 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001945/0.6363, allocations: 54.16 kB / 0.5619 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002605/0.6389, allocations: 1.26 MB / 0.5631 GB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.6412, allocations: 0.9994 MB / 0.5641 GB, free: 4.961 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.6412, allocations: 0 / 0.5641 GB, free: 4.961 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.6413, allocations: 0 / 0.5641 GB, free: 4.961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-05/0.6414, allocations: 55.94 kB / 0.5641 GB, free: 4.953 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005291/0.6468, allocations: 2.858 MB / 0.5669 GB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.6482, allocations: 1.077 MB / 0.568 GB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.6488, allocations: 0.5197 MB / 0.5685 GB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.1e-05/0.6489, allocations: 46.92 kB / 0.5685 GB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.6489, allocations: 38.53 kB / 0.5686 GB, free: 3.352 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.695e-06/0.6489, allocations: 0 / 0.5686 GB, free: 3.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.001711/0.6507, allocations: 1.232 MB / 0.5698 GB, free: 3.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.6507, allocations: 59.81 kB / 0.5698 GB, free: 2.953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009522/0.6517, allocations: 0.9828 MB / 0.5708 GB, free: 2.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/0.6517, allocations: 25.7 kB / 0.5708 GB, free: 2.648 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004248/0.6521, allocations: 0.7682 MB / 0.5716 GB, free: 2.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.6523, allocations: 219.4 kB / 0.5718 GB, free: 2.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.6524, allocations: 0 / 0.5718 GB, free: 2.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.365e-05/0.6525, allocations: 342.3 kB / 0.5721 GB, free: 1.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.653, allocations: 0.4927 MB / 0.5726 GB, free: 1.406 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.6537, allocations: 0.6734 MB / 0.5732 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009074/0.6546, allocations: 0.5815 MB / 0.5738 GB, free: 364 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.6546, allocations: 0 / 0.5738 GB, free: 364 kB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002141/0.6567, allocations: 1.405 MB / 0.5752 GB, free: 15.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.6568, allocations: 8 kB / 0.5752 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.6568, allocations: 4.75 kB / 0.5752 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.349e-05/0.6568, allocations: 12 kB / 0.5752 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007612/0.6576, allocations: 214.1 kB / 0.5754 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.6576, allocations: 8 kB / 0.5754 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.658, allocations: 67.27 kB / 0.5755 GB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.6581, allocations: 88.34 kB / 0.5756 GB, free: 14.82 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0002333/0.6584, allocations: 154.1 kB / 0.5757 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00189/0.6603, allocations: 1.239 MB / 0.5769 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.6605, allocations: 138.2 kB / 0.577 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.6632, allocations: 1.554 MB / 0.5786 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6632, allocations: 8 kB / 0.5786 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.6633, allocations: 0 / 0.5786 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6633, allocations: 7.938 kB / 0.5786 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.6665, allocations: 2.351 MB / 0.5809 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.6666, allocations: 0 / 0.5809 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006559/0.6672, allocations: 167.2 kB / 0.581 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/0.6672, allocations: 0 / 0.581 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.6673, allocations: 23.67 kB / 0.5811 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.6673, allocations: 4 kB / 0.5811 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.6673, allocations: 3.953 kB / 0.5811 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.6703, allocations: 2.14 MB / 0.5832 GB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.6704, allocations: 191.3 kB / 0.5833 GB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.6706, allocations: 0 / 0.5833 GB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.6708, allocations: 27.97 kB / 0.5834 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.671, allocations: 56.06 kB / 0.5834 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.6711, allocations: 79.8 kB / 0.5835 GB, free: 8.238 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009212/0.6721, allocations: 0.7614 MB / 0.5842 GB, free: 7.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.346e-06/0.6721, allocations: 0 / 0.5842 GB, free: 7.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006897/0.6728, allocations: 198.8 kB / 0.5844 GB, free: 7.469 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.00244/0.6752, allocations: 2.369 MB / 0.5867 GB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.6764, allocations: 0.9816 MB / 0.5877 GB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.6764, allocations: 0 / 0.5877 GB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.677, allocations: 0.497 MB / 0.5882 GB, free: 4.227 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.6773, allocations: 43.25 kB / 0.5882 GB, free: 4.211 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.681, allocations: 2.405 MB / 0.5906 GB, free: 1.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009426/0.682, allocations: 1.322 MB / 0.5919 GB, free: 0.668 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003876/0.6824, allocations: 120.6 kB / 0.592 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.6829, allocations: 0.573 MB / 0.5925 GB, free: 464 kB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6829, allocations: 0 / 0.5925 GB, free: 464 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.7234, allocations: 16 MB / 0.6082 GB, free: 468 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.7236, allocations: 136.5 kB / 0.6083 GB, free: 268 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/3.208, allocations: 0 / 0.6083 GB, free: 268 kB / 394.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)