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.0008425/0.0008425, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008471/0.0008472, allocations: 168.7 kB / 15.95 MB, free: 204 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.236/1.236, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2535/0.2535, allocations: 28.85 MB / 319.9 MB, free: 6.215 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002713, allocations: 8 kB / 388 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2361, allocations: 57.49 MB / 445.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002083/0.2382, allocations: 2.574 MB / 448 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009016/0.2392, allocations: 0.5326 MB / 448.6 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.2394, allocations: 11.72 kB / 448.6 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.2396, allocations: 105.2 kB / 448.7 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.2398, allocations: 81.97 kB / 448.8 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.2402, allocations: 215 kB / 449 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.2407, allocations: 0.6673 MB / 449.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/0.2411, allocations: 381.4 kB / 450 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.2413, allocations: 240.8 kB / 450.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.2415, allocations: 312.1 kB / 450.5 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.954e-05/0.2416, allocations: 23.47 kB / 450.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.2417, allocations: 47.81 kB / 450.6 MB, free: 29.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.2419, allocations: 357.1 kB / 451 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.239e-05/0.242, allocations: 215.6 kB / 451.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004139/0.2424, allocations: 0.7166 MB / 451.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2424, allocations: 0 / 451.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2424, allocations: 0 / 451.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.2425, allocations: 0 / 451.9 MB, free: 29.08 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.001281/0.2438, allocations: 1.487 MB / 453.4 MB, free: 28.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2438, allocations: 12.47 kB / 453.4 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.244, allocations: 173.7 kB / 453.6 MB, free: 27.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.2441, allocations: 192.6 kB / 453.8 MB, free: 27.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.2445, allocations: 0.5134 MB / 454.3 MB, free: 27.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.101e-05/0.2445, allocations: 77.31 kB / 454.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.233e-05/0.2446, allocations: 97.16 kB / 454.4 MB, free: 27.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.2459, allocations: 1.094 MB / 455.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2459, allocations: 0 / 455.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.724e-05/0.246, allocations: 39.88 kB / 455.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.302e-05/0.246, allocations: 59.95 kB / 455.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.2473, allocations: 1.238 MB / 456.9 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.2505, allocations: 2.901 MB / 459.8 MB, free: 25.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.2517, allocations: 1.008 MB / 460.8 MB, free: 25.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005783/0.2523, allocations: 0.5097 MB / 461.3 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.273e-05/0.2524, allocations: 30.22 kB / 461.3 MB, free: 25.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.2524, allocations: 37.62 kB / 461.4 MB, free: 25.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.194e-06/0.2524, allocations: 9.25 kB / 461.4 MB, free: 25.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001929/0.2543, allocations: 1.613 MB / 463 MB, free: 24.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.2544, allocations: 62.81 kB / 463 MB, free: 24.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.2555, allocations: 1.25 MB / 464.3 MB, free: 24.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.2556, allocations: 39.89 kB / 464.3 MB, free: 24.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/0.256, allocations: 0.7777 MB / 465.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.2561, allocations: 238.2 kB / 465.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.2562, allocations: 15.19 kB / 465.3 MB, free: 23.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/0.2562, allocations: 334.2 kB / 465.7 MB, free: 22.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006135/0.2568, allocations: 489 kB / 466.2 MB, free: 22.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006787/0.2575, allocations: 0.6642 MB / 466.8 MB, free: 22.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006614/0.2582, allocations: 0.5417 MB / 467.4 MB, free: 22.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.2582, allocations: 6.375 kB / 467.4 MB, free: 22.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001695/0.2599, allocations: 1.351 MB / 468.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.2599, allocations: 7.297 kB / 468.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.26, allocations: 6.125 kB / 468.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.26, allocations: 9.844 kB / 468.7 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.2606, allocations: 185.5 kB / 468.9 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.2606, allocations: 15.14 kB / 468.9 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.2609, allocations: 93.33 kB / 469 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.043e-05/0.261, allocations: 33.86 kB / 469.1 MB, free: 21.89 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.0005386/0.2615, allocations: 393.2 kB / 469.4 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.2616, allocations: 135 kB / 469.6 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.2634, allocations: 1.277 MB / 470.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.2634, allocations: 11.34 kB / 470.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2634, allocations: 0.7031 kB / 470.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.2634, allocations: 4.047 kB / 470.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.2662, allocations: 2.4 MB / 473.3 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2662, allocations: 0 / 473.3 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/0.2667, allocations: 131.7 kB / 473.4 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.483e-06/0.2667, allocations: 3.406 kB / 473.4 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.2667, allocations: 15.28 kB / 473.4 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2667, allocations: 2.781 kB / 473.4 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2667, allocations: 1.312 kB / 473.4 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.2691, allocations: 1.968 MB / 475.4 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.2692, allocations: 205.6 kB / 475.6 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.979e-05/0.2693, allocations: 12.05 kB / 475.6 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.2695, allocations: 37.67 kB / 475.6 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.2696, allocations: 45.62 kB / 475.7 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.2697, allocations: 25.67 kB / 475.7 MB, free: 19.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00087/0.2705, allocations: 0.8591 MB / 476.6 MB, free: 18.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2706, allocations: 4 kB / 476.6 MB, free: 18.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.2711, allocations: 214.3 kB / 476.8 MB, free: 18.49 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.002008/0.2731, allocations: 2.545 MB / 479.3 MB, free: 16.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.2744, allocations: 1.116 MB / 480.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2744, allocations: 0 / 480.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.2749, allocations: 0.5519 MB / 481 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.2753, allocations: 67.75 kB / 481.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008707/0.2841, allocations: 9.973 MB / 491 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.2846, allocations: 1.299 MB / 492.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.285, allocations: 120.6 kB / 492.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.2854, allocations: 0.5852 MB / 493 MB, free: 2.809 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2855, allocations: 0 / 493 MB, free: 2.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02917/0.3146, allocations: 16.78 MB / 0.4979 GB, free: 2.125 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.3149, allocations: 193.4 kB / 0.498 GB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.164, allocations: 0 / 0.498 GB, free: 1.879 MB / 366.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: