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.001705/0.001705, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002025/0.002025, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.345/1.345, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1706/0.1706, allocations: 29.23 MB / 341.7 MB, free: 5.566 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 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.001949/0.001949, allocations: 75.89 kB / 478.4 MB, free: 332 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.311, allocations: 60.79 MB / 0.5265 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003735/0.3147, allocations: 2.747 MB / 0.5292 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.3158, allocations: 0.5255 MB / 0.5297 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.3161, allocations: 12 kB / 0.5297 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002897/0.3164, allocations: 148.1 kB / 0.5299 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000286/0.3167, allocations: 132.5 kB / 0.53 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.3173, allocations: 284.1 kB / 0.5303 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006151/0.3179, allocations: 0.7231 MB / 0.531 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000481/0.3183, allocations: 353.3 kB / 0.5313 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.3186, allocations: 316.9 kB / 0.5316 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.3189, allocations: 347.5 kB / 0.5319 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.319, allocations: 76.41 kB / 0.532 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.3192, allocations: 109.6 kB / 0.5321 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.3195, allocations: 444 kB / 0.5325 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002634/0.3198, allocations: 445.3 kB / 0.533 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.3208, allocations: 1.157 MB / 0.5341 GB, free: 3.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3208, allocations: 0.5625 kB / 0.5341 GB, free: 3.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3208, allocations: 0 / 0.5341 GB, free: 3.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.196e-05/0.3208, allocations: 4 kB / 0.5341 GB, free: 3.277 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.001854/0.3227, allocations: 1.704 MB / 0.5358 GB, free: 2.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3227, allocations: 8.969 kB / 0.5358 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.3229, allocations: 171.1 kB / 0.5359 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.3231, allocations: 199.9 kB / 0.5361 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.3234, allocations: 0.5266 MB / 0.5366 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.3235, allocations: 76.05 kB / 0.5367 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3236, allocations: 97.34 kB / 0.5368 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.325, allocations: 1.089 MB / 0.5379 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.325, allocations: 7.938 kB / 0.5379 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.199e-05/0.3251, allocations: 40.97 kB / 0.5379 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.356e-05/0.3251, allocations: 57.83 kB / 0.538 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3266, allocations: 1.219 MB / 0.5392 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003929/0.3306, allocations: 2.64 MB / 0.5417 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.3319, allocations: 0.965 MB / 0.5427 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000666/0.3326, allocations: 489.3 kB / 0.5432 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.676e-05/0.3326, allocations: 32.5 kB / 0.5432 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3327, allocations: 47.62 kB / 0.5432 GB, free: 14.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.275e-06/0.3327, allocations: 0 / 0.5432 GB, free: 14.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002274/0.335, allocations: 1.592 MB / 0.5448 GB, free: 13.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.335, allocations: 62.53 kB / 0.5448 GB, free: 13.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.3365, allocations: 1.268 MB / 0.5461 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.3365, allocations: 35.8 kB / 0.5461 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006314/0.3371, allocations: 0.7962 MB / 0.5469 GB, free: 12.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.3373, allocations: 241.9 kB / 0.5471 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.3375, allocations: 130.6 kB / 0.5473 GB, free: 11.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3377, allocations: 334 kB / 0.5476 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.3383, allocations: 481.7 kB / 0.548 GB, free: 10.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008176/0.3391, allocations: 0.656 MB / 0.5487 GB, free: 10.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004018/0.3432, allocations: 2.129 MB / 0.5508 GB, free: 7.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3432, allocations: 4 kB / 0.5508 GB, free: 7.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001846/0.345, allocations: 1.344 MB / 0.5521 GB, free: 6.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.345, allocations: 8 kB / 0.5521 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.345, allocations: 12.06 kB / 0.5521 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.3451, allocations: 8 kB / 0.5521 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.3456, allocations: 175.7 kB / 0.5523 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.3456, allocations: 19.92 kB / 0.5523 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.346, allocations: 75.5 kB / 0.5524 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.241e-05/0.346, allocations: 39.98 kB / 0.5524 GB, free: 6.219 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.0007822/0.3468, allocations: 403.2 kB / 0.5528 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.347, allocations: 139.1 kB / 0.5529 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.3487, allocations: 1.257 MB / 0.5541 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.3487, allocations: 11.94 kB / 0.5541 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3487, allocations: 0 / 0.5541 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.3488, allocations: 7.984 kB / 0.5542 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00293/0.3517, allocations: 2.29 MB / 0.5564 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3517, allocations: 0 / 0.5564 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.3522, allocations: 127.9 kB / 0.5565 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.3522, allocations: 4 kB / 0.5565 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.3522, allocations: 12 kB / 0.5565 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.3522, allocations: 4 kB / 0.5565 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3522, allocations: 3.938 kB / 0.5565 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.3546, allocations: 1.945 MB / 0.5584 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.3548, allocations: 131 kB / 0.5586 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.505e-05/0.3548, allocations: 12 kB / 0.5586 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.3551, allocations: 27.97 kB / 0.5586 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.3552, allocations: 44.58 kB / 0.5586 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.3552, allocations: 23.98 kB / 0.5587 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.3563, allocations: 0.8793 MB / 0.5595 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3563, allocations: 0 / 0.5595 GB, free: 14.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.3569, allocations: 215.2 kB / 0.5597 GB, free: 14.61 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.002722/0.3596, allocations: 2.51 MB / 0.5622 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.3611, allocations: 1.065 MB / 0.5632 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3611, allocations: 4 kB / 0.5632 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.3618, allocations: 0.5229 MB / 0.5637 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.3623, allocations: 65.16 kB / 0.5638 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.3771, allocations: 11.71 MB / 0.5752 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007585/0.3779, allocations: 0.7049 MB / 0.5759 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000352/0.3782, allocations: 120.3 kB / 0.576 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006263/0.3788, allocations: 0.5852 MB / 0.5766 GB, free: 13 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3788, allocations: 0 / 0.5766 GB, free: 13 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05397/0.4328, allocations: 18.68 MB / 0.5948 GB, free: 10.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.9, allocations: 2.344 kB / 0.5949 GB, free: 10.41 MB / 446.1 MB " [Timeout remaining time 648] (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: 14.55701669678092] Failed to read output from testmodel.py, exit status != 0: 12.013496510218829 12.036449321 11.711473764 Calling exit ...