Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001467/0.001467, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001608/0.001608, allocations: 216.4 kB / 23.01 MB, free: 4.566 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.327/1.327, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.1805/0.1805, allocations: 29.22 MB / 342.4 MB, free: 5.809 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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") [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.0019/0.0019, allocations: 71.89 kB / 479.7 MB, free: 40 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2769, allocations: 60.8 MB / 0.5278 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003858/0.2808, allocations: 3.661 MB / 0.5314 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.2821, allocations: 0.6742 MB / 0.532 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.2823, allocations: 19.16 kB / 0.5321 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003513/0.2827, allocations: 175.3 kB / 0.5322 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.283, allocations: 132.6 kB / 0.5324 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.2836, allocations: 359.8 kB / 0.5327 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000668/0.2842, allocations: 0.8406 MB / 0.5335 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005642/0.2848, allocations: 0.4922 MB / 0.534 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.285, allocations: 345 kB / 0.5343 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/0.2853, allocations: 429.2 kB / 0.5347 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.2854, allocations: 85.38 kB / 0.5348 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.2856, allocations: 114.8 kB / 0.5349 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003086/0.2859, allocations: 444.4 kB / 0.5354 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.2862, allocations: 0.6082 MB / 0.5359 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.2872, allocations: 1.257 MB / 0.5372 GB, free: 2.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2872, allocations: 0 / 0.5372 GB, free: 2.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2872, allocations: 4 kB / 0.5372 GB, free: 2.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.2873, allocations: 3.938 kB / 0.5372 GB, free: 2.121 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001614/0.2889, allocations: 1.767 MB / 0.5389 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.2889, allocations: 9.719 kB / 0.5389 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.2891, allocations: 211.1 kB / 0.5391 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006844/0.2898, allocations: 0.7032 MB / 0.5398 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.2898, allocations: 79.69 kB / 0.5399 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.2899, allocations: 103.8 kB / 0.54 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.2914, allocations: 1.157 MB / 0.5411 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.2914, allocations: 192 / 0.5411 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.48e-05/0.2915, allocations: 50.22 kB / 0.5412 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.2915, allocations: 25.44 kB / 0.5412 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.2929, allocations: 1.098 MB / 0.5423 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0042/0.2971, allocations: 3.571 MB / 0.5457 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.2986, allocations: 1.298 MB / 0.547 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/0.2991, allocations: 465.2 kB / 0.5475 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.186e-05/0.2992, allocations: 28.64 kB / 0.5475 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.2992, allocations: 38.12 kB / 0.5475 GB, free: 11.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 1.863e-06/0.2992, allocations: 4 kB / 0.5475 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001809/0.301, allocations: 1.525 MB / 0.549 GB, free: 11.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.3011, allocations: 59.09 kB / 0.5491 GB, free: 11.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.3026, allocations: 1.291 MB / 0.5503 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.3026, allocations: 33.7 kB / 0.5504 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006251/0.3032, allocations: 0.7805 MB / 0.5511 GB, free: 9.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3034, allocations: 245.8 kB / 0.5514 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.3036, allocations: 114.3 kB / 0.5515 GB, free: 8.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3037, allocations: 333.9 kB / 0.5518 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005348/0.3043, allocations: 437.1 kB / 0.5522 GB, free: 8.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006194/0.3049, allocations: 0.5277 MB / 0.5527 GB, free: 7.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.306, allocations: 0.9982 MB / 0.5537 GB, free: 6.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.306, allocations: 0 / 0.5537 GB, free: 6.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001449/0.3075, allocations: 1.195 MB / 0.5549 GB, free: 5.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3075, allocations: 4 kB / 0.5549 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.3075, allocations: 4 kB / 0.5549 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3075, allocations: 7.984 kB / 0.5549 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.308, allocations: 131.8 kB / 0.555 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.308, allocations: 4 kB / 0.555 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3082, allocations: 51.56 kB / 0.5551 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.3083, allocations: 31.98 kB / 0.5551 GB, free: 4.984 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (82): * Single equations (assignments): 82 * 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.0005397/0.3088, allocations: 379.7 kB / 0.5554 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.309, allocations: 147 kB / 0.5556 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.3105, allocations: 1.192 MB / 0.5567 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3105, allocations: 8 kB / 0.5568 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3105, allocations: 3.938 kB / 0.5568 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3105, allocations: 3.984 kB / 0.5568 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.3134, allocations: 2.334 MB / 0.559 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3134, allocations: 0 / 0.559 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004274/0.3138, allocations: 111.9 kB / 0.5591 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3138, allocations: 7.938 kB / 0.5592 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.279e-05/0.3139, allocations: 15.98 kB / 0.5592 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3139, allocations: 0 / 0.5592 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3139, allocations: 4 kB / 0.5592 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.316, allocations: 1.879 MB / 0.561 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.3162, allocations: 130.9 kB / 0.5611 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.3163, allocations: 16.05 kB / 0.5612 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.3165, allocations: 16 kB / 0.5612 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.973e-05/0.3166, allocations: 44.33 kB / 0.5612 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-05/0.3166, allocations: 16 kB / 0.5612 GB, free: 14.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.3177, allocations: 0.8967 MB / 0.5621 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3177, allocations: 0 / 0.5621 GB, free: 13.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.3183, allocations: 211.2 kB / 0.5623 GB, free: 13.5 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0001723/0.3185, allocations: 115.1 kB / 0.5624 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3197, allocations: 0.9621 MB / 0.5633 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3197, allocations: 4 kB / 0.5634 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.3203, allocations: 499.5 kB / 0.5638 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.3209, allocations: 93.38 kB / 0.5639 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.3248, allocations: 2.886 MB / 0.5667 GB, free: 8.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009506/0.3258, allocations: 1.303 MB / 0.568 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.3259, allocations: 55.42 kB / 0.5681 GB, free: 7.527 MB / 414.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3259, allocations: 3.938 kB / 0.5681 GB, free: 7.523 MB / 414.1 MB Notification: Performance of Templates: time 0.0162/0.3421, allocations: 11 MB / 0.5788 GB, free: 12.51 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.141896676039323] Failed to read output from testmodel.py, exit status != 0: 0.3503827510867268 0.36379491999999997 0.073753655 Calling exit ...