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.001671/0.001671, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001772/0.001772, allocations: 222.8 kB / 23 MB, free: 4.914 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.2022/0.2022, allocations: 29.23 MB / 342.4 MB, free: 5.582 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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [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.002096/0.002096, allocations: 67.89 kB / 479.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3967, allocations: 60.79 MB / 0.5277 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004557/0.4013, allocations: 3.113 MB / 0.5308 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.403, allocations: 0.7598 MB / 0.5315 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003604/0.4034, allocations: 22.41 kB / 0.5315 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000432/0.4038, allocations: 172.4 kB / 0.5317 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003134/0.4041, allocations: 133.5 kB / 0.5318 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008027/0.4049, allocations: 387.2 kB / 0.5322 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008695/0.4058, allocations: 0.8509 MB / 0.533 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007178/0.4065, allocations: 477 kB / 0.5335 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004628/0.407, allocations: 355.2 kB / 0.5338 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.4075, allocations: 389.9 kB / 0.5342 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.4077, allocations: 86.38 kB / 0.5343 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002938/0.408, allocations: 116.2 kB / 0.5344 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005316/0.4085, allocations: 450 kB / 0.5348 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003999/0.4089, allocations: 467.5 kB / 0.5353 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.4106, allocations: 1.293 MB / 0.5365 GB, free: 2.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4106, allocations: 1.219 kB / 0.5365 GB, free: 2.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4106, allocations: 0 / 0.5365 GB, free: 2.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.4106, allocations: 0 / 0.5365 GB, free: 2.633 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.002143/0.4128, allocations: 1.789 MB / 0.5383 GB, free: 1.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.4128, allocations: 13.62 kB / 0.5383 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.413, allocations: 209.1 kB / 0.5385 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008799/0.4139, allocations: 0.7052 MB / 0.5392 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.298e-05/0.414, allocations: 80.88 kB / 0.5393 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.4141, allocations: 105 kB / 0.5394 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.4158, allocations: 1.188 MB / 0.5405 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.4158, allocations: 1.312 kB / 0.5405 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.101e-05/0.4159, allocations: 45.5 kB / 0.5406 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.4159, allocations: 25 kB / 0.5406 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.4175, allocations: 1.1 MB / 0.5417 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005366/0.4229, allocations: 3.28 MB / 0.5449 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.4248, allocations: 1.327 MB / 0.5462 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.4255, allocations: 475 kB / 0.5466 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.307e-05/0.4256, allocations: 25.23 kB / 0.5466 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008108/0.4264, allocations: 0.5429 MB / 0.5472 GB, free: 12.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.986e-06/0.4264, allocations: 0 / 0.5472 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002417/0.4288, allocations: 1.579 MB / 0.5487 GB, free: 11.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.4289, allocations: 68.05 kB / 0.5488 GB, free: 11.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.4307, allocations: 1.28 MB / 0.55 GB, free: 9.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.4308, allocations: 37.7 kB / 0.5501 GB, free: 9.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007566/0.4315, allocations: 0.7609 MB / 0.5508 GB, free: 9.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.4318, allocations: 266 kB / 0.5511 GB, free: 8.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.432, allocations: 122.7 kB / 0.5512 GB, free: 8.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.4322, allocations: 329.9 kB / 0.5515 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.4327, allocations: 445.8 kB / 0.5519 GB, free: 7.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006906/0.4334, allocations: 0.5562 MB / 0.5525 GB, free: 7.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.435, allocations: 1.047 MB / 0.5535 GB, free: 6.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.435, allocations: 4 kB / 0.5535 GB, free: 6.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00168/0.4367, allocations: 1.226 MB / 0.5547 GB, free: 5.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.4367, allocations: 4 kB / 0.5547 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.4367, allocations: 4 kB / 0.5547 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.4367, allocations: 8 kB / 0.5547 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.4372, allocations: 140.2 kB / 0.5548 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.4372, allocations: 11.92 kB / 0.5548 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.4375, allocations: 51.62 kB / 0.5549 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.4376, allocations: 27.98 kB / 0.5549 GB, free: 4.812 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.000801/0.4384, allocations: 385.4 kB / 0.5553 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.4386, allocations: 147 kB / 0.5554 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.4403, allocations: 1.234 MB / 0.5566 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.4403, allocations: 12 kB / 0.5566 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4403, allocations: 0 / 0.5566 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.4403, allocations: 7.969 kB / 0.5566 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.4433, allocations: 2.191 MB / 0.5588 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4434, allocations: 0 / 0.5588 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004541/0.4438, allocations: 115.8 kB / 0.5589 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.4438, allocations: 4 kB / 0.5589 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.983e-05/0.4439, allocations: 20 kB / 0.5589 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.4439, allocations: 0 / 0.5589 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4439, allocations: 0 / 0.5589 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.4462, allocations: 1.953 MB / 0.5608 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.4466, allocations: 182.9 kB / 0.561 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.446e-05/0.4467, allocations: 12 kB / 0.561 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.4469, allocations: 16 kB / 0.561 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.447, allocations: 44.56 kB / 0.5611 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.447, allocations: 16 kB / 0.5611 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001215/0.4482, allocations: 0.8844 MB / 0.5619 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4482, allocations: 0 / 0.5619 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006406/0.4489, allocations: 219.1 kB / 0.5622 GB, free: 13.31 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.0002171/0.4491, allocations: 123.2 kB / 0.5623 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.4506, allocations: 0.9933 MB / 0.5632 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4506, allocations: 0 / 0.5632 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/0.4512, allocations: 0.5074 MB / 0.5637 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.4518, allocations: 89.53 kB / 0.5638 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004366/0.4562, allocations: 2.913 MB / 0.5667 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008504/0.457, allocations: 0.7175 MB / 0.5674 GB, free: 7.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.4572, allocations: 55.42 kB / 0.5674 GB, free: 7.848 MB / 414.1 MB Notification: Performance of SimCode: time 1.223e-06/0.4572, allocations: 0 / 0.5674 GB, free: 7.848 MB / 414.1 MB Notification: Performance of Templates: time 0.02166/0.4789, allocations: 11.79 MB / 0.5789 GB, free: 12.04 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (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 & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.08804141310975] Failed to read output from testmodel.py, exit status != 0: 0.4885485926643014 0.503003411 0.08930803400000001 Calling exit ...