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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 106 kB / 18.84 MB, free: 3.043 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.001662/0.001662, allocations: 189.8 kB / 22.1 MB, free: 5.156 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.504/1.504, allocations: 225.6 MB / 250.8 MB, free: 13.07 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.2191/0.2191, allocations: 29.23 MB / 335.3 MB, free: 11.37 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 71.89 kB / 469.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.48/0.4821, allocations: 59.61 MB / 0.5168 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005345/0.4874, allocations: 3.653 MB / 0.5203 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.4899, allocations: 0.668 MB / 0.521 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008606/0.4908, allocations: 23.16 kB / 0.521 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005634/0.4913, allocations: 162.2 kB / 0.5212 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.4918, allocations: 135.1 kB / 0.5213 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.4928, allocations: 358.5 kB / 0.5216 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.494, allocations: 0.8447 MB / 0.5224 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008124/0.4948, allocations: 0.495 MB / 0.5229 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.4952, allocations: 350.6 kB / 0.5233 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.4956, allocations: 438.9 kB / 0.5237 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.4958, allocations: 84.88 kB / 0.5238 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.4961, allocations: 120 kB / 0.5239 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004935/0.4966, allocations: 450.5 kB / 0.5243 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004681/0.4971, allocations: 0.5987 MB / 0.5249 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.4988, allocations: 1.229 MB / 0.5261 GB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4989, allocations: 1.281 kB / 0.5261 GB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4989, allocations: 0.7031 kB / 0.5261 GB, free: 3.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.02e-05/0.4989, allocations: 4 kB / 0.5261 GB, free: 3.727 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002709/0.5016, allocations: 1.79 MB / 0.5278 GB, free: 2.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.5017, allocations: 9.562 kB / 0.5279 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002591/0.5019, allocations: 171.8 kB / 0.528 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003145/0.5022, allocations: 206.3 kB / 0.5282 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.5033, allocations: 0.7537 MB / 0.529 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.5034, allocations: 80.78 kB / 0.529 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.5036, allocations: 105.1 kB / 0.5291 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.5056, allocations: 1.146 MB / 0.5303 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.5057, allocations: 9.062 kB / 0.5303 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.5057, allocations: 40.72 kB / 0.5303 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.08e-05/0.5057, allocations: 25.88 kB / 0.5303 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.5075, allocations: 1.058 MB / 0.5314 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006521/0.514, allocations: 3.604 MB / 0.5349 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.5161, allocations: 1.248 MB / 0.5361 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006888/0.5168, allocations: 442.6 kB / 0.5365 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.917e-05/0.5169, allocations: 34.17 kB / 0.5365 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.517, allocations: 38.77 kB / 0.5366 GB, free: 14.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.967e-06/0.517, allocations: 0 / 0.5366 GB, free: 14.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002518/0.5195, allocations: 1.464 MB / 0.538 GB, free: 13.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.5196, allocations: 62.72 kB / 0.5381 GB, free: 13.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002293/0.5218, allocations: 1.234 MB / 0.5393 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.5219, allocations: 35.67 kB / 0.5393 GB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007535/0.5227, allocations: 0.7677 MB / 0.5401 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.523, allocations: 236.9 kB / 0.5403 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.5232, allocations: 112.9 kB / 0.5404 GB, free: 12.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.5234, allocations: 331.3 kB / 0.5407 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000619/0.524, allocations: 414.8 kB / 0.5411 GB, free: 11.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007141/0.5247, allocations: 0.5032 MB / 0.5416 GB, free: 11.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.5261, allocations: 0.9536 MB / 0.5425 GB, free: 11.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.5261, allocations: 5.375 kB / 0.5425 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002045/0.5282, allocations: 1.132 MB / 0.5436 GB, free: 10.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.5282, allocations: 10.06 kB / 0.5437 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5282, allocations: 2.469 kB / 0.5437 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.047e-05/0.5282, allocations: 5.25 kB / 0.5437 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.5288, allocations: 128.5 kB / 0.5438 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/0.5288, allocations: 13.97 kB / 0.5438 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.5292, allocations: 51.06 kB / 0.5438 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.5293, allocations: 21.75 kB / 0.5439 GB, free: 10.71 MB / 398.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.0009101/0.5302, allocations: 362 kB / 0.5442 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.5304, allocations: 148 kB / 0.5444 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/0.5323, allocations: 1.147 MB / 0.5455 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.5323, allocations: 7.156 kB / 0.5455 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.5323, allocations: 3.938 kB / 0.5455 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5323, allocations: 3.984 kB / 0.5455 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00354/0.5359, allocations: 2.284 MB / 0.5477 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5359, allocations: 0 / 0.5477 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.5364, allocations: 105.2 kB / 0.5478 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.629e-05/0.5364, allocations: 7.203 kB / 0.5478 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.523e-05/0.5364, allocations: 16.25 kB / 0.5478 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.014e-06/0.5365, allocations: 2.969 kB / 0.5478 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5365, allocations: 0 / 0.5478 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/0.539, allocations: 1.806 MB / 0.5496 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000342/0.5393, allocations: 196 kB / 0.5498 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/0.5394, allocations: 16 kB / 0.5498 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.5396, allocations: 16 kB / 0.5498 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.5397, allocations: 36.58 kB / 0.5499 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.5397, allocations: 23.98 kB / 0.5499 GB, free: 7.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001444/0.5412, allocations: 0.8519 MB / 0.5507 GB, free: 6.301 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5412, allocations: 0 / 0.5507 GB, free: 6.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007781/0.542, allocations: 215.2 kB / 0.5509 GB, free: 6.09 MB / 398.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.002658/0.5446, allocations: 2.37 MB / 0.5532 GB, free: 3.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.546, allocations: 0.9191 MB / 0.5541 GB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.546, allocations: 0.625 kB / 0.5541 GB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005918/0.5466, allocations: 475.5 kB / 0.5546 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007486/0.5474, allocations: 98.22 kB / 0.5547 GB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/0.5646, allocations: 11.08 MB / 0.5655 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.5658, allocations: 1.291 MB / 0.5668 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002971/0.5661, allocations: 76.3 kB / 0.5668 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007218/0.5668, allocations: 0.5696 MB / 0.5674 GB, free: 4.969 MB / 414.1 MB Notification: Performance of SimCode: time 2.164e-06/0.5668, allocations: 0 / 0.5674 GB, free: 4.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06072/0.6275, allocations: 18.51 MB / 0.5855 GB, free: 2.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 54.85/55.47, allocations: 10.98 kB / 0.5855 GB, free: 2.516 MB / 430.1 MB " [Timeout remaining time 604] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 59.46567179891281] Failed to read output from testmodel.py, exit status != 0: 55.98031971603632 56.00135951 55.498494138 Calling exit ...