Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001876/0.001876, 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.002286/0.002286, allocations: 194.9 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.199/2.199, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4992/0.4992, allocations: 28.81 MB / 319.2 MB, free: 5.684 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.89 kB / 386.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.432, allocations: 56.41 MB / 443.1 MB, free: 39.69 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005539/0.4376, allocations: 3.63 MB / 446.8 MB, free: 37.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.4395, allocations: 0.6733 MB / 447.4 MB, free: 37.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004305/0.44, allocations: 14.41 kB / 447.5 MB, free: 37.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005008/0.4405, allocations: 162.2 kB / 447.6 MB, free: 37.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.4409, allocations: 129.7 kB / 447.7 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008554/0.4417, allocations: 353 kB / 448.1 MB, free: 37.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009632/0.4427, allocations: 0.8319 MB / 448.9 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009136/0.4436, allocations: 0.6505 MB / 449.6 MB, free: 36.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.444, allocations: 331.4 kB / 449.9 MB, free: 36.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003559/0.4443, allocations: 425.8 kB / 450.3 MB, free: 36.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.4445, allocations: 85.91 kB / 450.4 MB, free: 36.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.4447, allocations: 115.2 kB / 450.5 MB, free: 36.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000401/0.4451, allocations: 432.5 kB / 450.9 MB, free: 36.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005003/0.4457, allocations: 0.6028 MB / 451.5 MB, free: 35.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.4469, allocations: 1.146 MB / 452.7 MB, free: 34.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.4469, allocations: 2.906 kB / 452.7 MB, free: 34.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.4469, allocations: 0 / 452.7 MB, free: 34.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.447, allocations: 0 / 452.7 MB, free: 34.99 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002268/0.4492, allocations: 1.737 MB / 454.4 MB, free: 33.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.4493, allocations: 8.688 kB / 454.4 MB, free: 33.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000225/0.4495, allocations: 171.3 kB / 454.6 MB, free: 33.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.4498, allocations: 194 kB / 454.8 MB, free: 33.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008332/0.4506, allocations: 0.7279 MB / 455.5 MB, free: 32.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.283e-05/0.4507, allocations: 81.91 kB / 455.6 MB, free: 32.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.4509, allocations: 99.69 kB / 455.7 MB, free: 32.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.4524, allocations: 1.153 MB / 456.8 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.4524, allocations: 3.938 kB / 456.8 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.4525, allocations: 43.59 kB / 456.9 MB, free: 32.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.4525, allocations: 24.44 kB / 456.9 MB, free: 32.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.4539, allocations: 1.055 MB / 458 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004411/0.4584, allocations: 3.642 MB / 461.6 MB, free: 30.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.46, allocations: 1.276 MB / 462.9 MB, free: 29.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/0.4605, allocations: 468.2 kB / 463.3 MB, free: 29.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.944e-05/0.4606, allocations: 26.11 kB / 463.4 MB, free: 29.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.4606, allocations: 37.84 kB / 463.4 MB, free: 29.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 5.059e-06/0.4607, allocations: 0 / 463.4 MB, free: 29.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001951/0.4626, allocations: 1.445 MB / 464.8 MB, free: 29.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.4627, allocations: 63.08 kB / 464.9 MB, free: 29.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/0.4642, allocations: 1.233 MB / 466.1 MB, free: 28.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.4642, allocations: 40.48 kB / 466.2 MB, free: 28.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006345/0.4649, allocations: 0.7592 MB / 466.9 MB, free: 28.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.4651, allocations: 226.8 kB / 467.2 MB, free: 27.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.4653, allocations: 105.5 kB / 467.3 MB, free: 27.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.4654, allocations: 333.4 kB / 467.6 MB, free: 27.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.4659, allocations: 413.7 kB / 468 MB, free: 27.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005521/0.4664, allocations: 0.505 MB / 468.5 MB, free: 27.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.4677, allocations: 0.9507 MB / 469.4 MB, free: 26.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.4677, allocations: 0 / 469.4 MB, free: 26.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001835/0.4695, allocations: 1.136 MB / 470.6 MB, free: 26.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.4696, allocations: 11.94 kB / 470.6 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4696, allocations: 2.188 kB / 470.6 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.497e-05/0.4696, allocations: 5.812 kB / 470.6 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005326/0.4702, allocations: 129.6 kB / 470.7 MB, free: 26.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.4702, allocations: 8.625 kB / 470.7 MB, free: 26.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.4705, allocations: 51.28 kB / 470.8 MB, free: 26.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.4705, allocations: 26.27 kB / 470.8 MB, free: 26.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (81): * Single equations (assignments): 81 * 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.0005563/0.4711, allocations: 365.8 kB / 471.2 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.4713, allocations: 135 kB / 471.3 MB, free: 26.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.4734, allocations: 1.142 MB / 472.4 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.4734, allocations: 6.594 kB / 472.4 MB, free: 25.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.4734, allocations: 5.812 kB / 472.5 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.4734, allocations: 7.266 kB / 472.5 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/0.4772, allocations: 2.281 MB / 474.7 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4772, allocations: 0 / 474.7 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.4778, allocations: 106.8 kB / 474.8 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.4778, allocations: 2.75 kB / 474.8 MB, free: 24.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.531e-05/0.4778, allocations: 21.06 kB / 474.9 MB, free: 24.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.126e-06/0.4778, allocations: 2.312 kB / 474.9 MB, free: 24.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.4779, allocations: 3.938 kB / 474.9 MB, free: 24.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.481, allocations: 1.787 MB / 476.7 MB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.4812, allocations: 196.5 kB / 476.9 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4813, allocations: 26.69 kB / 476.9 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.4816, allocations: 10.22 kB / 476.9 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.4817, allocations: 37.12 kB / 476.9 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/0.4818, allocations: 16.69 kB / 476.9 MB, free: 24.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001554/0.4833, allocations: 0.8547 MB / 477.8 MB, free: 23.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4833, allocations: 0 / 477.8 MB, free: 23.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001053/0.4844, allocations: 204.9 kB / 478 MB, free: 23.78 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: 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.00368/0.4881, allocations: 2.358 MB / 480.4 MB, free: 22.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.49, allocations: 0.964 MB / 481.3 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.49, allocations: 1.938 kB / 481.3 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000673/0.4907, allocations: 0.4928 MB / 481.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008001/0.4915, allocations: 96.05 kB / 481.9 MB, free: 22.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/0.5094, allocations: 11.84 MB / 493.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.5105, allocations: 1.284 MB / 495 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000278/0.5108, allocations: 72.08 kB / 495.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006237/0.5114, allocations: 0.5636 MB / 495.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.437e-06/0.5114, allocations: 7.938 kB / 495.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05554/0.567, allocations: 17.74 MB / 0.5014 GB, free: 14.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/18.01, allocations: 7.844 kB / 0.5014 GB, free: 14.9 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1_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_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)