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.005597/0.005597, allocations: 171.8 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 223.2 MB / 239 MB, free: 1.809 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: 95.66 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2094/0.2094, allocations: 28.85 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.000326, allocations: 12 kB / 438.2 MB, free: 70.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1182, allocations: 57.47 MB / 495.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4069/0.5251, allocations: 80.28 MB / 0.5625 GB, free: 11.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.5254, allocations: 63.53 kB / 0.5625 GB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02861/0.5541, allocations: 12.33 MB / 0.5746 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.5542, allocations: 0 / 0.5746 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.5542, allocations: 28 kB / 0.5746 GB, free: 0.9375 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.002128/0.5563, allocations: 1.572 MB / 0.5761 GB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.031e-05/0.5564, allocations: 8.031 kB / 0.5761 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003194/0.5567, allocations: 183.8 kB / 0.5763 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.557, allocations: 189.5 kB / 0.5765 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006967/0.5577, allocations: 0.5114 MB / 0.577 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.5578, allocations: 82.7 kB / 0.5771 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.5579, allocations: 100.4 kB / 0.5772 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002043/0.56, allocations: 1.199 MB / 0.5783 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.56, allocations: 0 / 0.5783 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/0.5601, allocations: 42.69 kB / 0.5784 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.555e-05/0.5602, allocations: 62.11 kB / 0.5784 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.5625, allocations: 1.382 MB / 0.5798 GB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006117/0.5686, allocations: 3.065 MB / 0.5828 GB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.5706, allocations: 1.171 MB / 0.5839 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.5707, allocations: 27.75 kB / 0.5839 GB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.5708, allocations: 45.77 kB / 0.584 GB, free: 8.891 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 4.378e-06/0.5708, allocations: 0 / 0.584 GB, free: 8.891 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003033/0.5738, allocations: 1.886 MB / 0.5858 GB, free: 7.395 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/0.5739, allocations: 59.97 kB / 0.5859 GB, free: 7.324 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.5754, allocations: 1.086 MB / 0.5869 GB, free: 6.453 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.5755, allocations: 37.02 kB / 0.587 GB, free: 6.418 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006122/0.5761, allocations: 0.7835 MB / 0.5877 GB, free: 5.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.5764, allocations: 232.2 kB / 0.588 GB, free: 5.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.5764, allocations: 17.19 kB / 0.588 GB, free: 5.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.5766, allocations: 336.5 kB / 0.5883 GB, free: 5.434 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.5775, allocations: 0.5577 MB / 0.5888 GB, free: 5.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.5785, allocations: 0.7474 MB / 0.5896 GB, free: 4.328 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009683/0.5795, allocations: 0.6132 MB / 0.5902 GB, free: 3.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.5795, allocations: 0 / 0.5902 GB, free: 3.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002538/0.582, allocations: 1.539 MB / 0.5917 GB, free: 2.633 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.5821, allocations: 12 kB / 0.5917 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5821, allocations: 11.95 kB / 0.5917 GB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/0.5821, allocations: 8 kB / 0.5917 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.5829, allocations: 207.1 kB / 0.5919 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.202e-05/0.5829, allocations: 11.94 kB / 0.5919 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004258/0.5833, allocations: 97.81 kB / 0.592 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.5835, allocations: 83.8 kB / 0.5921 GB, free: 2.234 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 fixed = true ) "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 () * Number of clocked 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.001002/0.5845, allocations: 391.3 kB / 0.5925 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.5847, allocations: 138.2 kB / 0.5926 GB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002882/0.5876, allocations: 1.687 MB / 0.5942 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.5876, allocations: 15.89 kB / 0.5943 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5876, allocations: 0 / 0.5943 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.5876, allocations: 3.984 kB / 0.5943 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003852/0.5915, allocations: 2.579 MB / 0.5968 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5915, allocations: 0 / 0.5968 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006214/0.5921, allocations: 158.8 kB / 0.5969 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.5922, allocations: 3.953 kB / 0.5969 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.819e-05/0.5923, allocations: 35.11 kB / 0.597 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.5923, allocations: 4 kB / 0.597 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5923, allocations: 0 / 0.597 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003326/0.5956, allocations: 2.312 MB / 0.5992 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.5959, allocations: 199.1 kB / 0.5994 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.596, allocations: 18.02 kB / 0.5994 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.5963, allocations: 35.09 kB / 0.5995 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.5965, allocations: 55.38 kB / 0.5995 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.5966, allocations: 78.91 kB / 0.5996 GB, free: 12.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001168/0.5978, allocations: 0.8555 MB / 0.6004 GB, free: 11.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5978, allocations: 0 / 0.6004 GB, free: 11.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000798/0.5986, allocations: 219.7 kB / 0.6006 GB, free: 11.19 MB / 394.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 () * Number of clocked 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.003/0.6016, allocations: 2.542 MB / 0.6031 GB, free: 9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.6034, allocations: 1.106 MB / 0.6042 GB, free: 8.086 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6034, allocations: 0 / 0.6042 GB, free: 8.086 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.6042, allocations: 0.5605 MB / 0.6048 GB, free: 7.621 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.6047, allocations: 57.3 kB / 0.6048 GB, free: 7.602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.6203, allocations: 13.42 MB / 0.6179 GB, free: 10.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001154/0.6216, allocations: 1.331 MB / 0.6192 GB, free: 9.168 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004609/0.622, allocations: 116.3 kB / 0.6193 GB, free: 9.051 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006575/0.6227, allocations: 0.5736 MB / 0.6199 GB, free: 8.477 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6227, allocations: 3.938 kB / 0.6199 GB, free: 8.473 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04097/0.6637, allocations: 16.76 MB / 0.6363 GB, free: 7.801 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.664, allocations: 184.9 kB / 0.6364 GB, free: 7.547 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.769/3.433, allocations: 0 / 0.6364 GB, free: 7.547 MB / 426.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)