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.001971/0.001971, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002397/0.002397, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.249/2.249, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4449/0.4449, allocations: 28.81 MB / 319.2 MB, free: 5.672 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 55.91 kB / 386.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4057, allocations: 56.42 MB / 443.1 MB, free: 39.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005306/0.4111, allocations: 3.67 MB / 446.8 MB, free: 37.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.4135, allocations: 0.7743 MB / 447.6 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006248/0.4142, allocations: 18.56 kB / 447.6 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005287/0.4147, allocations: 168.3 kB / 447.8 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.4152, allocations: 144.6 kB / 447.9 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.4162, allocations: 376.7 kB / 448.3 MB, free: 36.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.4173, allocations: 0.8646 MB / 449.1 MB, free: 36.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009829/0.4183, allocations: 0.6393 MB / 449.8 MB, free: 36.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003649/0.4187, allocations: 344.3 kB / 450.1 MB, free: 36.31 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004933/0.4192, allocations: 433.1 kB / 450.5 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.4194, allocations: 86.72 kB / 450.6 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002706/0.4197, allocations: 112.3 kB / 450.7 MB, free: 36.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004182/0.4201, allocations: 440.5 kB / 451.2 MB, free: 35.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004324/0.4205, allocations: 0.6206 MB / 451.8 MB, free: 35.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.4219, allocations: 1.194 MB / 453 MB, free: 34.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.422, allocations: 0 / 453 MB, free: 34.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.422, allocations: 3.938 kB / 453 MB, free: 34.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.422, allocations: 0 / 453 MB, free: 34.74 MB / 366.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.002888/0.4249, allocations: 1.799 MB / 454.8 MB, free: 33.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.425, allocations: 10.72 kB / 454.8 MB, free: 33.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000198/0.4252, allocations: 175 kB / 455 MB, free: 33.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002446/0.4254, allocations: 204.3 kB / 455.2 MB, free: 33.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008231/0.4263, allocations: 0.751 MB / 455.9 MB, free: 32.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-05/0.4263, allocations: 76.98 kB / 456 MB, free: 32.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4265, allocations: 111.6 kB / 456.1 MB, free: 32.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.4281, allocations: 1.191 MB / 457.3 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.4281, allocations: 3.938 kB / 457.3 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-05/0.4282, allocations: 47.19 kB / 457.3 MB, free: 32.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.852e-05/0.4283, allocations: 28.69 kB / 457.4 MB, free: 32.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.4299, allocations: 1.114 MB / 458.5 MB, free: 31.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003979/0.4339, allocations: 3.726 MB / 462.2 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4354, allocations: 1.37 MB / 463.6 MB, free: 29.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005484/0.4359, allocations: 496.2 kB / 464.1 MB, free: 29.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.02e-05/0.436, allocations: 28.61 kB / 464.1 MB, free: 29.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/0.4368, allocations: 0.5419 MB / 464.6 MB, free: 29.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 4.148e-06/0.4368, allocations: 0 / 464.6 MB, free: 29.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.001918/0.4387, allocations: 1.57 MB / 466.2 MB, free: 28.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.4388, allocations: 67.88 kB / 466.3 MB, free: 28.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.4402, allocations: 1.299 MB / 467.6 MB, free: 28.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4403, allocations: 40.33 kB / 467.6 MB, free: 28.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004754/0.4407, allocations: 0.7728 MB / 468.4 MB, free: 27.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.4409, allocations: 244.8 kB / 468.6 MB, free: 27.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.4411, allocations: 122.3 kB / 468.7 MB, free: 27.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.88e-05/0.4412, allocations: 333.3 kB / 469.1 MB, free: 26.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.4417, allocations: 446 kB / 469.5 MB, free: 26.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.4424, allocations: 0.5537 MB / 470.1 MB, free: 26.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.4439, allocations: 1.051 MB / 471.1 MB, free: 26.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4439, allocations: 4.969 kB / 471.1 MB, free: 26.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00189/0.4458, allocations: 1.221 MB / 472.3 MB, free: 25.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.4458, allocations: 6.188 kB / 472.3 MB, free: 25.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4459, allocations: 2.719 kB / 472.3 MB, free: 25.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.4459, allocations: 6.656 kB / 472.3 MB, free: 25.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/0.4464, allocations: 138.8 kB / 472.5 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.4465, allocations: 10.84 kB / 472.5 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.4468, allocations: 57.03 kB / 472.5 MB, free: 25.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.862e-05/0.4468, allocations: 31 kB / 472.6 MB, free: 25.79 MB / 366.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.0007554/0.4476, allocations: 393.6 kB / 473 MB, free: 25.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.4478, allocations: 143.9 kB / 473.1 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.4495, allocations: 1.236 MB / 474.3 MB, free: 25.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.4496, allocations: 10.62 kB / 474.3 MB, free: 25.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.4496, allocations: 5.062 kB / 474.4 MB, free: 25.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.4496, allocations: 6.469 kB / 474.4 MB, free: 25.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.4535, allocations: 2.415 MB / 476.8 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4535, allocations: 0 / 476.8 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005249/0.454, allocations: 112.5 kB / 476.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.454, allocations: 6.594 kB / 476.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.4541, allocations: 21.75 kB / 476.9 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4541, allocations: 1.406 kB / 476.9 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4541, allocations: 5.281 kB / 476.9 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002577/0.4567, allocations: 1.923 MB / 478.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.4571, allocations: 254 kB / 479.1 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.603e-05/0.4572, allocations: 18.86 kB / 479.1 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.4574, allocations: 11.19 kB / 479.1 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.4575, allocations: 38.72 kB / 479.2 MB, free: 23.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.4576, allocations: 21.53 kB / 479.2 MB, free: 23.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.459, allocations: 0.9014 MB / 480.1 MB, free: 23 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.459, allocations: 0 / 480.1 MB, free: 23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008388/0.4598, allocations: 217.6 kB / 480.3 MB, free: 22.93 MB / 366.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.002988/0.4628, allocations: 2.504 MB / 482.8 MB, free: 21.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.4651, allocations: 1.06 MB / 483.9 MB, free: 21.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4651, allocations: 0 / 483.9 MB, free: 21.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008854/0.466, allocations: 0.524 MB / 484.4 MB, free: 21.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008565/0.4669, allocations: 104.9 kB / 484.5 MB, free: 21.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/0.4924, allocations: 12.58 MB / 497.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.4939, allocations: 1.32 MB / 498.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004293/0.4944, allocations: 73.78 kB / 498.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008113/0.4952, allocations: 0.6014 MB / 499.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4952, allocations: 4 kB / 499.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1226/0.6178, allocations: 18.66 MB / 0.5056 GB, free: 10.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.21/21.83, allocations: 5.469 kB / 0.5056 GB, free: 10.53 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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)