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.0006522/0.0006521, allocations: 97.64 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.00478/0.00478, allocations: 170.1 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.334/1.334, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2755/0.2755, allocations: 28.84 MB / 320.3 MB, free: 6.223 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002833/0.0002833, allocations: 8 kB / 388.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2671, allocations: 57.48 MB / 446.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002358/0.2695, allocations: 2.807 MB / 448.9 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.2706, allocations: 0.5322 MB / 449.4 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.2709, allocations: 10.78 kB / 449.4 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.2711, allocations: 101.1 kB / 449.5 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.2713, allocations: 85.36 kB / 449.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.2718, allocations: 235.1 kB / 449.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.2722, allocations: 0.7081 MB / 450.5 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.2727, allocations: 442.6 kB / 451 MB, free: 29.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.2728, allocations: 214.5 kB / 451.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.2731, allocations: 315 kB / 451.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.659e-05/0.2731, allocations: 24.69 kB / 451.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.2732, allocations: 48.22 kB / 451.6 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.2735, allocations: 358.5 kB / 451.9 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.2737, allocations: 0.5278 MB / 452.4 MB, free: 28.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005666/0.2743, allocations: 1.005 MB / 453.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2743, allocations: 2.219 kB / 453.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2743, allocations: 0 / 453.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.2743, allocations: 0 / 453.4 MB, free: 28.36 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.001411/0.2757, allocations: 1.465 MB / 454.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2758, allocations: 8.188 kB / 454.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.276, allocations: 180.9 kB / 455.1 MB, free: 27.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.2761, allocations: 189.3 kB / 455.3 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.2764, allocations: 0.5743 MB / 455.8 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.2765, allocations: 75.27 kB / 455.9 MB, free: 26.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.2766, allocations: 98.84 kB / 456 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.2779, allocations: 1.103 MB / 457.1 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.2779, allocations: 3.938 kB / 457.1 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.026e-05/0.278, allocations: 39.88 kB / 457.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-05/0.278, allocations: 55.25 kB / 457.2 MB, free: 26.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.2794, allocations: 1.247 MB / 458.5 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.2829, allocations: 2.913 MB / 461.4 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2842, allocations: 1.008 MB / 462.4 MB, free: 24.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006492/0.2848, allocations: 0.5089 MB / 462.9 MB, free: 24.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.35e-05/0.2849, allocations: 29.64 kB / 462.9 MB, free: 24.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.2849, allocations: 42.81 kB / 463 MB, free: 24.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.795e-06/0.2849, allocations: 0 / 463 MB, free: 24.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.002105/0.2871, allocations: 1.622 MB / 464.6 MB, free: 23.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.2871, allocations: 63.56 kB / 464.6 MB, free: 23.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.2885, allocations: 1.258 MB / 465.9 MB, free: 23.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.2885, allocations: 36.83 kB / 465.9 MB, free: 23.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004689/0.289, allocations: 0.782 MB / 466.7 MB, free: 22.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.2892, allocations: 228.7 kB / 466.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.2893, allocations: 66.45 kB / 467 MB, free: 22.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.463e-05/0.2894, allocations: 335 kB / 467.3 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006645/0.29, allocations: 492.4 kB / 467.8 MB, free: 22.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000775/0.2908, allocations: 0.6718 MB / 468.5 MB, free: 21.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00404/0.2949, allocations: 2.175 MB / 470.7 MB, free: 21.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.2949, allocations: 5.875 kB / 470.7 MB, free: 21.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001972/0.2969, allocations: 1.356 MB / 472 MB, free: 20.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.2969, allocations: 8.625 kB / 472 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2969, allocations: 5.625 kB / 472 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.297, allocations: 9.031 kB / 472.1 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/0.2975, allocations: 190.2 kB / 472.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.812e-05/0.2975, allocations: 14.55 kB / 472.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.2979, allocations: 88.52 kB / 472.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-05/0.298, allocations: 34.97 kB / 472.4 MB, free: 20.55 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006353/0.2986, allocations: 404.7 kB / 472.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.2988, allocations: 131.2 kB / 472.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.3006, allocations: 1.281 MB / 474.2 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3006, allocations: 10.28 kB / 474.2 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3006, allocations: 2.031 kB / 474.2 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.3007, allocations: 3.562 kB / 474.2 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3036, allocations: 2.399 MB / 476.6 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3036, allocations: 0 / 476.6 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.3041, allocations: 142.3 kB / 476.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.3041, allocations: 0 / 476.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.3041, allocations: 17.78 kB / 476.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3041, allocations: 0.75 kB / 476.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3041, allocations: 4 kB / 476.8 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.3061, allocations: 1.973 MB / 478.7 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.3062, allocations: 201 kB / 478.9 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.68e-05/0.3063, allocations: 12.77 kB / 478.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.3065, allocations: 33.72 kB / 479 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3067, allocations: 45.67 kB / 479 MB, free: 16.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.3067, allocations: 21.59 kB / 479 MB, free: 16.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009401/0.3076, allocations: 0.8784 MB / 479.9 MB, free: 16.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3076, allocations: 0 / 479.9 MB, free: 16.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005955/0.3082, allocations: 211.5 kB / 480.1 MB, free: 15.95 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 (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.002212/0.3105, allocations: 2.545 MB / 482.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.3118, allocations: 1.119 MB / 483.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3118, allocations: 0 / 483.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.3124, allocations: 0.5519 MB / 484.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.3128, allocations: 69.09 kB / 484.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.3247, allocations: 13.07 MB / 497.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007844/0.3255, allocations: 1.303 MB / 498.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.3259, allocations: 124.6 kB / 498.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005734/0.3265, allocations: 0.5813 MB / 499.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3265, allocations: 0 / 499.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.3553, allocations: 17.14 MB / 0.5045 GB, free: 11.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.3555, allocations: 199.1 kB / 0.5047 GB, free: 11.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.469, allocations: 4.047 kB / 0.5047 GB, free: 11.38 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/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)