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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 112.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 190.2 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1797/0.1797, allocations: 29.23 MB / 335.5 MB, free: 11.33 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 67.89 kB / 470.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2766, allocations: 59.6 MB / 0.5176 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003369/0.28, allocations: 3.276 MB / 0.5208 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.281, allocations: 0.5317 MB / 0.5213 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002289/0.2813, allocations: 11.53 kB / 0.5213 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.2815, allocations: 154 kB / 0.5215 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.2818, allocations: 118.3 kB / 0.5216 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.2823, allocations: 288.8 kB / 0.5219 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.2829, allocations: 0.7234 MB / 0.5226 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004483/0.2833, allocations: 383.1 kB / 0.5229 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.2835, allocations: 315.7 kB / 0.5232 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.2838, allocations: 401.5 kB / 0.5236 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.2839, allocations: 75.16 kB / 0.5237 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.2841, allocations: 109.7 kB / 0.5238 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.2844, allocations: 444.4 kB / 0.5242 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002775/0.2847, allocations: 0.5745 MB / 0.5248 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009727/0.2857, allocations: 1.148 MB / 0.5259 GB, free: 4.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2857, allocations: 0 / 0.5259 GB, free: 4.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.2857, allocations: 0 / 0.5259 GB, free: 4.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.2857, allocations: 0 / 0.5259 GB, free: 4.688 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.001768/0.2874, allocations: 1.701 MB / 0.5276 GB, free: 3.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.2875, allocations: 8.844 kB / 0.5276 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.2876, allocations: 199.2 kB / 0.5278 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.288, allocations: 0.5229 MB / 0.5283 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.473e-05/0.2881, allocations: 74.69 kB / 0.5284 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.2882, allocations: 100.7 kB / 0.5284 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.2899, allocations: 1.083 MB / 0.5295 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.2899, allocations: 192 / 0.5295 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.29, allocations: 47.94 kB / 0.5296 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.643e-05/0.29, allocations: 55.42 kB / 0.5296 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.2916, allocations: 1.213 MB / 0.5308 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.2952, allocations: 2.765 MB / 0.5335 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.2964, allocations: 0.968 MB / 0.5344 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005845/0.297, allocations: 0.489 MB / 0.5349 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.731e-05/0.297, allocations: 29.12 kB / 0.5349 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.311e-05/0.297, allocations: 43.02 kB / 0.535 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 1.623e-06/0.297, allocations: 0 / 0.535 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.001976/0.299, allocations: 1.593 MB / 0.5365 GB, free: 288 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.235e-05/0.299, allocations: 66.12 kB / 0.5366 GB, free: 216 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.3004, allocations: 1.259 MB / 0.5378 GB, free: 15.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/0.3004, allocations: 40.23 kB / 0.5379 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005962/0.301, allocations: 0.7889 MB / 0.5386 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.3012, allocations: 242.3 kB / 0.5389 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3014, allocations: 131 kB / 0.539 GB, free: 14.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3015, allocations: 335 kB / 0.5393 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006235/0.3021, allocations: 480.6 kB / 0.5398 GB, free: 14.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007715/0.3029, allocations: 0.6502 MB / 0.5404 GB, free: 13.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003968/0.3069, allocations: 2.125 MB / 0.5425 GB, free: 13.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3069, allocations: 1.969 kB / 0.5425 GB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001766/0.3086, allocations: 1.344 MB / 0.5438 GB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3087, allocations: 10.56 kB / 0.5438 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3087, allocations: 6.375 kB / 0.5438 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3087, allocations: 17.05 kB / 0.5438 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005637/0.3093, allocations: 172.9 kB / 0.544 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.3093, allocations: 17.05 kB / 0.544 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.3096, allocations: 82.16 kB / 0.5441 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/0.3097, allocations: 40.75 kB / 0.5441 GB, free: 12.39 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.0005848/0.3103, allocations: 393.6 kB / 0.5445 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.3104, allocations: 151.4 kB / 0.5446 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.3121, allocations: 1.251 MB / 0.5459 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3121, allocations: 5.969 kB / 0.5459 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3121, allocations: 1.062 kB / 0.5459 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3121, allocations: 3.984 kB / 0.5459 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/0.315, allocations: 2.346 MB / 0.5482 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.315, allocations: 0 / 0.5482 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000496/0.3155, allocations: 131.8 kB / 0.5483 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3155, allocations: 4 kB / 0.5483 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.3155, allocations: 16 kB / 0.5483 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.3155, allocations: 3.938 kB / 0.5483 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3155, allocations: 4 kB / 0.5483 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.3179, allocations: 1.952 MB / 0.5502 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.3181, allocations: 122.9 kB / 0.5503 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.441e-05/0.3181, allocations: 12.06 kB / 0.5504 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.3184, allocations: 27.97 kB / 0.5504 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-05/0.3185, allocations: 48.52 kB / 0.5504 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.3185, allocations: 23.98 kB / 0.5505 GB, free: 7.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009916/0.3195, allocations: 0.8716 MB / 0.5513 GB, free: 6.551 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3195, allocations: 0 / 0.5513 GB, free: 6.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005566/0.3201, allocations: 215.2 kB / 0.5515 GB, free: 6.34 MB / 398.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.0001517/0.3202, allocations: 119.1 kB / 0.5516 GB, free: 6.211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.3217, allocations: 1.065 MB / 0.5527 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3217, allocations: 0 / 0.5527 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006991/0.3224, allocations: 0.5307 MB / 0.5532 GB, free: 4.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.3228, allocations: 61.09 kB / 0.5532 GB, free: 4.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003672/0.3265, allocations: 2.79 MB / 0.556 GB, free: 1.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009097/0.3274, allocations: 1.295 MB / 0.5572 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003157/0.3277, allocations: 120.3 kB / 0.5573 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.3279, allocations: 59.42 kB / 0.5574 GB, free: 232 kB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3279, allocations: 0 / 0.5574 GB, free: 232 kB / 398.1 MB Notification: Performance of Templates: time 0.01232/0.3402, allocations: 5.779 MB / 0.563 GB, free: 10.44 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.496751783415675] Failed to read output from testmodel.py, exit status != 0: 0.34766689594835043 0.361228449 0.072655697 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc921fd17b0>