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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3364/0.3364, allocations: 28.83 MB / 319.8 MB, free: 6.289 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003214/0.0003215, allocations: 4 kB / 387.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3208, allocations: 57.48 MB / 445.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002645/0.3235, allocations: 2.61 MB / 448 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.3246, allocations: 0.5303 MB / 448.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.3248, allocations: 11.62 kB / 448.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.325, allocations: 72.59 kB / 448.6 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.3253, allocations: 90.14 kB / 448.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.3257, allocations: 219.4 kB / 448.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.3262, allocations: 445.3 kB / 449.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005654/0.3267, allocations: 380.8 kB / 449.7 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3269, allocations: 243.5 kB / 449.9 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.3272, allocations: 299.5 kB / 450.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.497e-05/0.3273, allocations: 30.03 kB / 450.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.3274, allocations: 49.47 kB / 450.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002867/0.3277, allocations: 355.3 kB / 450.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.3279, allocations: 215.9 kB / 450.8 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.3285, allocations: 0.7172 MB / 451.6 MB, free: 29.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3285, allocations: 0 / 451.6 MB, free: 29.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3285, allocations: 4 kB / 451.6 MB, free: 29.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.3285, allocations: 0 / 451.6 MB, free: 29.24 MB / 350.1 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.001879/0.3304, allocations: 1.485 MB / 453 MB, free: 28.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3304, allocations: 13.19 kB / 453.1 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.3306, allocations: 170.9 kB / 453.2 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.3308, allocations: 191.9 kB / 453.4 MB, free: 27.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.3313, allocations: 0.5151 MB / 453.9 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.966e-05/0.3314, allocations: 76.05 kB / 454 MB, free: 27.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.3315, allocations: 97.5 kB / 454.1 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3328, allocations: 1.091 MB / 455.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.3329, allocations: 0 / 455.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.015e-05/0.333, allocations: 39.88 kB / 455.2 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.865e-05/0.333, allocations: 63.45 kB / 455.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3346, allocations: 1.233 MB / 456.5 MB, free: 26.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.3393, allocations: 2.902 MB / 459.4 MB, free: 25.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.341, allocations: 1.01 MB / 460.4 MB, free: 25.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.168e-05/0.3411, allocations: 31.05 kB / 460.5 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.3411, allocations: 42.94 kB / 460.5 MB, free: 25.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.575e-06/0.3412, allocations: 0 / 460.5 MB, free: 25.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.002577/0.3437, allocations: 1.616 MB / 462.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.3438, allocations: 62.34 kB / 462.2 MB, free: 24.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.3455, allocations: 1.249 MB / 463.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.3456, allocations: 35.86 kB / 463.5 MB, free: 24.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006536/0.3462, allocations: 0.7764 MB / 464.2 MB, free: 23.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.3465, allocations: 236.7 kB / 464.5 MB, free: 23.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.3465, allocations: 15.41 kB / 464.5 MB, free: 23.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3466, allocations: 335.2 kB / 464.8 MB, free: 23.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009118/0.3475, allocations: 492.8 kB / 465.3 MB, free: 23.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008813/0.3484, allocations: 0.6624 MB / 466 MB, free: 22.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008878/0.3493, allocations: 0.533 MB / 466.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.3493, allocations: 2.375 kB / 466.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002151/0.3515, allocations: 1.356 MB / 467.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.3515, allocations: 9.219 kB / 467.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3516, allocations: 5.625 kB / 467.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.3516, allocations: 9.938 kB / 467.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000648/0.3522, allocations: 186.2 kB / 468.1 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.439e-05/0.3523, allocations: 15.03 kB / 468.1 MB, free: 22.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004077/0.3527, allocations: 92.33 kB / 468.2 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/0.3528, allocations: 35.23 kB / 468.2 MB, free: 22.18 MB / 350.1 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.0007252/0.3535, allocations: 398.9 kB / 468.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3536, allocations: 133.4 kB / 468.7 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.3557, allocations: 1.282 MB / 470 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.3557, allocations: 6.719 kB / 470 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3558, allocations: 4 kB / 470 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3558, allocations: 4.375 kB / 470 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003633/0.3594, allocations: 2.397 MB / 472.4 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.3594, allocations: 3.953 kB / 472.4 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.36, allocations: 136.4 kB / 472.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.986e-06/0.36, allocations: 2.188 kB / 472.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.36, allocations: 15.56 kB / 472.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.3601, allocations: 7.016 kB / 472.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3601, allocations: 0 / 472.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002871/0.3629, allocations: 1.964 MB / 474.5 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.3632, allocations: 203.2 kB / 474.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.312e-05/0.3633, allocations: 11.98 kB / 474.7 MB, free: 19.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002763/0.3636, allocations: 42.45 kB / 474.8 MB, free: 19.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.3637, allocations: 43.3 kB / 474.8 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.725e-05/0.3638, allocations: 22.27 kB / 474.9 MB, free: 19.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001569/0.3653, allocations: 0.8596 MB / 475.7 MB, free: 19.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3653, allocations: 0 / 475.7 MB, free: 19.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000705/0.366, allocations: 211 kB / 475.9 MB, free: 19.22 MB / 350.1 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.002372/0.3684, allocations: 2.544 MB / 478.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.3699, allocations: 1.115 MB / 479.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3699, allocations: 0 / 479.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006142/0.3706, allocations: 0.5517 MB / 480.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.3709, allocations: 57.95 kB / 480.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.3814, allocations: 13.42 MB / 493.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006159/0.3821, allocations: 1.338 MB / 494.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003554/0.3824, allocations: 116.5 kB / 495.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004883/0.3829, allocations: 0.5813 MB / 495.6 MB, free: 116 kB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3829, allocations: 0 / 495.6 MB, free: 116 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.4163, allocations: 16.75 MB / 0.5004 GB, free: 15.45 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.4165, allocations: 185.4 kB / 0.5006 GB, free: 15.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.58, allocations: 0 / 0.5006 GB, free: 15.21 MB / 382.1 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) Environment - environmentSimulation: