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.0007495/0.0007495, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005545/0.005545, allocations: 169.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2635/0.2635, allocations: 28.85 MB / 320.3 MB, free: 6.227 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003161/0.0003161, allocations: 8 kB / 388.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2597, allocations: 57.48 MB / 446.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002656/0.2624, allocations: 3.207 MB / 449.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2636, allocations: 0.7476 MB / 450 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.2639, allocations: 15.84 kB / 450 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.2642, allocations: 127.3 kB / 450.2 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.2645, allocations: 96.34 kB / 450.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.265, allocations: 321.6 kB / 450.6 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005606/0.2656, allocations: 0.8326 MB / 451.4 MB, free: 29.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006055/0.2662, allocations: 0.5908 MB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.2664, allocations: 221.2 kB / 452.2 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.2666, allocations: 330.4 kB / 452.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.787e-05/0.2667, allocations: 24.38 kB / 452.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.2668, allocations: 55.31 kB / 452.6 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.2671, allocations: 350.2 kB / 452.9 MB, free: 28.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.2673, allocations: 0.5383 MB / 453.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006047/0.2679, allocations: 1.104 MB / 454.6 MB, free: 27.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2679, allocations: 0 / 454.6 MB, free: 27.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2679, allocations: 0 / 454.6 MB, free: 27.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.268, allocations: 0 / 454.6 MB, free: 27.58 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.001506/0.2695, allocations: 1.528 MB / 456.1 MB, free: 26.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2695, allocations: 7.875 kB / 456.1 MB, free: 26.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.2697, allocations: 169.6 kB / 456.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.2699, allocations: 198.3 kB / 456.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.2705, allocations: 0.7543 MB / 457.2 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.2706, allocations: 87.84 kB / 457.3 MB, free: 25.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2707, allocations: 107.2 kB / 457.4 MB, free: 25.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.272, allocations: 1.195 MB / 458.6 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.272, allocations: 10.66 kB / 458.6 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/0.2721, allocations: 40.81 kB / 458.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.2721, allocations: 26.22 kB / 458.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.2735, allocations: 1.111 MB / 459.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004098/0.2776, allocations: 3.744 MB / 463.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.2793, allocations: 1.353 MB / 464.9 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005471/0.2798, allocations: 497.7 kB / 465.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.632e-05/0.2799, allocations: 28.03 kB / 465.4 MB, free: 22.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006776/0.2806, allocations: 0.5516 MB / 466 MB, free: 22.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.564e-06/0.2806, allocations: 0 / 466 MB, free: 22.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002049/0.2827, allocations: 1.562 MB / 467.5 MB, free: 21.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.2827, allocations: 68.95 kB / 467.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.2844, allocations: 1.302 MB / 468.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-05/0.2845, allocations: 37.83 kB / 468.9 MB, free: 21.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005233/0.285, allocations: 0.7776 MB / 469.7 MB, free: 20.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.2852, allocations: 242.7 kB / 470 MB, free: 20.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-05/0.2853, allocations: 65.14 kB / 470 MB, free: 20.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.2854, allocations: 332.2 kB / 470.3 MB, free: 19.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/0.2859, allocations: 445.6 kB / 470.8 MB, free: 19.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.2865, allocations: 0.5556 MB / 471.3 MB, free: 19.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.2877, allocations: 1.047 MB / 472.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2877, allocations: 0.9688 kB / 472.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00146/0.2892, allocations: 1.216 MB / 473.6 MB, free: 18.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.2892, allocations: 11.05 kB / 473.6 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2892, allocations: 2.969 kB / 473.6 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.2893, allocations: 6.984 kB / 473.6 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/0.2897, allocations: 147 kB / 473.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.2897, allocations: 6.625 kB / 473.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.29, allocations: 57.44 kB / 473.8 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/0.29, allocations: 25.23 kB / 473.8 MB, free: 18.82 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_QL,$PRE.min_dPop,min_QL,min_dPop,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005277/0.2906, allocations: 390.5 kB / 474.2 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.2907, allocations: 139.5 kB / 474.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.2923, allocations: 1.234 MB / 475.6 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.2923, allocations: 15.16 kB / 475.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2923, allocations: 0 / 475.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.2923, allocations: 4.875 kB / 475.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.2951, allocations: 2.429 MB / 478 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2951, allocations: 0 / 478 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.2955, allocations: 115.8 kB / 478.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2955, allocations: 6.672 kB / 478.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.2956, allocations: 20.53 kB / 478.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2956, allocations: 2.062 kB / 478.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2956, allocations: 1 kB / 478.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.2974, allocations: 1.927 MB / 480.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.2976, allocations: 256.7 kB / 480.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.223e-05/0.2976, allocations: 12 kB / 480.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.2979, allocations: 12.98 kB / 480.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.298, allocations: 40.55 kB / 480.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.298, allocations: 26.2 kB / 480.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009005/0.2989, allocations: 0.8944 MB / 481.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2989, allocations: 4 kB / 481.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005001/0.2994, allocations: 219.6 kB / 481.6 MB, free: 14.39 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001864/0.3013, allocations: 2.509 MB / 484.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.3023, allocations: 1.021 MB / 485.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3023, allocations: 0 / 485.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/0.3028, allocations: 0.5275 MB / 485.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006022/0.3034, allocations: 93.14 kB / 485.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.3153, allocations: 13.16 MB / 498.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007946/0.3161, allocations: 1.315 MB / 0.4885 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000233/0.3164, allocations: 76.55 kB / 0.4885 GB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000546/0.3169, allocations: 0.593 MB / 0.4891 GB, free: 11.35 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.317, allocations: 0 / 0.4891 GB, free: 11.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.3475, allocations: 17.98 MB / 0.5067 GB, free: 9.469 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.3478, allocations: 196.8 kB / 0.5069 GB, free: 9.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.622, allocations: 0 / 0.5069 GB, free: 9.207 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/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)