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.0007537/0.0007537, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007506/0.0007506, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 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 0.8214/0.8214, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.1137/0.1137, allocations: 21.79 MB / 281.7 MB, free: 7.402 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 419 MB, free: 8.871 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.52e-05/2.756e-05, allocations: 2.281 kB / 419 MB, free: 8.867 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003121/0.003148, allocations: 3.103 MB / 422.1 MB, free: 5.754 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.004182, allocations: 0.7596 MB / 422.9 MB, free: 4.992 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.004432, allocations: 23.88 kB / 422.9 MB, free: 4.969 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.004726, allocations: 182.2 kB / 423.1 MB, free: 4.789 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.004937, allocations: 138.7 kB / 423.2 MB, free: 4.652 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.005493, allocations: 383.4 kB / 423.6 MB, free: 4.277 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.006026, allocations: 0.86 MB / 424.5 MB, free: 3.414 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007766/0.006802, allocations: 476.2 kB / 424.9 MB, free: 2.914 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.007093, allocations: 0.5104 MB / 425.4 MB, free: 2.402 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.007335, allocations: 298.8 kB / 425.7 MB, free: 2.109 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/0.00743, allocations: 88 kB / 425.8 MB, free: 2.023 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.007568, allocations: 115.9 kB / 425.9 MB, free: 1.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.007811, allocations: 466.3 kB / 426.4 MB, free: 1.453 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.007978, allocations: 326.6 kB / 426.7 MB, free: 1.133 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007803/0.008758, allocations: 1.233 MB / 427.9 MB, free: 15.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.00876, allocations: 0 / 427.9 MB, free: 15.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.008761, allocations: 0 / 427.9 MB, free: 15.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.008771, allocations: 0 / 427.9 MB, free: 15.89 MB / 410.7 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.001375/0.01015, allocations: 1.77 MB / 429.7 MB, free: 14.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.01018, allocations: 12.03 kB / 429.7 MB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.01032, allocations: 207.6 kB / 429.9 MB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.01091, allocations: 0.7149 MB / 430.6 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.01095, allocations: 82.47 kB / 430.7 MB, free: 13.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.547e-05/0.01103, allocations: 100.4 kB / 430.8 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/0.01201, allocations: 1.17 MB / 432 MB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.01202, allocations: 4.188 kB / 432 MB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.01206, allocations: 44.38 kB / 432 MB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.01208, allocations: 24.38 kB / 432.1 MB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.01327, allocations: 1.113 MB / 433.2 MB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.01566, allocations: 3.248 MB / 436.4 MB, free: 7.164 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.0167, allocations: 1.332 MB / 437.8 MB, free: 5.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003505/0.01705, allocations: 478.6 kB / 438.2 MB, free: 5.352 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.101e-05/0.0171, allocations: 28.58 kB / 438.2 MB, free: 5.324 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.01754, allocations: 0.5471 MB / 438.8 MB, free: 4.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 2.284e-06/0.01754, allocations: 0 / 438.8 MB, free: 4.762 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.001478/0.01902, allocations: 1.575 MB / 440.4 MB, free: 3.184 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.01905, allocations: 60.06 kB / 440.4 MB, free: 3.109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008476/0.0199, allocations: 1.291 MB / 441.7 MB, free: 1.809 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.01993, allocations: 37.7 kB / 441.8 MB, free: 1.766 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003673/0.0203, allocations: 0.7648 MB / 442.5 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.02041, allocations: 250 kB / 442.8 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.02051, allocations: 122.7 kB / 442.9 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.575e-05/0.02059, allocations: 330 kB / 443.2 MB, free: 296 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1456/0.1662, allocations: 450.8 kB / 443.6 MB, free: 64.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.1667, allocations: 0.5487 MB / 444.2 MB, free: 63.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/0.1674, allocations: 1.048 MB / 445.2 MB, free: 63.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1674, allocations: 5.562 kB / 445.2 MB, free: 63.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0009301/0.1684, allocations: 1.225 MB / 446.5 MB, free: 63.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1684, allocations: 6.562 kB / 446.5 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1684, allocations: 3.25 kB / 446.5 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1684, allocations: 6.219 kB / 446.5 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002573/0.1687, allocations: 145 kB / 446.6 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1687, allocations: 6.406 kB / 446.6 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.1688, allocations: 51.25 kB / 446.7 MB, free: 63.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1688, allocations: 30.12 kB / 446.7 MB, free: 63.68 MB / 410.7 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.0004068/0.1692, allocations: 382.5 kB / 447.1 MB, free: 63.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.182e-05/0.1693, allocations: 150.5 kB / 447.2 MB, free: 63.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009019/0.1702, allocations: 1.239 MB / 448.5 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.1702, allocations: 9.438 kB / 448.5 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1702, allocations: 0 / 448.5 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.1702, allocations: 3.328 kB / 448.5 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.1716, allocations: 2.191 MB / 450.7 MB, free: 62.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1716, allocations: 0 / 450.7 MB, free: 62.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.1719, allocations: 118.8 kB / 450.8 MB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1719, allocations: 3.188 kB / 450.8 MB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.1719, allocations: 17.7 kB / 450.8 MB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.1719, allocations: 0 / 450.8 MB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1719, allocations: 5.844 kB / 450.8 MB, free: 62.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.173, allocations: 1.934 MB / 452.8 MB, free: 61.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.1732, allocations: 179 kB / 452.9 MB, free: 61.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.1732, allocations: 16.11 kB / 452.9 MB, free: 61.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1733, allocations: 15.09 kB / 453 MB, free: 61.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.1734, allocations: 44.97 kB / 453 MB, free: 61.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1734, allocations: 22 kB / 453 MB, free: 61.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005193/0.1739, allocations: 0.8913 MB / 453.9 MB, free: 61.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1739, allocations: 0 / 453.9 MB, free: 61.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.1743, allocations: 216 kB / 454.1 MB, free: 61.25 MB / 410.7 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.000146/0.1744, allocations: 114.7 kB / 454.2 MB, free: 61.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006815/0.1751, allocations: 0.9986 MB / 455.2 MB, free: 60.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1751, allocations: 0 / 455.2 MB, free: 60.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.1754, allocations: 0.5102 MB / 455.8 MB, free: 60.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.1758, allocations: 89.48 kB / 455.8 MB, free: 60.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.1777, allocations: 2.867 MB / 458.7 MB, free: 59.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.1781, allocations: 0.7229 MB / 459.4 MB, free: 59.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.1782, allocations: 59.47 kB / 459.5 MB, free: 59.29 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1782, allocations: 0 / 459.5 MB, free: 59.29 MB / 410.7 MB Notification: Performance of Templates: time 0.00813/0.1863, allocations: 11.79 MB / 471.3 MB, free: 57.86 MB / 410.7 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: 4.656717228703201] Failed to read output from testmodel.py, exit status != 0: 0.19241411052644253 0.20040856299999996 0.18990462599999994 Calling exit ...