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.001299/0.001299, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001399/0.001399, allocations: 209.6 kB / 22.99 MB, free: 4.957 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.434/1.434, 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.1927/0.1927, 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_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.001992/0.001992, allocations: 63.91 kB / 479.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3665, allocations: 60.79 MB / 0.5277 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004027/0.3705, allocations: 2.75 MB / 0.5304 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.372, allocations: 0.5363 MB / 0.5309 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000316/0.3724, allocations: 11.75 kB / 0.531 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.3727, allocations: 145.8 kB / 0.5311 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.3731, allocations: 126.5 kB / 0.5312 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007302/0.3738, allocations: 290.2 kB / 0.5315 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007477/0.3745, allocations: 0.7196 MB / 0.5322 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005598/0.3751, allocations: 375.3 kB / 0.5326 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.3754, allocations: 319.6 kB / 0.5329 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.3757, allocations: 400 kB / 0.5332 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.3759, allocations: 76.12 kB / 0.5333 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.3761, allocations: 112.9 kB / 0.5334 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003936/0.3765, allocations: 445 kB / 0.5338 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.3768, allocations: 440.8 kB / 0.5343 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.378, allocations: 1.163 MB / 0.5354 GB, free: 3.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.378, allocations: 1.5 kB / 0.5354 GB, free: 3.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.378, allocations: 4 kB / 0.5354 GB, free: 3.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.378, allocations: 0 / 0.5354 GB, free: 3.484 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.001931/0.38, allocations: 1.704 MB / 0.5371 GB, free: 2.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.38, allocations: 9.625 kB / 0.5371 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.3802, allocations: 198.2 kB / 0.5373 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.3806, allocations: 0.5223 MB / 0.5378 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.854e-05/0.3806, allocations: 75.62 kB / 0.5379 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3807, allocations: 95.62 kB / 0.5379 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3823, allocations: 1.078 MB / 0.539 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.3823, allocations: 1.656 kB / 0.539 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.3824, allocations: 43.97 kB / 0.539 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.026e-05/0.3824, allocations: 53.19 kB / 0.5391 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.384, allocations: 1.212 MB / 0.5403 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.3881, allocations: 2.474 MB / 0.5427 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.3895, allocations: 0.9679 MB / 0.5436 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006958/0.3902, allocations: 494.7 kB / 0.5441 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.3903, allocations: 35.88 kB / 0.5441 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3904, allocations: 39.44 kB / 0.5442 GB, free: 14.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.495e-06/0.3904, allocations: 0 / 0.5442 GB, free: 14.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002511/0.3929, allocations: 1.596 MB / 0.5457 GB, free: 13.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.3929, allocations: 62.25 kB / 0.5458 GB, free: 13.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.3945, allocations: 1.245 MB / 0.547 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.3946, allocations: 33.7 kB / 0.547 GB, free: 13.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006295/0.3952, allocations: 0.7754 MB / 0.5478 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.3954, allocations: 246.1 kB / 0.548 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.3956, allocations: 130.6 kB / 0.5482 GB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3958, allocations: 334 kB / 0.5485 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006776/0.3965, allocations: 473.7 kB / 0.5489 GB, free: 11.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008331/0.3973, allocations: 0.656 MB / 0.5496 GB, free: 10.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004238/0.4015, allocations: 2.133 MB / 0.5517 GB, free: 8.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.4015, allocations: 0 / 0.5517 GB, free: 8.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002065/0.4036, allocations: 1.344 MB / 0.553 GB, free: 6.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.4036, allocations: 8.094 kB / 0.553 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4036, allocations: 11.94 kB / 0.553 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/0.4037, allocations: 8 kB / 0.553 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005891/0.4042, allocations: 179.7 kB / 0.5532 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.461e-05/0.4043, allocations: 15.92 kB / 0.5532 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.4047, allocations: 83.44 kB / 0.5533 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-05/0.4048, allocations: 36 kB / 0.5533 GB, free: 6.52 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.0009313/0.4057, allocations: 391.4 kB / 0.5537 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.4059, allocations: 143 kB / 0.5538 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.4077, allocations: 1.249 MB / 0.555 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.4077, allocations: 12 kB / 0.555 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4077, allocations: 0 / 0.555 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.4077, allocations: 3.984 kB / 0.555 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003076/0.4108, allocations: 2.155 MB / 0.5571 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.4108, allocations: 0 / 0.5571 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.4113, allocations: 135.8 kB / 0.5573 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/0.4113, allocations: 3.984 kB / 0.5573 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.4114, allocations: 19.98 kB / 0.5573 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.4114, allocations: 0 / 0.5573 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4114, allocations: 0 / 0.5573 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.4139, allocations: 1.952 MB / 0.5592 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.4141, allocations: 126.9 kB / 0.5593 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.4142, allocations: 15.98 kB / 0.5593 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.4144, allocations: 23.98 kB / 0.5594 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.4145, allocations: 48.56 kB / 0.5594 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.4146, allocations: 20 kB / 0.5594 GB, free: 160 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.4157, allocations: 0.8553 MB / 0.5603 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4157, allocations: 0 / 0.5603 GB, free: 15.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.4164, allocations: 215.2 kB / 0.5605 GB, free: 15.09 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.0002058/0.4166, allocations: 119.2 kB / 0.5606 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.4182, allocations: 1.064 MB / 0.5616 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4182, allocations: 0 / 0.5616 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007093/0.419, allocations: 0.5277 MB / 0.5621 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.4195, allocations: 69.06 kB / 0.5622 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.4237, allocations: 2.778 MB / 0.5649 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007884/0.4245, allocations: 0.7046 MB / 0.5656 GB, free: 9.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.4249, allocations: 128.2 kB / 0.5657 GB, free: 9.621 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.425, allocations: 55.44 kB / 0.5658 GB, free: 9.566 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.425, allocations: 0 / 0.5658 GB, free: 9.566 MB / 414.1 MB Notification: Performance of Templates: time 0.01453/0.4396, allocations: 6.18 MB / 0.5718 GB, free: 3.391 MB / 414.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.120764282997698] Failed to read output from testmodel.py, exit status != 0: 0.4480925879906863 0.462124394 0.081127634 Calling exit ...