Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.001317/0.001317, allocations: 105.2 kB / 18.99 MB, free: 2.758 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.001683/0.001683, allocations: 218.9 kB / 22.29 MB, free: 5.16 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.427/1.427, allocations: 230.6 MB / 256.1 MB, free: 7.785 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.1929/0.1929, allocations: 29.23 MB / 341.7 MB, free: 5.559 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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.002191/0.002191, allocations: 71.89 kB / 478.4 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3516, allocations: 60.8 MB / 0.5266 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004855/0.3565, allocations: 3.108 MB / 0.5296 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.3586, allocations: 0.7634 MB / 0.5304 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006185/0.3592, allocations: 19.44 kB / 0.5304 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004896/0.3597, allocations: 170.7 kB / 0.5306 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003992/0.3601, allocations: 141.5 kB / 0.5307 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009754/0.3611, allocations: 371.7 kB / 0.5311 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.3622, allocations: 0.8538 MB / 0.5319 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007442/0.3629, allocations: 483.7 kB / 0.5323 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.3633, allocations: 348.5 kB / 0.5327 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004442/0.3638, allocations: 391.8 kB / 0.5331 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001739/0.3639, allocations: 86.88 kB / 0.5331 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.3642, allocations: 118.7 kB / 0.5332 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000424/0.3646, allocations: 448.2 kB / 0.5337 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.365, allocations: 470.9 kB / 0.5341 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.3665, allocations: 1.295 MB / 0.5354 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3665, allocations: 2 kB / 0.5354 GB, free: 2.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3665, allocations: 0 / 0.5354 GB, free: 2.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.758e-05/0.3665, allocations: 0 / 0.5354 GB, free: 2.465 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002251/0.3688, allocations: 1.781 MB / 0.5371 GB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3688, allocations: 9.625 kB / 0.5371 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.369, allocations: 174.6 kB / 0.5373 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.3693, allocations: 212.7 kB / 0.5375 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000906/0.3702, allocations: 0.7152 MB / 0.5382 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.3703, allocations: 76.8 kB / 0.5383 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3704, allocations: 106.5 kB / 0.5384 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.3722, allocations: 1.192 MB / 0.5395 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.3723, allocations: 11.81 kB / 0.5396 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.519e-05/0.3723, allocations: 45.75 kB / 0.5396 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.314e-05/0.3724, allocations: 30.45 kB / 0.5396 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.3741, allocations: 1.109 MB / 0.5407 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005433/0.3795, allocations: 3.436 MB / 0.5441 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.3814, allocations: 1.331 MB / 0.5454 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006833/0.3821, allocations: 471.5 kB / 0.5458 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-05/0.3822, allocations: 28.83 kB / 0.5458 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008156/0.383, allocations: 0.547 MB / 0.5464 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.656e-06/0.383, allocations: 0 / 0.5464 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002329/0.3854, allocations: 1.58 MB / 0.5479 GB, free: 10.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3854, allocations: 64 kB / 0.548 GB, free: 10.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.3872, allocations: 1.308 MB / 0.5493 GB, free: 9.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.3872, allocations: 37.7 kB / 0.5493 GB, free: 9.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007418/0.388, allocations: 0.7845 MB / 0.5501 GB, free: 8.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.3882, allocations: 262 kB / 0.5503 GB, free: 8.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.3884, allocations: 114.7 kB / 0.5504 GB, free: 8.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3885, allocations: 334 kB / 0.5507 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.3891, allocations: 445.8 kB / 0.5512 GB, free: 7.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006706/0.3898, allocations: 0.5523 MB / 0.5517 GB, free: 7.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.3912, allocations: 1.047 MB / 0.5527 GB, free: 5.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3912, allocations: 0 / 0.5527 GB, free: 5.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001752/0.3929, allocations: 1.23 MB / 0.5539 GB, free: 4.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3929, allocations: 4 kB / 0.5539 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.393, allocations: 4 kB / 0.5539 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.393, allocations: 8 kB / 0.5539 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.3935, allocations: 139.7 kB / 0.5541 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.3935, allocations: 8.344 kB / 0.5541 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.3938, allocations: 67.5 kB / 0.5542 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.3939, allocations: 24 kB / 0.5542 GB, free: 4.445 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0007616/0.3946, allocations: 381.5 kB / 0.5545 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3948, allocations: 147 kB / 0.5547 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.3965, allocations: 1.242 MB / 0.5559 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3966, allocations: 11.94 kB / 0.5559 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3966, allocations: 0 / 0.5559 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3966, allocations: 7.984 kB / 0.5559 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.3997, allocations: 2.319 MB / 0.5582 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3997, allocations: 0 / 0.5582 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.4002, allocations: 111.9 kB / 0.5583 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.4002, allocations: 7.938 kB / 0.5583 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.4002, allocations: 15.98 kB / 0.5583 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-05/0.4002, allocations: 11.94 kB / 0.5583 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4002, allocations: 0 / 0.5583 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.4029, allocations: 1.941 MB / 0.5602 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003513/0.4033, allocations: 190.7 kB / 0.5604 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.686e-05/0.4033, allocations: 16 kB / 0.5604 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.4036, allocations: 12 kB / 0.5604 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.4037, allocations: 48.5 kB / 0.5605 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.4037, allocations: 16 kB / 0.5605 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001332/0.4051, allocations: 0.9008 MB / 0.5614 GB, free: 12.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4051, allocations: 0 / 0.5614 GB, free: 12.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007077/0.4058, allocations: 215.2 kB / 0.5616 GB, free: 12.78 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002977/0.4088, allocations: 2.522 MB / 0.564 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.4102, allocations: 0.9893 MB / 0.565 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4102, allocations: 0 / 0.565 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006475/0.4108, allocations: 0.5034 MB / 0.5655 GB, free: 8.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/0.4115, allocations: 92.5 kB / 0.5656 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/0.4284, allocations: 11.7 MB / 0.577 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008903/0.4293, allocations: 0.7297 MB / 0.5777 GB, free: 11.99 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002536/0.4295, allocations: 72.55 kB / 0.5778 GB, free: 11.92 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/0.4302, allocations: 0.5969 MB / 0.5784 GB, free: 11.32 MB / 430.1 MB Notification: Performance of SimCode: time 1.963e-06/0.4302, allocations: 0 / 0.5784 GB, free: 11.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05771/0.4879, allocations: 19.44 MB / 0.5974 GB, free: 8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.84, allocations: 3.938 kB / 0.5974 GB, free: 7.996 MB / 446.1 MB " [Timeout remaining time 647] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_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_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.760950073017739] Failed to read output from testmodel.py, exit status != 0: 12.966157816990744 12.991485363 12.62038203 Calling exit ...