Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.00123/0.00123, allocations: 108 kB / 15.61 MB, free: 152 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.001442/0.001442, allocations: 192.8 kB / 16.53 MB, free: 6.699 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.503/1.503, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4279/0.4279, allocations: 28.81 MB / 319.2 MB, free: 5.711 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 386.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4139, allocations: 56.41 MB / 443.1 MB, free: 39.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004632/0.4186, allocations: 3.643 MB / 446.8 MB, free: 37.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.4204, allocations: 0.6717 MB / 447.5 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005406/0.4209, allocations: 18.5 kB / 447.5 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004506/0.4214, allocations: 181 kB / 447.6 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004207/0.4219, allocations: 137.2 kB / 447.8 MB, free: 36.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.4227, allocations: 352.6 kB / 448.1 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008467/0.4236, allocations: 0.8364 MB / 449 MB, free: 36.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000786/0.4244, allocations: 0.6364 MB / 449.6 MB, free: 36.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003211/0.4247, allocations: 334.1 kB / 449.9 MB, free: 36.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.425, allocations: 417.3 kB / 450.3 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.4252, allocations: 90.28 kB / 450.4 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.4254, allocations: 114.1 kB / 450.5 MB, free: 36.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.4257, allocations: 439.4 kB / 451 MB, free: 35.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003659/0.4261, allocations: 0.6107 MB / 451.6 MB, free: 35.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.4272, allocations: 1.184 MB / 452.8 MB, free: 34.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4272, allocations: 3.938 kB / 452.8 MB, free: 34.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4272, allocations: 0 / 452.8 MB, free: 34.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.4273, allocations: 0 / 452.8 MB, free: 34.83 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002164/0.4295, allocations: 1.78 MB / 454.5 MB, free: 33.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.4295, allocations: 8.562 kB / 454.5 MB, free: 33.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001947/0.4297, allocations: 161.8 kB / 454.7 MB, free: 33.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.43, allocations: 204.4 kB / 454.9 MB, free: 33.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.4308, allocations: 0.7513 MB / 455.7 MB, free: 32.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.081e-05/0.4309, allocations: 74.61 kB / 455.7 MB, free: 32.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.431, allocations: 115.7 kB / 455.8 MB, free: 32.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.4325, allocations: 1.17 MB / 457 MB, free: 32.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.4326, allocations: 10.55 kB / 457 MB, free: 32.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.377e-05/0.4327, allocations: 44.72 kB / 457.1 MB, free: 32.19 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.4327, allocations: 26.16 kB / 457.1 MB, free: 32.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.4341, allocations: 1.104 MB / 458.2 MB, free: 31.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00477/0.4389, allocations: 3.698 MB / 461.9 MB, free: 29.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.4405, allocations: 1.331 MB / 463.2 MB, free: 29.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005022/0.441, allocations: 486.9 kB / 463.7 MB, free: 29.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.313e-05/0.4411, allocations: 22.34 kB / 463.7 MB, free: 29.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.4412, allocations: 42.03 kB / 463.8 MB, free: 29.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 4.098e-06/0.4412, allocations: 0 / 463.8 MB, free: 29.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.001967/0.4431, allocations: 1.526 MB / 465.3 MB, free: 28.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.4432, allocations: 64.78 kB / 465.4 MB, free: 28.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.445, allocations: 1.3 MB / 466.7 MB, free: 28.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.4451, allocations: 36.33 kB / 466.7 MB, free: 28.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/0.4456, allocations: 0.7721 MB / 467.5 MB, free: 27.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.4458, allocations: 226.8 kB / 467.7 MB, free: 27.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.446, allocations: 119.3 kB / 467.8 MB, free: 27.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.755e-05/0.4461, allocations: 332.4 kB / 468.1 MB, free: 27.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/0.4467, allocations: 435.2 kB / 468.5 MB, free: 27.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.4473, allocations: 0.5236 MB / 469.1 MB, free: 26.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.4486, allocations: 0.9958 MB / 470.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.4486, allocations: 0 / 470.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001922/0.4505, allocations: 1.18 MB / 471.2 MB, free: 26.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.4506, allocations: 6.656 kB / 471.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.4506, allocations: 2.281 kB / 471.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.4506, allocations: 5.656 kB / 471.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.4511, allocations: 134.2 kB / 471.4 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.4512, allocations: 10.56 kB / 471.4 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003867/0.4516, allocations: 51.66 kB / 471.5 MB, free: 26.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.4516, allocations: 21.97 kB / 471.5 MB, free: 26.17 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 (82): * Single equations (assignments): 82 * 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.000697/0.4523, allocations: 380.7 kB / 471.8 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.4526, allocations: 142.3 kB / 472 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.4545, allocations: 1.199 MB / 473.2 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.4546, allocations: 6.969 kB / 473.2 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.4546, allocations: 5.469 kB / 473.2 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4546, allocations: 3.375 kB / 473.2 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.4587, allocations: 2.356 MB / 475.6 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4588, allocations: 0 / 475.6 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.4593, allocations: 112.5 kB / 475.7 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.4593, allocations: 6.781 kB / 475.7 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.4594, allocations: 21.78 kB / 475.7 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.859e-06/0.4594, allocations: 2.938 kB / 475.7 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4594, allocations: 3.938 kB / 475.7 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002754/0.4621, allocations: 1.878 MB / 477.6 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/0.4626, allocations: 197.8 kB / 477.8 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.4627, allocations: 22.14 kB / 477.8 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.4629, allocations: 11.34 kB / 477.8 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.463, allocations: 36.5 kB / 477.8 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.4631, allocations: 20.7 kB / 477.9 MB, free: 23.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001492/0.4646, allocations: 0.8931 MB / 478.8 MB, free: 23.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4646, allocations: 0.8125 kB / 478.8 MB, free: 23.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009542/0.4656, allocations: 216.5 kB / 479 MB, free: 23.39 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 (67): * Single equations (assignments): 67 * 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.003272/0.4689, allocations: 2.439 MB / 481.4 MB, free: 22.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.4711, allocations: 1.016 MB / 482.4 MB, free: 22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4711, allocations: 0 / 482.4 MB, free: 22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008796/0.472, allocations: 0.5068 MB / 482.9 MB, free: 21.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4732, allocations: 94.86 kB / 483 MB, free: 21.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/0.4941, allocations: 12.38 MB / 495.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.4953, allocations: 1.306 MB / 496.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.4956, allocations: 76.77 kB / 496.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006541/0.4963, allocations: 0.5885 MB / 497.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4963, allocations: 0 / 497.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04865/0.545, allocations: 18.36 MB / 0.5036 GB, free: 12.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.22/17.76, allocations: 15.86 kB / 0.5037 GB, free: 12.55 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_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_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)