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.001413/0.001413, allocations: 108.1 kB / 16.45 MB, free: 6.508 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.001549/0.001549, allocations: 215.2 kB / 19.43 MB, free: 3.648 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.445/1.445, allocations: 230.6 MB / 252.8 MB, free: 9.105 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1978/0.1978, allocations: 29.23 MB / 338.1 MB, free: 6.973 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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.00192/0.00192, allocations: 70.86 kB / 473.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3684, allocations: 60.75 MB / 0.5215 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005437/0.3738, allocations: 3.686 MB / 0.5251 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.3757, allocations: 0.7631 MB / 0.5258 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008245/0.3766, allocations: 18.31 kB / 0.5258 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005532/0.3771, allocations: 184.9 kB / 0.526 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004828/0.3776, allocations: 132.8 kB / 0.5261 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008832/0.3785, allocations: 375.7 kB / 0.5265 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.3796, allocations: 0.8597 MB / 0.5273 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006894/0.3802, allocations: 0.4952 MB / 0.5278 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.3805, allocations: 351.5 kB / 0.5282 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.3809, allocations: 448.6 kB / 0.5286 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.381, allocations: 86.97 kB / 0.5287 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.3812, allocations: 115.3 kB / 0.5288 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003346/0.3815, allocations: 442.2 kB / 0.5292 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003323/0.3819, allocations: 0.6196 MB / 0.5298 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00126/0.3831, allocations: 1.276 MB / 0.5311 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3831, allocations: 4.516 kB / 0.5311 GB, free: 1.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3831, allocations: 1.219 kB / 0.5311 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.3832, allocations: 0 / 0.5311 GB, free: 1.68 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.002013/0.3852, allocations: 1.851 MB / 0.5329 GB, free: 372 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3852, allocations: 9.188 kB / 0.5329 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.3854, allocations: 174.1 kB / 0.533 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.3856, allocations: 208.9 kB / 0.5332 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009817/0.3866, allocations: 0.7795 MB / 0.534 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.938e-05/0.3867, allocations: 82.38 kB / 0.5341 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.3868, allocations: 106.1 kB / 0.5342 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/0.3886, allocations: 1.19 MB / 0.5353 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.3887, allocations: 13 kB / 0.5354 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.607e-05/0.3887, allocations: 46.22 kB / 0.5354 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.3888, allocations: 26.03 kB / 0.5354 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.3903, allocations: 1.111 MB / 0.5365 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005163/0.3955, allocations: 3.7 MB / 0.5401 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3973, allocations: 1.326 MB / 0.5414 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006119/0.3979, allocations: 470.1 kB / 0.5419 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.476e-05/0.3979, allocations: 33.27 kB / 0.5419 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007841/0.3987, allocations: 0.547 MB / 0.5424 GB, free: 10.94 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.655e-06/0.3987, allocations: 0 / 0.5424 GB, free: 10.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002319/0.401, allocations: 1.582 MB / 0.544 GB, free: 10.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.4011, allocations: 64.72 kB / 0.544 GB, free: 10.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.403, allocations: 1.295 MB / 0.5453 GB, free: 9.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.292e-05/0.4031, allocations: 40.58 kB / 0.5453 GB, free: 9.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007543/0.4038, allocations: 0.7893 MB / 0.5461 GB, free: 8.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.4041, allocations: 257.8 kB / 0.5464 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.4043, allocations: 122.7 kB / 0.5465 GB, free: 8.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4044, allocations: 330 kB / 0.5468 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.405, allocations: 449.8 kB / 0.5472 GB, free: 7.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007124/0.4057, allocations: 0.5523 MB / 0.5478 GB, free: 7.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.4072, allocations: 1.05 MB / 0.5488 GB, free: 6.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/0.4072, allocations: 4 kB / 0.5488 GB, free: 6.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001754/0.4089, allocations: 1.223 MB / 0.55 GB, free: 4.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4089, allocations: 8.031 kB / 0.55 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.409, allocations: 7.984 kB / 0.55 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.409, allocations: 4 kB / 0.55 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.4095, allocations: 139.7 kB / 0.5501 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.4095, allocations: 11.98 kB / 0.5501 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.4099, allocations: 59.52 kB / 0.5502 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.4099, allocations: 28 kB / 0.5502 GB, free: 4.539 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.0008342/0.4108, allocations: 386 kB / 0.5506 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.4109, allocations: 147 kB / 0.5507 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.4127, allocations: 1.235 MB / 0.5519 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.4127, allocations: 11.94 kB / 0.552 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.4128, allocations: 0 / 0.552 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.4128, allocations: 3.984 kB / 0.552 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.4161, allocations: 2.417 MB / 0.5543 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4161, allocations: 4 kB / 0.5543 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.4166, allocations: 115.8 kB / 0.5544 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.4166, allocations: 7.938 kB / 0.5544 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.4166, allocations: 19.94 kB / 0.5545 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.353e-06/0.4166, allocations: 4 kB / 0.5545 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.4167, allocations: 3.984 kB / 0.5545 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.4191, allocations: 1.937 MB / 0.5564 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.4195, allocations: 267.9 kB / 0.5566 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.923e-05/0.4195, allocations: 12 kB / 0.5566 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.4198, allocations: 20.12 kB / 0.5566 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.4199, allocations: 40.59 kB / 0.5567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.42, allocations: 23.98 kB / 0.5567 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0014/0.4214, allocations: 0.893 MB / 0.5576 GB, free: 12.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4214, allocations: 0 / 0.5576 GB, free: 12.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007449/0.4221, allocations: 215.2 kB / 0.5578 GB, free: 12.69 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.002887/0.425, allocations: 2.521 MB / 0.5602 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.4265, allocations: 0.9894 MB / 0.5612 GB, free: 9.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4265, allocations: 0.6875 kB / 0.5612 GB, free: 9.148 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006678/0.4272, allocations: 0.5112 MB / 0.5617 GB, free: 8.641 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006835/0.4278, allocations: 84.66 kB / 0.5618 GB, free: 8.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01698/0.4448, allocations: 11.71 MB / 0.5732 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.4459, allocations: 1.319 MB / 0.5745 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.4462, allocations: 76.8 kB / 0.5746 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007123/0.4469, allocations: 0.593 MB / 0.5752 GB, free: 10.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4469, allocations: 0 / 0.5752 GB, free: 10.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05165/0.4985, allocations: 18.97 MB / 0.5937 GB, free: 7.719 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.5, allocations: 8 kB / 0.5937 GB, free: 7.711 MB / 446.1 MB " [Timeout remaining time 648] (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: 14.404231398366392] Failed to read output from testmodel.py, exit status != 0: 11.585245893802494 11.602314198 11.215844029 Calling exit ...