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.0007781/0.0007781, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008617/0.0008617, allocations: 172.7 kB / 15.95 MB, free: 208 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.228/1.228, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2597/0.2597, allocations: 28.83 MB / 319.9 MB, free: 6.285 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002757, allocations: 8 kB / 388 MB, free: 3.438 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2546, allocations: 57.48 MB / 445.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002685/0.2573, allocations: 2.935 MB / 448.4 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.2585, allocations: 0.7524 MB / 449.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.2589, allocations: 15.44 kB / 449.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.2591, allocations: 117.3 kB / 449.3 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.2594, allocations: 92.59 kB / 449.4 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.2599, allocations: 282.3 kB / 449.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005523/0.2605, allocations: 0.7849 MB / 450.4 MB, free: 29.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.261, allocations: 476.7 kB / 450.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.2612, allocations: 255.4 kB / 451.1 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.2614, allocations: 316.8 kB / 451.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-05/0.2615, allocations: 22.16 kB / 451.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.2616, allocations: 45.42 kB / 451.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.2618, allocations: 346.3 kB / 451.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.262, allocations: 236.6 kB / 452.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005299/0.2625, allocations: 0.7975 MB / 452.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2625, allocations: 3.938 kB / 452.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2625, allocations: 0 / 452.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.2625, allocations: 0 / 452.9 MB, free: 28.45 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.001477/0.264, allocations: 1.549 MB / 454.4 MB, free: 27.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2641, allocations: 9.781 kB / 454.4 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001796/0.2642, allocations: 177.7 kB / 454.6 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.2644, allocations: 207.5 kB / 454.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005937/0.265, allocations: 0.6861 MB / 455.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/0.2651, allocations: 78.77 kB / 455.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.2652, allocations: 106.9 kB / 455.7 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.2665, allocations: 1.189 MB / 456.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.2665, allocations: 2.938 kB / 456.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/0.2666, allocations: 39.84 kB / 456.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.2666, allocations: 30.08 kB / 456.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.2678, allocations: 1.103 MB / 458.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.2717, allocations: 3.731 MB / 461.8 MB, free: 23.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.2732, allocations: 1.355 MB / 463.1 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005082/0.2737, allocations: 498.9 kB / 463.6 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.282e-05/0.2738, allocations: 26.94 kB / 463.7 MB, free: 23.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006669/0.2745, allocations: 0.538 MB / 464.2 MB, free: 23.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.585e-06/0.2745, allocations: 1.469 kB / 464.2 MB, free: 23.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.001943/0.2764, allocations: 1.565 MB / 465.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2765, allocations: 60.52 kB / 465.8 MB, free: 22.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.278, allocations: 1.294 MB / 467.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.2781, allocations: 40.33 kB / 467.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005209/0.2786, allocations: 0.7746 MB / 467.9 MB, free: 21.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.2787, allocations: 242.8 kB / 468.2 MB, free: 21.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.2788, allocations: 14.78 kB / 468.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.2788, allocations: 337.1 kB / 468.5 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.2794, allocations: 438.4 kB / 468.9 MB, free: 20.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.2799, allocations: 0.5452 MB / 469.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005988/0.2805, allocations: 488.9 kB / 470 MB, free: 20.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2806, allocations: 1.062 kB / 470 MB, free: 20.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001402/0.282, allocations: 1.215 MB / 471.2 MB, free: 20.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.282, allocations: 8.656 kB / 471.2 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.282, allocations: 3.906 kB / 471.2 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.282, allocations: 6.531 kB / 471.2 MB, free: 20.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.2825, allocations: 146.5 kB / 471.3 MB, free: 20.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.2825, allocations: 10.81 kB / 471.3 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.2828, allocations: 57.73 kB / 471.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.2829, allocations: 29.77 kB / 471.4 MB, free: 20.02 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.0005397/0.2834, allocations: 386.5 kB / 471.8 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.2835, allocations: 147 kB / 471.9 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.2852, allocations: 1.235 MB / 473.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2852, allocations: 7.344 kB / 473.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.2852, allocations: 0.75 kB / 473.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.2852, allocations: 4.641 kB / 473.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.288, allocations: 2.426 MB / 475.6 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2881, allocations: 0 / 475.6 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004387/0.2885, allocations: 120.1 kB / 475.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.2885, allocations: 2.781 kB / 475.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.2886, allocations: 14.91 kB / 475.8 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.2886, allocations: 2.922 kB / 475.8 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.2886, allocations: 1.094 kB / 475.8 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.2906, allocations: 1.925 MB / 477.7 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002293/0.2908, allocations: 247.9 kB / 477.9 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.704e-05/0.2909, allocations: 16.8 kB / 477.9 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.2911, allocations: 12.66 kB / 478 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.079e-05/0.2912, allocations: 40.03 kB / 478 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.2913, allocations: 22.06 kB / 478 MB, free: 17.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001011/0.2923, allocations: 0.8914 MB / 478.9 MB, free: 16.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2923, allocations: 0 / 478.9 MB, free: 16.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.2929, allocations: 219.9 kB / 479.1 MB, free: 16.29 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.001853/0.2947, allocations: 2.499 MB / 481.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.2959, allocations: 1.006 MB / 482.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2959, allocations: 0.7969 kB / 482.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005044/0.2964, allocations: 0.5306 MB / 483.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.297, allocations: 93.72 kB / 483.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.3085, allocations: 10.15 MB / 493.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.3093, allocations: 1.319 MB / 494.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002392/0.3095, allocations: 76.55 kB / 494.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004695/0.31, allocations: 0.5969 MB / 495.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.31, allocations: 0 / 495.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3415, allocations: 17.5 MB / 0.5009 GB, free: 15.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.3417, allocations: 185.8 kB / 0.501 GB, free: 14.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.285, allocations: 4 kB / 0.5011 GB, free: 14.85 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: