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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002444/0.002444, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003238/0.003238, allocations: 188.8 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.825/1.825, allocations: 225.7 MB / 251 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2298/0.2298, allocations: 29.23 MB / 335.5 MB, free: 11.38 MB / 270.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 63.89 kB / 469.9 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4346, allocations: 59.61 MB / 0.5171 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004393/0.439, allocations: 3.267 MB / 0.5203 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.4408, allocations: 0.5318 MB / 0.5208 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004783/0.4412, allocations: 11.69 kB / 0.5209 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.4416, allocations: 150 kB / 0.521 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.442, allocations: 125.4 kB / 0.5211 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007836/0.4428, allocations: 288.9 kB / 0.5214 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008439/0.4436, allocations: 0.7197 MB / 0.5221 GB, free: 6.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006258/0.4442, allocations: 389 kB / 0.5225 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.4446, allocations: 316.6 kB / 0.5228 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004083/0.445, allocations: 404.5 kB / 0.5232 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.4451, allocations: 75.34 kB / 0.5232 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.4454, allocations: 105.7 kB / 0.5233 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004309/0.4458, allocations: 440.2 kB / 0.5237 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003813/0.4462, allocations: 0.578 MB / 0.5243 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.4476, allocations: 1.143 MB / 0.5254 GB, free: 4.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4476, allocations: 0.75 kB / 0.5254 GB, free: 4.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4476, allocations: 4 kB / 0.5254 GB, free: 4.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.4476, allocations: 0 / 0.5254 GB, free: 4.512 MB / 382.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.00237/0.45, allocations: 1.774 MB / 0.5272 GB, free: 3.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.45, allocations: 10.03 kB / 0.5272 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002314/0.4503, allocations: 167.1 kB / 0.5273 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.4505, allocations: 203.5 kB / 0.5275 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.451, allocations: 0.5836 MB / 0.5281 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.163e-05/0.4511, allocations: 75.08 kB / 0.5282 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.4512, allocations: 97.91 kB / 0.5283 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.4534, allocations: 1.1 MB / 0.5293 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.4534, allocations: 4.438 kB / 0.5293 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/0.4535, allocations: 40.19 kB / 0.5294 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.783e-05/0.4535, allocations: 56.05 kB / 0.5294 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001915/0.4555, allocations: 1.222 MB / 0.5306 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00532/0.4608, allocations: 2.873 MB / 0.5334 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4623, allocations: 0.9762 MB / 0.5344 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007547/0.4631, allocations: 492.6 kB / 0.5349 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.442e-05/0.4632, allocations: 33.64 kB / 0.5349 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.4632, allocations: 42.34 kB / 0.5349 GB, free: 180 kB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.755e-06/0.4632, allocations: 4 kB / 0.5349 GB, free: 176 kB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.002805/0.466, allocations: 1.593 MB / 0.5365 GB, free: 15.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.4661, allocations: 63.27 kB / 0.5365 GB, free: 15.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.4681, allocations: 1.257 MB / 0.5378 GB, free: 15.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/0.4682, allocations: 36.55 kB / 0.5378 GB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007762/0.4689, allocations: 0.7964 MB / 0.5386 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.4692, allocations: 245.1 kB / 0.5388 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.4694, allocations: 134.4 kB / 0.539 GB, free: 14.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4696, allocations: 338.8 kB / 0.5393 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008484/0.4705, allocations: 480.4 kB / 0.5397 GB, free: 13.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009948/0.4715, allocations: 0.6491 MB / 0.5404 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004824/0.4763, allocations: 2.133 MB / 0.5424 GB, free: 12.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4763, allocations: 2.156 kB / 0.5425 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002548/0.4788, allocations: 1.339 MB / 0.5438 GB, free: 11.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.4789, allocations: 7.188 kB / 0.5438 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.4789, allocations: 5.781 kB / 0.5438 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.13e-05/0.4789, allocations: 10.09 kB / 0.5438 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006758/0.4796, allocations: 180.6 kB / 0.544 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.74e-05/0.4796, allocations: 9.438 kB / 0.544 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006055/0.4802, allocations: 90.75 kB / 0.544 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.039e-05/0.4803, allocations: 36.38 kB / 0.5441 GB, free: 11.87 MB / 398.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.001099/0.4814, allocations: 384.6 kB / 0.5445 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.4817, allocations: 156.1 kB / 0.5446 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.4838, allocations: 1.255 MB / 0.5458 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.4838, allocations: 6.281 kB / 0.5458 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4838, allocations: 0 / 0.5458 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.4838, allocations: 5.328 kB / 0.5458 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003761/0.4876, allocations: 2.383 MB / 0.5482 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4876, allocations: 0 / 0.5482 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005234/0.4881, allocations: 123.9 kB / 0.5483 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.4881, allocations: 0 / 0.5483 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.4882, allocations: 20 kB / 0.5483 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.059e-05/0.4882, allocations: 4 kB / 0.5483 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.4882, allocations: 0 / 0.5483 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002698/0.4909, allocations: 1.952 MB / 0.5502 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/0.4912, allocations: 196 kB / 0.5504 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.995e-05/0.4913, allocations: 16 kB / 0.5504 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.4915, allocations: 31.97 kB / 0.5504 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.4917, allocations: 40.58 kB / 0.5505 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.4917, allocations: 27.98 kB / 0.5505 GB, free: 6.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.493, allocations: 0.8754 MB / 0.5514 GB, free: 6 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.493, allocations: 0 / 0.5514 GB, free: 6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008042/0.4938, allocations: 223.1 kB / 0.5516 GB, free: 5.781 MB / 398.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.003133/0.497, allocations: 2.514 MB / 0.554 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.4987, allocations: 1.063 MB / 0.5551 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4987, allocations: 1.5 kB / 0.5551 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.4995, allocations: 0.5269 MB / 0.5556 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005662/0.5, allocations: 65.16 kB / 0.5556 GB, free: 1.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/0.5177, allocations: 11.71 MB / 0.5671 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.5189, allocations: 1.295 MB / 0.5683 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004517/0.5193, allocations: 116.3 kB / 0.5685 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007589/0.5201, allocations: 0.5891 MB / 0.569 GB, free: 3.59 MB / 414.1 MB Notification: Performance of SimCode: time 2.074e-06/0.5201, allocations: 0 / 0.569 GB, free: 3.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0591/0.5792, allocations: 18.81 MB / 0.5874 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.29/16.87, allocations: 0 / 0.5874 GB, free: 0.8398 MB / 430.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5_res.csv --start-time 0 --stop-time 233 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0932 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.444818883901462] Failed to read output from testmodel.py, exit status != 0: 16.96317682811059 16.983543025 16.532031773 Calling exit ...