Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.00141/0.00141, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001571/0.001571, allocations: 213.2 kB / 23 MB, free: 4.605 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.336/1.336, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 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.1741/0.1741, allocations: 29.22 MB / 342.4 MB, free: 5.812 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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") [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.001832/0.001832, allocations: 71.88 kB / 479.7 MB, free: 8 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2594, allocations: 60.8 MB / 0.5278 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003524/0.2629, allocations: 3.272 MB / 0.531 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.264, allocations: 0.5371 MB / 0.5315 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.2642, allocations: 10.56 kB / 0.5315 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.2645, allocations: 142 kB / 0.5317 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.2648, allocations: 130.6 kB / 0.5318 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.2653, allocations: 284.5 kB / 0.5321 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.2659, allocations: 0.7233 MB / 0.5328 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.2663, allocations: 379.7 kB / 0.5331 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.2665, allocations: 319.5 kB / 0.5335 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.2668, allocations: 400 kB / 0.5338 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.2669, allocations: 76.25 kB / 0.5339 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.2671, allocations: 105.1 kB / 0.534 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002979/0.2674, allocations: 445 kB / 0.5344 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.2677, allocations: 0.5785 MB / 0.535 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000935/0.2686, allocations: 1.14 MB / 0.5361 GB, free: 2.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2686, allocations: 0 / 0.5361 GB, free: 2.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2686, allocations: 1.406 kB / 0.5361 GB, free: 2.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.2687, allocations: 0 / 0.5361 GB, free: 2.941 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001636/0.2703, allocations: 1.703 MB / 0.5378 GB, free: 1.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.2703, allocations: 9.625 kB / 0.5378 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2705, allocations: 202.2 kB / 0.538 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.2708, allocations: 0.5221 MB / 0.5385 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/0.2709, allocations: 78.56 kB / 0.5386 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.271, allocations: 96.09 kB / 0.5387 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2725, allocations: 1.074 MB / 0.5397 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.2725, allocations: 192 / 0.5397 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.2726, allocations: 44.25 kB / 0.5397 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.489e-05/0.2726, allocations: 53.5 kB / 0.5398 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.2741, allocations: 1.223 MB / 0.541 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.2782, allocations: 2.768 MB / 0.5437 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.2795, allocations: 0.978 MB / 0.5447 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006015/0.2801, allocations: 494.2 kB / 0.5451 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.84e-05/0.2802, allocations: 40.33 kB / 0.5452 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.2802, allocations: 38.5 kB / 0.5452 GB, free: 13.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.2802, allocations: 0 / 0.5452 GB, free: 13.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00213/0.2823, allocations: 1.601 MB / 0.5468 GB, free: 13.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.2824, allocations: 62.22 kB / 0.5468 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.2838, allocations: 1.26 MB / 0.548 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.2839, allocations: 33.7 kB / 0.5481 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.2845, allocations: 0.7873 MB / 0.5489 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.2847, allocations: 245.9 kB / 0.5491 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.2848, allocations: 130.6 kB / 0.5492 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.285, allocations: 338 kB / 0.5495 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006397/0.2856, allocations: 477.7 kB / 0.55 GB, free: 10.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007771/0.2864, allocations: 0.6599 MB / 0.5506 GB, free: 9.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003929/0.2903, allocations: 2.118 MB / 0.5527 GB, free: 7.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.2903, allocations: 4 kB / 0.5527 GB, free: 7.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00185/0.2922, allocations: 1.339 MB / 0.554 GB, free: 6.082 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2922, allocations: 8.688 kB / 0.554 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2922, allocations: 8 kB / 0.554 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.2922, allocations: 12 kB / 0.554 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005534/0.2928, allocations: 183.7 kB / 0.5542 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.2928, allocations: 11.94 kB / 0.5542 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.2932, allocations: 87.42 kB / 0.5543 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.2932, allocations: 32 kB / 0.5543 GB, free: 5.746 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0007538/0.294, allocations: 391.3 kB / 0.5547 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.2942, allocations: 143 kB / 0.5548 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.2959, allocations: 1.257 MB / 0.5561 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2959, allocations: 8 kB / 0.5561 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2959, allocations: 3.938 kB / 0.5561 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.2959, allocations: 3.984 kB / 0.5561 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.2989, allocations: 2.345 MB / 0.5584 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2989, allocations: 4 kB / 0.5584 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/0.2994, allocations: 127.8 kB / 0.5585 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/0.2994, allocations: 11.88 kB / 0.5585 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.2994, allocations: 12 kB / 0.5585 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.2994, allocations: 4 kB / 0.5585 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2994, allocations: 4 kB / 0.5585 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.3018, allocations: 1.949 MB / 0.5604 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.302, allocations: 131 kB / 0.5606 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.302, allocations: 12 kB / 0.5606 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3023, allocations: 23.98 kB / 0.5606 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.3024, allocations: 52.56 kB / 0.5607 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/0.3024, allocations: 23.98 kB / 0.5607 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3035, allocations: 0.8638 MB / 0.5615 GB, free: 14.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3035, allocations: 0 / 0.5615 GB, free: 14.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006237/0.3042, allocations: 219.2 kB / 0.5617 GB, free: 14.08 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.00019/0.3044, allocations: 113 kB / 0.5618 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.3058, allocations: 1.065 MB / 0.5629 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3058, allocations: 4.062 kB / 0.5629 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006912/0.3065, allocations: 0.5307 MB / 0.5634 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.307, allocations: 65.09 kB / 0.5635 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.311, allocations: 2.87 MB / 0.5663 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.3121, allocations: 1.295 MB / 0.5675 GB, free: 8.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.3123, allocations: 71.42 kB / 0.5676 GB, free: 7.992 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3123, allocations: 0 / 0.5676 GB, free: 7.992 MB / 414.1 MB Notification: Performance of Templates: time 0.01673/0.329, allocations: 10.84 MB / 0.5782 GB, free: 13.14 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.02576802787371] Failed to read output from testmodel.py, exit status != 0: 0.33724017813801765 0.350889644 0.079489865 Calling exit ...