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.001963/0.001963, 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.002334/0.002334, allocations: 220.2 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.557/1.557, allocations: 230.6 MB / 256 MB, free: 7.973 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.2105/0.2105, allocations: 29.24 MB / 341.7 MB, free: 5.781 MB / 270.1 MB " [Timeout remaining time 179] 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.002197/0.002197, allocations: 71.89 kB / 478.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.4684, allocations: 60.79 MB / 0.5266 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.00588/0.4743, allocations: 3.689 MB / 0.5302 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003362/0.4777, allocations: 0.7731 MB / 0.531 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008903/0.4786, allocations: 23.31 kB / 0.531 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005582/0.4791, allocations: 167.6 kB / 0.5311 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004008/0.4795, allocations: 142 kB / 0.5313 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.4807, allocations: 375.4 kB / 0.5316 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.4819, allocations: 0.8587 MB / 0.5325 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008144/0.4827, allocations: 0.4949 MB / 0.533 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005193/0.4833, allocations: 356.4 kB / 0.5333 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004892/0.4838, allocations: 452.3 kB / 0.5337 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.4839, allocations: 86.38 kB / 0.5338 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002635/0.4842, allocations: 117.4 kB / 0.5339 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006865/0.4849, allocations: 445.1 kB / 0.5343 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005163/0.4854, allocations: 0.6173 MB / 0.5349 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.4872, allocations: 1.273 MB / 0.5362 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.4872, allocations: 0 / 0.5362 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4872, allocations: 0 / 0.5362 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.4873, allocations: 0 / 0.5362 GB, free: 1.77 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.002436/0.4897, allocations: 1.79 MB / 0.5379 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.4898, allocations: 9.062 kB / 0.5379 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002211/0.49, allocations: 177.8 kB / 0.5381 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.4902, allocations: 209.8 kB / 0.5383 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.4915, allocations: 0.7129 MB / 0.539 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.498e-05/0.4916, allocations: 82.52 kB / 0.5391 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.4917, allocations: 106.5 kB / 0.5392 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.4938, allocations: 1.188 MB / 0.5403 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.4938, allocations: 5.031 kB / 0.5404 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.955e-05/0.4939, allocations: 49.59 kB / 0.5404 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.4939, allocations: 26.59 kB / 0.5404 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.4959, allocations: 1.115 MB / 0.5415 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006358/0.5023, allocations: 3.621 MB / 0.5451 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.5043, allocations: 1.33 MB / 0.5464 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.505, allocations: 470.5 kB / 0.5468 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000176/0.5052, allocations: 29.3 kB / 0.5468 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.5062, allocations: 0.547 MB / 0.5474 GB, free: 10.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.935e-06/0.5062, allocations: 7.938 kB / 0.5474 GB, free: 10.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002616/0.5088, allocations: 1.579 MB / 0.5489 GB, free: 10.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.5089, allocations: 64 kB / 0.549 GB, free: 10.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/0.5111, allocations: 1.301 MB / 0.5502 GB, free: 8.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.539e-05/0.5111, allocations: 41.7 kB / 0.5503 GB, free: 8.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008722/0.512, allocations: 0.7883 MB / 0.5511 GB, free: 7.941 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.5123, allocations: 245.9 kB / 0.5513 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.5125, allocations: 126.6 kB / 0.5514 GB, free: 7.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5126, allocations: 338 kB / 0.5517 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006806/0.5133, allocations: 441.8 kB / 0.5522 GB, free: 6.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/0.514, allocations: 0.5523 MB / 0.5527 GB, free: 6.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.5156, allocations: 1.043 MB / 0.5537 GB, free: 5.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.5156, allocations: 0 / 0.5537 GB, free: 5.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001978/0.5176, allocations: 1.23 MB / 0.5549 GB, free: 3.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.59e-05/0.5176, allocations: 8 kB / 0.5549 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.5176, allocations: 3.984 kB / 0.5549 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.5177, allocations: 8 kB / 0.5549 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.5181, allocations: 135.8 kB / 0.5551 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.5182, allocations: 11.92 kB / 0.5551 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.5185, allocations: 59.91 kB / 0.5551 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.303e-05/0.5185, allocations: 32 kB / 0.5552 GB, free: 3.641 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.0007847/0.5193, allocations: 373.5 kB / 0.5555 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/0.5196, allocations: 151 kB / 0.5557 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.5215, allocations: 1.242 MB / 0.5569 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.5215, allocations: 11.94 kB / 0.5569 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.5215, allocations: 4 kB / 0.5569 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.5215, allocations: 3.984 kB / 0.5569 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003511/0.5251, allocations: 2.385 MB / 0.5592 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5251, allocations: 0 / 0.5592 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005859/0.5257, allocations: 119.8 kB / 0.5593 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.29e-05/0.5257, allocations: 7.938 kB / 0.5593 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.5257, allocations: 16 kB / 0.5594 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.5257, allocations: 4 kB / 0.5594 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5257, allocations: 3.938 kB / 0.5594 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.5284, allocations: 1.937 MB / 0.5613 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/0.5287, allocations: 182.8 kB / 0.5614 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.952e-05/0.5288, allocations: 16.11 kB / 0.5614 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.529, allocations: 20 kB / 0.5615 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.951e-05/0.5291, allocations: 44.56 kB / 0.5615 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.5292, allocations: 16 kB / 0.5615 GB, free: 13.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001502/0.5307, allocations: 0.9047 MB / 0.5624 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5307, allocations: 0 / 0.5624 GB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000881/0.5316, allocations: 219.2 kB / 0.5626 GB, free: 11.9 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.003349/0.5349, allocations: 2.503 MB / 0.5651 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.5366, allocations: 0.9971 MB / 0.566 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5366, allocations: 0 / 0.566 GB, free: 8.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006971/0.5373, allocations: 0.5112 MB / 0.5665 GB, free: 7.867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.5382, allocations: 97.17 kB / 0.5666 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.5582, allocations: 11.72 MB / 0.5781 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.5595, allocations: 1.315 MB / 0.5794 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003057/0.5598, allocations: 80.48 kB / 0.5794 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007482/0.5606, allocations: 0.593 MB / 0.58 GB, free: 9.859 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.5606, allocations: 0 / 0.58 GB, free: 9.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07008/0.6307, allocations: 19.45 MB / 0.599 GB, free: 6.508 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/14.81, allocations: 6.406 kB / 0.599 GB, free: 6.504 MB / 446.1 MB " [Timeout remaining time 645] (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: 18.02345618599793] Failed to read output from testmodel.py, exit status != 0: 14.933447749001061 14.962625411 14.469756965 Calling exit ...