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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 102.8 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 212 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.433/1.433, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.198/0.198, allocations: 29.22 MB / 338.1 MB, free: 6.945 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 473.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3098, allocations: 60.76 MB / 0.5215 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003674/0.3135, allocations: 3.249 MB / 0.5247 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3147, allocations: 0.5372 MB / 0.5252 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.315, allocations: 11.88 kB / 0.5252 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.3153, allocations: 144.5 kB / 0.5253 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003034/0.3156, allocations: 131.2 kB / 0.5255 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.3161, allocations: 281.5 kB / 0.5257 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006598/0.3168, allocations: 0.7241 MB / 0.5264 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005639/0.3174, allocations: 387.7 kB / 0.5268 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003316/0.3177, allocations: 316.7 kB / 0.5271 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.318, allocations: 401.2 kB / 0.5275 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.3181, allocations: 78.56 kB / 0.5276 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.3183, allocations: 104.6 kB / 0.5277 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003803/0.3187, allocations: 433.8 kB / 0.5281 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003136/0.319, allocations: 0.5748 MB / 0.5286 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.3201, allocations: 1.147 MB / 0.5298 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3201, allocations: 0 / 0.5298 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3201, allocations: 0 / 0.5298 GB, free: 2.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.3202, allocations: 0 / 0.5298 GB, free: 2.555 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.001911/0.3221, allocations: 1.775 MB / 0.5315 GB, free: 1.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3221, allocations: 9.375 kB / 0.5315 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.3223, allocations: 171.4 kB / 0.5317 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.3225, allocations: 199.2 kB / 0.5319 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003712/0.3229, allocations: 0.5886 MB / 0.5324 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-05/0.3229, allocations: 79.62 kB / 0.5325 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.323, allocations: 100.8 kB / 0.5326 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.3246, allocations: 1.092 MB / 0.5337 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.3246, allocations: 6.203 kB / 0.5337 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.3247, allocations: 39.47 kB / 0.5337 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.32e-05/0.3248, allocations: 54.8 kB / 0.5338 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.3265, allocations: 1.223 MB / 0.535 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.331, allocations: 2.871 MB / 0.5378 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3324, allocations: 0.9729 MB / 0.5387 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007681/0.3332, allocations: 486.5 kB / 0.5392 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.826e-05/0.3333, allocations: 36.11 kB / 0.5392 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.3333, allocations: 45.59 kB / 0.5393 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.425e-06/0.3333, allocations: 0 / 0.5393 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002467/0.3358, allocations: 1.598 MB / 0.5408 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.3359, allocations: 57.72 kB / 0.5409 GB, free: 12.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.3375, allocations: 1.26 MB / 0.5421 GB, free: 12.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.3375, allocations: 35.14 kB / 0.5421 GB, free: 12.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000722/0.3382, allocations: 0.7952 MB / 0.5429 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.3385, allocations: 242 kB / 0.5431 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.3387, allocations: 130.1 kB / 0.5433 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3388, allocations: 338 kB / 0.5436 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007156/0.3396, allocations: 476.7 kB / 0.544 GB, free: 10.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008629/0.3404, allocations: 0.6494 MB / 0.5447 GB, free: 10.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004443/0.3449, allocations: 2.135 MB / 0.5468 GB, free: 8.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3449, allocations: 0 / 0.5468 GB, free: 8.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002307/0.3472, allocations: 1.351 MB / 0.5481 GB, free: 6.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3472, allocations: 14.91 kB / 0.5481 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.3472, allocations: 8 kB / 0.5481 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.878e-05/0.3472, allocations: 12 kB / 0.5481 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005875/0.3478, allocations: 176.4 kB / 0.5483 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.676e-05/0.3479, allocations: 11.98 kB / 0.5483 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.3483, allocations: 83.45 kB / 0.5484 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.3483, allocations: 39.98 kB / 0.5484 GB, free: 6.383 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.0008397/0.3492, allocations: 391.3 kB / 0.5488 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.3494, allocations: 143.1 kB / 0.5489 GB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.3514, allocations: 1.247 MB / 0.5501 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.3515, allocations: 8 kB / 0.5501 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3515, allocations: 0 / 0.5501 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3515, allocations: 7.984 kB / 0.5502 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/0.3549, allocations: 2.378 MB / 0.5525 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3549, allocations: 3.938 kB / 0.5525 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005341/0.3555, allocations: 123.9 kB / 0.5526 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.445e-06/0.3555, allocations: 8 kB / 0.5526 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.3555, allocations: 12 kB / 0.5526 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3555, allocations: 4 kB / 0.5526 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3555, allocations: 0 / 0.5526 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002817/0.3583, allocations: 1.946 MB / 0.5545 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.3586, allocations: 212 kB / 0.5547 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.3587, allocations: 12 kB / 0.5547 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.3589, allocations: 23.97 kB / 0.5548 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.359, allocations: 48.5 kB / 0.5548 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.3591, allocations: 27.98 kB / 0.5548 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001304/0.3604, allocations: 0.8715 MB / 0.5557 GB, free: 14.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3604, allocations: 0 / 0.5557 GB, free: 14.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006882/0.3611, allocations: 215.2 kB / 0.5559 GB, free: 14.6 MB / 414.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.003169/0.3642, allocations: 2.51 MB / 0.5583 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.366, allocations: 1.063 MB / 0.5594 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.366, allocations: 0 / 0.5594 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.3668, allocations: 0.5341 MB / 0.5599 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/0.3673, allocations: 65.08 kB / 0.56 GB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/0.3844, allocations: 11.69 MB / 0.5714 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.3856, allocations: 1.307 MB / 0.5727 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004034/0.386, allocations: 124.3 kB / 0.5728 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000749/0.3868, allocations: 0.5774 MB / 0.5733 GB, free: 12.42 MB / 430.1 MB Notification: Performance of SimCode: time 1.733e-06/0.3868, allocations: 0 / 0.5733 GB, free: 12.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05657/0.4433, allocations: 18.37 MB / 0.5913 GB, free: 10.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.05, allocations: 7.938 kB / 0.5913 GB, free: 10.1 MB / 446.1 MB " [Timeout remaining time 649] (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: 13.904360075015575] Failed to read output from testmodel.py, exit status != 0: 11.129521688912064 11.146053846 10.822870761 Calling exit ...