Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.001078/0.001078, allocations: 99.62 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.00118/0.00118, 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.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3488/0.3488, allocations: 28.84 MB / 319.8 MB, free: 6.289 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 8 kB / 387.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 57.47 MB / 445.3 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002844/0.3316, allocations: 2.987 MB / 448.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.3331, allocations: 0.7551 MB / 449.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.3334, allocations: 15.56 kB / 449.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.3337, allocations: 83.28 kB / 449.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.334, allocations: 114.7 kB / 449.3 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005744/0.3345, allocations: 273.2 kB / 449.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005635/0.3351, allocations: 0.5231 MB / 450.1 MB, free: 29.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.3357, allocations: 481 kB / 450.6 MB, free: 29.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.3358, allocations: 243.3 kB / 450.8 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.3361, allocations: 328.5 kB / 451.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.074e-05/0.3362, allocations: 20.62 kB / 451.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.3363, allocations: 43.8 kB / 451.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002663/0.3366, allocations: 343.7 kB / 451.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.3367, allocations: 230.7 kB / 451.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005955/0.3373, allocations: 0.7995 MB / 452.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3373, allocations: 0 / 452.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3374, allocations: 3.938 kB / 452.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.986e-05/0.3374, allocations: 0 / 452.5 MB, free: 28.61 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001723/0.3391, allocations: 1.54 MB / 454.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3392, allocations: 10.69 kB / 454.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001792/0.3393, allocations: 172.2 kB / 454.3 MB, free: 27.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.3395, allocations: 207.2 kB / 454.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007194/0.3403, allocations: 0.6895 MB / 455.2 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.639e-05/0.3403, allocations: 81.64 kB / 455.2 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.3405, allocations: 104.3 kB / 455.3 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3418, allocations: 1.177 MB / 456.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.3418, allocations: 2.625 kB / 456.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.198e-05/0.3419, allocations: 43.88 kB / 456.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.3419, allocations: 34.14 kB / 456.6 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.3432, allocations: 1.106 MB / 457.7 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.3472, allocations: 3.734 MB / 461.4 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.3489, allocations: 1.357 MB / 462.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.613e-05/0.349, allocations: 27.77 kB / 462.8 MB, free: 23.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007141/0.3498, allocations: 0.5455 MB / 463.4 MB, free: 23.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.487e-06/0.3498, allocations: 0 / 463.4 MB, free: 23.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002029/0.3518, allocations: 1.572 MB / 464.9 MB, free: 22.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.3519, allocations: 62.55 kB / 465 MB, free: 22.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.3537, allocations: 1.288 MB / 466.3 MB, free: 22.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.3537, allocations: 36.48 kB / 466.3 MB, free: 22.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005206/0.3542, allocations: 0.7705 MB / 467.1 MB, free: 21.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.3544, allocations: 246.1 kB / 467.3 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.3544, allocations: 14.03 kB / 467.3 MB, free: 21.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.749e-05/0.3545, allocations: 337.4 kB / 467.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000544/0.3551, allocations: 447.7 kB / 468.1 MB, free: 21.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006282/0.3557, allocations: 0.5497 MB / 468.7 MB, free: 20.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006462/0.3564, allocations: 481 kB / 469.1 MB, free: 20.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3564, allocations: 1.219 kB / 469.1 MB, free: 20.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001604/0.358, allocations: 1.222 MB / 470.3 MB, free: 20.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.358, allocations: 6.609 kB / 470.4 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.358, allocations: 3.219 kB / 470.4 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.3581, allocations: 7.594 kB / 470.4 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005328/0.3586, allocations: 134.7 kB / 470.5 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.3586, allocations: 9.969 kB / 470.5 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.3589, allocations: 58.55 kB / 470.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.359, allocations: 35.42 kB / 470.6 MB, free: 20.3 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_dPop,min_dPop,$PRE.min_QL,min_QL,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 89 * 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.0005215/0.3595, allocations: 376.8 kB / 471 MB, free: 20.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3596, allocations: 143.3 kB / 471.1 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.3614, allocations: 1.238 MB / 472.3 MB, free: 19.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.3614, allocations: 7.75 kB / 472.4 MB, free: 19.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.3614, allocations: 8.531 kB / 472.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3614, allocations: 3 kB / 472.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.3653, allocations: 2.419 MB / 474.8 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3653, allocations: 1.312 kB / 474.8 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005544/0.3659, allocations: 118.4 kB / 474.9 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.3659, allocations: 2.281 kB / 474.9 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-05/0.366, allocations: 20.48 kB / 474.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.265e-05/0.366, allocations: 2.625 kB / 474.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.366, allocations: 0 / 474.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00367/0.3697, allocations: 1.923 MB / 476.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003865/0.3701, allocations: 250.8 kB / 477.1 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/0.3702, allocations: 17.3 kB / 477.1 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.3704, allocations: 15.17 kB / 477.1 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.3706, allocations: 41.73 kB / 477.2 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.3706, allocations: 22.97 kB / 477.2 MB, free: 17.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00127/0.3719, allocations: 0.8854 MB / 478.1 MB, free: 17.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.3719, allocations: 0 / 478.1 MB, free: 17.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006899/0.3726, allocations: 222.9 kB / 478.3 MB, free: 16.98 MB / 350.1 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002151/0.3747, allocations: 2.495 MB / 480.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.376, allocations: 1.013 MB / 481.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.376, allocations: 0.6875 kB / 481.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.3765, allocations: 0.5196 MB / 482.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.377, allocations: 84.95 kB / 482.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.3872, allocations: 11.77 MB / 494.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.3879, allocations: 1.342 MB / 495.5 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.3882, allocations: 84.53 kB / 495.6 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006118/0.3888, allocations: 0.5931 MB / 496.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.735e-06/0.3888, allocations: 0 / 496.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.4226, allocations: 17.47 MB / 0.5016 GB, free: 14.24 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.4228, allocations: 179.4 kB / 0.5018 GB, free: 14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/2.784, allocations: 0 / 0.5018 GB, free: 14 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) Environment - environmentSimulation: