Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001892/0.001892, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.002686/0.002686, allocations: 218.1 kB / 22.26 MB, free: 5.082 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 8.008 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.1933/0.1933, allocations: 29.23 MB / 341.7 MB, free: 5.785 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.002061/0.002061, allocations: 70.86 kB / 478.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.335, allocations: 60.79 MB / 0.5266 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005081/0.34, allocations: 3.664 MB / 0.5302 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.3417, allocations: 0.6755 MB / 0.5308 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.3422, allocations: 22.34 kB / 0.5308 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004013/0.3426, allocations: 176.7 kB / 0.531 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002905/0.3429, allocations: 132.3 kB / 0.5311 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.3439, allocations: 360.2 kB / 0.5315 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.345, allocations: 0.8425 MB / 0.5323 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009046/0.3459, allocations: 0.4906 MB / 0.5328 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004674/0.3464, allocations: 350.1 kB / 0.5331 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005191/0.3469, allocations: 424.2 kB / 0.5335 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.3471, allocations: 86.12 kB / 0.5336 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004315/0.3475, allocations: 123.5 kB / 0.5337 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004504/0.3479, allocations: 440.2 kB / 0.5341 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005862/0.3485, allocations: 0.6136 MB / 0.5347 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.3505, allocations: 1.262 MB / 0.536 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3505, allocations: 0 / 0.536 GB, free: 1.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3505, allocations: 4 kB / 0.536 GB, free: 1.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.267e-05/0.3505, allocations: 0 / 0.536 GB, free: 1.902 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002148/0.3527, allocations: 1.768 MB / 0.5377 GB, free: 0.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.787e-05/0.3528, allocations: 9.75 kB / 0.5377 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001609/0.353, allocations: 165.7 kB / 0.5379 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.3532, allocations: 209.1 kB / 0.5381 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.3542, allocations: 0.7071 MB / 0.5388 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.411e-05/0.3543, allocations: 82.5 kB / 0.5388 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.3544, allocations: 105.1 kB / 0.5389 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/0.3566, allocations: 1.187 MB / 0.5401 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3566, allocations: 5 kB / 0.5401 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.3567, allocations: 42.03 kB / 0.5401 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.3567, allocations: 26.12 kB / 0.5402 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.3584, allocations: 1.104 MB / 0.5412 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006162/0.3646, allocations: 3.609 MB / 0.5448 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.3665, allocations: 1.304 MB / 0.546 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005923/0.3671, allocations: 470.2 kB / 0.5465 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.964e-05/0.3672, allocations: 29.58 kB / 0.5465 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.3672, allocations: 45.72 kB / 0.5466 GB, free: 11.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.494e-06/0.3672, allocations: 1.594 kB / 0.5466 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002341/0.3696, allocations: 1.538 MB / 0.5481 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.3696, allocations: 58.66 kB / 0.5481 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.3716, allocations: 1.288 MB / 0.5494 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.3716, allocations: 37.7 kB / 0.5494 GB, free: 9.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000672/0.3723, allocations: 0.7882 MB / 0.5502 GB, free: 8.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003272/0.3726, allocations: 241.9 kB / 0.5504 GB, free: 8.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.3728, allocations: 114.7 kB / 0.5505 GB, free: 8.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.373, allocations: 330 kB / 0.5508 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.3736, allocations: 441.8 kB / 0.5513 GB, free: 7.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007071/0.3743, allocations: 0.535 MB / 0.5518 GB, free: 7.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.3756, allocations: 0.9982 MB / 0.5528 GB, free: 6.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3756, allocations: 4 kB / 0.5528 GB, free: 6.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001924/0.3776, allocations: 1.207 MB / 0.5539 GB, free: 4.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.3776, allocations: 11.94 kB / 0.5539 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3776, allocations: 0 / 0.5539 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.3776, allocations: 11.94 kB / 0.554 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.3781, allocations: 128.1 kB / 0.5541 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.3781, allocations: 12 kB / 0.5541 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.3785, allocations: 55.56 kB / 0.5541 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.3786, allocations: 27.98 kB / 0.5542 GB, free: 4.664 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 (83): * Single equations (assignments): 83 * 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.0008459/0.3795, allocations: 365.5 kB / 0.5545 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.3797, allocations: 151 kB / 0.5547 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.3816, allocations: 1.207 MB / 0.5558 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.3816, allocations: 8 kB / 0.5559 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3816, allocations: 4 kB / 0.5559 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3816, allocations: 3.984 kB / 0.5559 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/0.385, allocations: 2.342 MB / 0.5581 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.385, allocations: 0 / 0.5581 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.3855, allocations: 111.8 kB / 0.5583 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.3855, allocations: 7.984 kB / 0.5583 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.3856, allocations: 16 kB / 0.5583 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.3856, allocations: 4 kB / 0.5583 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3856, allocations: 4 kB / 0.5583 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.388, allocations: 1.894 MB / 0.5601 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.3882, allocations: 130.8 kB / 0.5603 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.927e-05/0.3883, allocations: 16.06 kB / 0.5603 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3885, allocations: 11.98 kB / 0.5603 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.278e-05/0.3886, allocations: 44.58 kB / 0.5603 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.3887, allocations: 20 kB / 0.5603 GB, free: 14.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.39, allocations: 0.9003 MB / 0.5612 GB, free: 13.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.39, allocations: 0 / 0.5612 GB, free: 13.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006314/0.3906, allocations: 207.2 kB / 0.5614 GB, free: 13.13 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 (68): * Single equations (assignments): 68 * 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.002911/0.3936, allocations: 2.463 MB / 0.5638 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.395, allocations: 0.9661 MB / 0.5648 GB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.395, allocations: 3.938 kB / 0.5648 GB, free: 9.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.3957, allocations: 0.5001 MB / 0.5653 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.3963, allocations: 90.22 kB / 0.5654 GB, free: 9.094 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/0.4137, allocations: 11.55 MB / 0.5766 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.4148, allocations: 1.311 MB / 0.5779 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002617/0.4151, allocations: 76.39 kB / 0.578 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006814/0.4158, allocations: 0.5852 MB / 0.5786 GB, free: 11.37 MB / 430.1 MB Notification: Performance of SimCode: time 2.585e-06/0.4158, allocations: 0 / 0.5786 GB, free: 11.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06425/0.48, allocations: 19.1 MB / 0.5972 GB, free: 8.375 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.68, allocations: 10.19 kB / 0.5972 GB, free: 8.371 MB / 446.1 MB " [Timeout remaining time 645] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3_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_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.689772008001455] Failed to read output from testmodel.py, exit status != 0: 14.806767829999444 14.827651001 14.473320226 Calling exit ...