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.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.001374/0.001374, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001515/0.001515, allocations: 219.7 kB / 22.26 MB, free: 5.125 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.425/1.425, allocations: 230.6 MB / 256 MB, free: 7.969 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.192/0.192, allocations: 29.22 MB / 341.7 MB, free: 5.766 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_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: 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.002031/0.002031, allocations: 71.89 kB / 478.4 MB, free: 492 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3202, allocations: 60.79 MB / 0.5266 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004616/0.3248, allocations: 3.643 MB / 0.5301 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3267, allocations: 0.6712 MB / 0.5308 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005456/0.3273, allocations: 18.06 kB / 0.5308 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004417/0.3277, allocations: 162.5 kB / 0.531 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.328, allocations: 120.7 kB / 0.5311 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00078/0.3288, allocations: 359.4 kB / 0.5314 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008869/0.3297, allocations: 0.8365 MB / 0.5323 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007096/0.3304, allocations: 0.4946 MB / 0.5327 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.3308, allocations: 341.3 kB / 0.5331 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.3312, allocations: 437.2 kB / 0.5335 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.3314, allocations: 84.53 kB / 0.5336 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.3316, allocations: 118.9 kB / 0.5337 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005183/0.3322, allocations: 446.9 kB / 0.5341 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003544/0.3325, allocations: 0.5977 MB / 0.5347 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.334, allocations: 1.225 MB / 0.5359 GB, free: 1.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.334, allocations: 0.5625 kB / 0.5359 GB, free: 1.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.334, allocations: 0 / 0.5359 GB, free: 1.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.334, allocations: 2.219 kB / 0.5359 GB, free: 1.93 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.001922/0.3359, allocations: 1.705 MB / 0.5375 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.336, allocations: 10.75 kB / 0.5376 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001634/0.3361, allocations: 171.5 kB / 0.5377 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.3363, allocations: 205.6 kB / 0.5379 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009119/0.3372, allocations: 0.6898 MB / 0.5386 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.048e-05/0.3373, allocations: 83.66 kB / 0.5387 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.3374, allocations: 105.1 kB / 0.5388 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.3391, allocations: 1.149 MB / 0.5399 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.3392, allocations: 7.875 kB / 0.5399 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/0.3392, allocations: 41.94 kB / 0.5399 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.3393, allocations: 29.28 kB / 0.54 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.3408, allocations: 1.058 MB / 0.541 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004885/0.3457, allocations: 3.531 MB / 0.5444 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.3473, allocations: 1.252 MB / 0.5457 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005175/0.3478, allocations: 441.6 kB / 0.5461 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-05/0.3479, allocations: 28.23 kB / 0.5461 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.3479, allocations: 38.75 kB / 0.5462 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.695e-06/0.3479, allocations: 0 / 0.5462 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001899/0.3498, allocations: 1.457 MB / 0.5476 GB, free: 10.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.3499, allocations: 58.84 kB / 0.5476 GB, free: 10.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.3515, allocations: 1.229 MB / 0.5488 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.3515, allocations: 45.42 kB / 0.5489 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006507/0.3522, allocations: 0.7614 MB / 0.5496 GB, free: 9.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.3524, allocations: 234 kB / 0.5498 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.3525, allocations: 118.3 kB / 0.55 GB, free: 9.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3527, allocations: 329.9 kB / 0.5503 GB, free: 8.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005405/0.3532, allocations: 421.1 kB / 0.5507 GB, free: 8.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/0.3538, allocations: 0.5004 MB / 0.5512 GB, free: 7.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.355, allocations: 0.9513 MB / 0.5521 GB, free: 6.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.355, allocations: 4 kB / 0.5521 GB, free: 6.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001514/0.3565, allocations: 1.14 MB / 0.5532 GB, free: 5.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3566, allocations: 8 kB / 0.5532 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3566, allocations: 0 / 0.5532 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3566, allocations: 8 kB / 0.5532 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.3571, allocations: 127.8 kB / 0.5533 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.21e-05/0.3571, allocations: 4 kB / 0.5533 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.3574, allocations: 51.56 kB / 0.5534 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.147e-05/0.3574, allocations: 32.3 kB / 0.5534 GB, free: 5.402 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.0006007/0.358, allocations: 361.5 kB / 0.5538 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3582, allocations: 143 kB / 0.5539 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.3598, allocations: 1.148 MB / 0.555 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.3598, allocations: 8 kB / 0.555 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3598, allocations: 0 / 0.555 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3598, allocations: 3.984 kB / 0.555 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.3629, allocations: 2.259 MB / 0.5572 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3629, allocations: 0 / 0.5572 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/0.3633, allocations: 107.9 kB / 0.5574 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.3633, allocations: 7.938 kB / 0.5574 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.3634, allocations: 12 kB / 0.5574 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.3634, allocations: 7.984 kB / 0.5574 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3634, allocations: 0 / 0.5574 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.3656, allocations: 1.796 MB / 0.5591 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.3658, allocations: 138.9 kB / 0.5593 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.008e-05/0.3658, allocations: 12 kB / 0.5593 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3661, allocations: 12 kB / 0.5593 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.657e-05/0.3661, allocations: 44.52 kB / 0.5593 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.3661, allocations: 16 kB / 0.5593 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.3674, allocations: 0.8558 MB / 0.5602 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3674, allocations: 0 / 0.5602 GB, free: 14.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000599/0.368, allocations: 203.3 kB / 0.5604 GB, free: 14.19 MB / 414.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.002456/0.3705, allocations: 2.374 MB / 0.5627 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3717, allocations: 0.9191 MB / 0.5636 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3717, allocations: 0 / 0.5636 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005436/0.3722, allocations: 479.5 kB / 0.564 GB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.3729, allocations: 96.28 kB / 0.5641 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/0.3886, allocations: 11.07 MB / 0.575 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.3897, allocations: 1.28 MB / 0.5762 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000245/0.3899, allocations: 76.36 kB / 0.5763 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006526/0.3906, allocations: 0.5696 MB / 0.5768 GB, free: 13.11 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3906, allocations: 0 / 0.5768 GB, free: 13.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05659/0.4472, allocations: 18.46 MB / 0.5949 GB, free: 10.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.44, allocations: 14.16 kB / 0.5949 GB, free: 10.74 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.288413690999732] Failed to read output from testmodel.py, exit status != 0: 14.558192536002025 14.574449949 14.237198622 Calling exit ...