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.001315/0.001315, 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: 217.1 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.961 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.2272/0.2272, allocations: 29.22 MB / 341.7 MB, free: 5.781 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.002017/0.002017, allocations: 71.89 kB / 478.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3276, allocations: 60.79 MB / 0.5266 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004197/0.3318, allocations: 3.679 MB / 0.5302 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3334, allocations: 0.6808 MB / 0.5308 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.3337, allocations: 23.09 kB / 0.5309 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004069/0.3341, allocations: 181.2 kB / 0.531 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.3344, allocations: 134.8 kB / 0.5312 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007205/0.3351, allocations: 362.8 kB / 0.5315 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008791/0.336, allocations: 0.8491 MB / 0.5323 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006779/0.3367, allocations: 0.494 MB / 0.5328 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.337, allocations: 351.8 kB / 0.5332 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004363/0.3375, allocations: 432.7 kB / 0.5336 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.3376, allocations: 85.91 kB / 0.5337 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.3378, allocations: 119.3 kB / 0.5338 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003558/0.3382, allocations: 464.2 kB / 0.5342 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003291/0.3385, allocations: 0.6317 MB / 0.5348 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.3398, allocations: 1.291 MB / 0.5361 GB, free: 1.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3398, allocations: 0 / 0.5361 GB, free: 1.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3398, allocations: 5.281 kB / 0.5361 GB, free: 1.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.612e-05/0.3399, allocations: 0 / 0.5361 GB, free: 1.836 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.001923/0.3418, allocations: 1.813 MB / 0.5379 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3418, allocations: 8.969 kB / 0.5379 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002171/0.342, allocations: 178 kB / 0.538 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.3422, allocations: 213.7 kB / 0.5382 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009837/0.3432, allocations: 0.7212 MB / 0.5389 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/0.3433, allocations: 82.72 kB / 0.539 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.3435, allocations: 106.5 kB / 0.5391 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.3453, allocations: 1.293 MB / 0.5404 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.3453, allocations: 5.312 kB / 0.5404 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.045e-05/0.3454, allocations: 45.98 kB / 0.5404 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-05/0.3454, allocations: 49.95 kB / 0.5405 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.3471, allocations: 1.239 MB / 0.5417 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005543/0.3527, allocations: 3.826 MB / 0.5454 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.3547, allocations: 1.336 MB / 0.5467 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006651/0.3554, allocations: 479.1 kB / 0.5472 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001397/0.3555, allocations: 37.3 kB / 0.5472 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.992e-05/0.3556, allocations: 45.81 kB / 0.5473 GB, free: 10.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 7.795e-06/0.3556, allocations: 3.984 kB / 0.5473 GB, free: 10.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002247/0.3578, allocations: 1.572 MB / 0.5488 GB, free: 10.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.3579, allocations: 84.36 kB / 0.5489 GB, free: 10.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.3597, allocations: 1.362 MB / 0.5502 GB, free: 8.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.397e-05/0.3598, allocations: 41.7 kB / 0.5503 GB, free: 8.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006997/0.3605, allocations: 0.8657 MB / 0.5511 GB, free: 7.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.3607, allocations: 249.9 kB / 0.5514 GB, free: 7.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.3609, allocations: 158.7 kB / 0.5515 GB, free: 7.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3611, allocations: 345.9 kB / 0.5518 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.3617, allocations: 469.8 kB / 0.5523 GB, free: 6.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008463/0.3625, allocations: 0.7239 MB / 0.553 GB, free: 5.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.3641, allocations: 1.234 MB / 0.5542 GB, free: 4.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.3641, allocations: 4 kB / 0.5542 GB, free: 4.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001916/0.366, allocations: 1.395 MB / 0.5556 GB, free: 3.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.366, allocations: 11.94 kB / 0.5556 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.366, allocations: 8 kB / 0.5556 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.3661, allocations: 16.06 kB / 0.5556 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.3667, allocations: 187.7 kB / 0.5558 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/0.3667, allocations: 19.92 kB / 0.5558 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.3671, allocations: 83.34 kB / 0.5559 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.3671, allocations: 44 kB / 0.5559 GB, free: 2.723 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.0006225/0.3678, allocations: 393.4 kB / 0.5563 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.368, allocations: 162.9 kB / 0.5564 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.3697, allocations: 1.247 MB / 0.5577 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-06/0.3697, allocations: 8 kB / 0.5577 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3697, allocations: 0 / 0.5577 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3697, allocations: 3.984 kB / 0.5577 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.3728, allocations: 2.382 MB / 0.56 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3728, allocations: 0 / 0.56 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004691/0.3733, allocations: 123.8 kB / 0.5601 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.3733, allocations: 4 kB / 0.5601 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.3733, allocations: 16 kB / 0.5601 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.3733, allocations: 4 kB / 0.5601 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3733, allocations: 0 / 0.5601 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.3756, allocations: 2 MB / 0.5621 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.3758, allocations: 134.8 kB / 0.5622 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/0.3759, allocations: 16.06 kB / 0.5622 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.3761, allocations: 15.98 kB / 0.5623 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/0.3762, allocations: 44.58 kB / 0.5623 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.812e-05/0.3763, allocations: 27.92 kB / 0.5623 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.3774, allocations: 0.9375 MB / 0.5632 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3774, allocations: 3.938 kB / 0.5632 GB, free: 11.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006883/0.3781, allocations: 223.2 kB / 0.5635 GB, free: 10.9 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.002741/0.3809, allocations: 2.569 MB / 0.566 GB, free: 8.305 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.3823, allocations: 1.061 MB / 0.567 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3823, allocations: 0 / 0.567 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.383, allocations: 0.5073 MB / 0.5675 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.3836, allocations: 99.7 kB / 0.5676 GB, free: 6.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.4005, allocations: 12.42 MB / 0.5797 GB, free: 9.805 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.4016, allocations: 1.334 MB / 0.581 GB, free: 8.438 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003902/0.402, allocations: 132.8 kB / 0.5811 GB, free: 8.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007005/0.4027, allocations: 0.6164 MB / 0.5818 GB, free: 7.688 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4027, allocations: 0 / 0.5818 GB, free: 7.688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06132/0.464, allocations: 20.16 MB / 0.6014 GB, free: 3.621 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/15.4, allocations: 14.03 kB / 0.6014 GB, free: 3.613 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.371607856999617] Failed to read output from testmodel.py, exit status != 0: 15.520702837999124 15.539494729 15.195984655 Calling exit ...