Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.001307/0.001307, 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.001778/0.001778, allocations: 214.4 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.338/1.338, 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.1694/0.1694, allocations: 29.24 MB / 341.7 MB, free: 5.582 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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.002143/0.002143, allocations: 67.84 kB / 478.4 MB, free: 356 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3005, allocations: 60.79 MB / 0.5265 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004004/0.3045, allocations: 3.108 MB / 0.5296 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.3057, allocations: 0.6753 MB / 0.5302 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.306, allocations: 19.88 kB / 0.5302 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.3064, allocations: 176.2 kB / 0.5304 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.3067, allocations: 135.5 kB / 0.5305 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006306/0.3073, allocations: 367.6 kB / 0.5309 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007193/0.308, allocations: 0.8472 MB / 0.5317 GB, free: 4.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005879/0.3086, allocations: 467.1 kB / 0.5321 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.3088, allocations: 350.3 kB / 0.5325 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.3091, allocations: 373.2 kB / 0.5328 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.3093, allocations: 87 kB / 0.5329 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.3095, allocations: 118.8 kB / 0.533 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.3098, allocations: 467.5 kB / 0.5335 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.3101, allocations: 484 kB / 0.5339 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.3112, allocations: 1.311 MB / 0.5352 GB, free: 2.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3112, allocations: 0 / 0.5352 GB, free: 2.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3112, allocations: 0 / 0.5352 GB, free: 2.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.3112, allocations: 1.531 kB / 0.5352 GB, free: 2.535 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001699/0.3129, allocations: 1.801 MB / 0.537 GB, free: 1.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3129, allocations: 17.56 kB / 0.537 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.3131, allocations: 186 kB / 0.5372 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.3133, allocations: 213 kB / 0.5374 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007499/0.314, allocations: 0.7182 MB / 0.5381 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.878e-05/0.3141, allocations: 86.78 kB / 0.5382 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3142, allocations: 110.8 kB / 0.5383 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.3158, allocations: 1.29 MB / 0.5395 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.3159, allocations: 8.969 kB / 0.5395 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/0.3159, allocations: 41.38 kB / 0.5396 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.694e-05/0.316, allocations: 50.55 kB / 0.5396 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.3176, allocations: 1.233 MB / 0.5408 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.3221, allocations: 3.646 MB / 0.5444 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.3236, allocations: 1.326 MB / 0.5457 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005607/0.3242, allocations: 479.7 kB / 0.5461 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.3243, allocations: 28.69 kB / 0.5462 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.3243, allocations: 43.38 kB / 0.5462 GB, free: 11.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.325e-06/0.3243, allocations: 4 kB / 0.5462 GB, free: 11.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002041/0.3263, allocations: 1.573 MB / 0.5478 GB, free: 11.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3264, allocations: 85.77 kB / 0.5478 GB, free: 10.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.3279, allocations: 1.37 MB / 0.5492 GB, free: 9.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.328, allocations: 41.7 kB / 0.5492 GB, free: 9.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006326/0.3286, allocations: 0.8658 MB / 0.5501 GB, free: 8.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.3288, allocations: 250 kB / 0.5503 GB, free: 8.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.329, allocations: 166.6 kB / 0.5505 GB, free: 8.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3291, allocations: 334 kB / 0.5508 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/0.3297, allocations: 473.8 kB / 0.5512 GB, free: 7.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/0.3305, allocations: 0.72 MB / 0.5519 GB, free: 6.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.3319, allocations: 1.241 MB / 0.5531 GB, free: 5.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3319, allocations: 0 / 0.5531 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001716/0.3336, allocations: 1.394 MB / 0.5545 GB, free: 3.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.3337, allocations: 19.86 kB / 0.5545 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3337, allocations: 8 kB / 0.5545 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.3337, allocations: 12 kB / 0.5545 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.3342, allocations: 187.7 kB / 0.5547 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-05/0.3343, allocations: 15.94 kB / 0.5547 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.3346, allocations: 91.69 kB / 0.5548 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/0.3347, allocations: 44 kB / 0.5549 GB, free: 3.523 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.000483/0.3352, allocations: 400.4 kB / 0.5552 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.3353, allocations: 158.9 kB / 0.5554 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.337, allocations: 1.243 MB / 0.5566 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.337, allocations: 8 kB / 0.5566 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.337, allocations: 0 / 0.5566 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.337, allocations: 8.016 kB / 0.5566 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.3398, allocations: 2.312 MB / 0.5589 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3398, allocations: 0 / 0.5589 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.3403, allocations: 127.8 kB / 0.559 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.3403, allocations: 4 kB / 0.559 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.3403, allocations: 12 kB / 0.559 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3403, allocations: 4 kB / 0.559 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3403, allocations: 0 / 0.559 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.3426, allocations: 2 MB / 0.561 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.3428, allocations: 142.8 kB / 0.5611 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.11e-05/0.3429, allocations: 15.94 kB / 0.5611 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.3432, allocations: 15.98 kB / 0.5611 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.341e-05/0.3433, allocations: 44.58 kB / 0.5612 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.3433, allocations: 27.98 kB / 0.5612 GB, free: 12.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.3444, allocations: 0.9297 MB / 0.5621 GB, free: 12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3444, allocations: 4 kB / 0.5621 GB, free: 12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006461/0.345, allocations: 231.2 kB / 0.5623 GB, free: 11.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.002583/0.3476, allocations: 2.565 MB / 0.5649 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.349, allocations: 1.06 MB / 0.5659 GB, free: 8.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.349, allocations: 1.688 kB / 0.5659 GB, free: 8.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00061/0.3496, allocations: 0.5034 MB / 0.5664 GB, free: 7.613 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006612/0.3503, allocations: 96.52 kB / 0.5665 GB, free: 7.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.3655, allocations: 12.43 MB / 0.5786 GB, free: 10.67 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008033/0.3663, allocations: 0.7462 MB / 0.5793 GB, free: 9.891 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003835/0.3667, allocations: 132.8 kB / 0.5795 GB, free: 9.758 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006625/0.3673, allocations: 0.6203 MB / 0.5801 GB, free: 9.137 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3673, allocations: 0 / 0.5801 GB, free: 9.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05158/0.4189, allocations: 19.88 MB / 0.5995 GB, free: 5.363 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.82, allocations: 7.922 kB / 0.5995 GB, free: 5.355 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4_res.csv --start-time 1900 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.466775598935783] Failed to read output from testmodel.py, exit status != 0: 11.940736348740757 11.958250649 11.644021074 Calling exit ...