Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.0008448/0.0008448, allocations: 72.5 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.0007545/0.0007545, allocations: 177.9 kB / 23.21 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.8228/0.8228, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.108/0.108, allocations: 21.8 MB / 281.7 MB, free: 7.391 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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 3.938 kB / 419 MB, free: 8.895 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.621e-05, allocations: 6.281 kB / 419 MB, free: 8.887 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003114/0.003141, allocations: 3.095 MB / 422.1 MB, free: 5.781 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.004583, allocations: 0.674 MB / 422.8 MB, free: 5.105 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004737/0.005057, allocations: 19.88 kB / 422.8 MB, free: 5.086 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003782/0.005435, allocations: 178.3 kB / 423 MB, free: 4.91 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.005739, allocations: 142.7 kB / 423.1 MB, free: 4.77 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.006395, allocations: 363.5 kB / 423.5 MB, free: 4.414 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.007408, allocations: 0.8522 MB / 424.3 MB, free: 3.559 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.007933, allocations: 480.2 kB / 424.8 MB, free: 3.055 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000393/0.008326, allocations: 0.491 MB / 425.3 MB, free: 2.562 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.008542, allocations: 302.7 kB / 425.6 MB, free: 2.266 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.3e-05/0.008625, allocations: 88 kB / 425.7 MB, free: 2.18 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.00878, allocations: 112 kB / 425.8 MB, free: 2.07 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.009027, allocations: 466.3 kB / 426.2 MB, free: 1.613 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.009208, allocations: 342.5 kB / 426.6 MB, free: 1.277 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009739/0.01018, allocations: 1.249 MB / 427.8 MB, free: 24 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.01019, allocations: 0 / 427.8 MB, free: 24 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01019, allocations: 0 / 427.8 MB, free: 24 kB / 394.7 MB Notification: Performance of Transformations before backend: time 3.926e-05/0.01023, allocations: 0 / 427.8 MB, free: 24 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001571/0.0118, allocations: 1.789 MB / 429.6 MB, free: 14.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.01184, allocations: 12.03 kB / 429.6 MB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.01199, allocations: 211.5 kB / 429.8 MB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.01268, allocations: 0.7145 MB / 430.5 MB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.01273, allocations: 78.42 kB / 430.6 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.126e-05/0.01281, allocations: 108.4 kB / 430.7 MB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.0142, allocations: 1.274 MB / 432 MB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.01422, allocations: 4.188 kB / 432 MB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.01426, allocations: 40.38 kB / 432 MB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.206e-05/0.01431, allocations: 56.34 kB / 432.1 MB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.01535, allocations: 1.23 MB / 433.3 MB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.01829, allocations: 3.477 MB / 436.8 MB, free: 6.785 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.0194, allocations: 1.33 MB / 438.1 MB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006299/0.02003, allocations: 483.5 kB / 438.6 MB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-05/0.02009, allocations: 28.64 kB / 438.6 MB, free: 4.934 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.02012, allocations: 39.22 kB / 438.7 MB, free: 4.887 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 3.005e-06/0.02012, allocations: 4 kB / 438.7 MB, free: 4.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.001288/0.02141, allocations: 1.563 MB / 440.2 MB, free: 3.312 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.02145, allocations: 85.77 kB / 440.3 MB, free: 3.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000979/0.02243, allocations: 1.361 MB / 441.7 MB, free: 1.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.02246, allocations: 37.7 kB / 441.7 MB, free: 1.797 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004184/0.02288, allocations: 0.8384 MB / 442.6 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.02301, allocations: 257.8 kB / 442.8 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.02315, allocations: 150.6 kB / 443 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.02324, allocations: 341.9 kB / 443.3 MB, free: 204 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1492/0.1724, allocations: 476.4 kB / 443.8 MB, free: 64.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.1728, allocations: 0.719 MB / 444.5 MB, free: 63.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007554/0.1736, allocations: 1.233 MB / 445.7 MB, free: 63.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1736, allocations: 3.312 kB / 445.7 MB, free: 63.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0009932/0.1746, allocations: 1.391 MB / 447.1 MB, free: 63.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1746, allocations: 10.19 kB / 447.1 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1746, allocations: 16.44 kB / 447.1 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.1746, allocations: 16.97 kB / 447.2 MB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.1749, allocations: 181.7 kB / 447.3 MB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.175, allocations: 16.81 kB / 447.3 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.1752, allocations: 82.52 kB / 447.4 MB, free: 63.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.1752, allocations: 43.34 kB / 447.5 MB, free: 63.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0003533/0.1755, allocations: 408.4 kB / 447.9 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.242e-05/0.1756, allocations: 154.6 kB / 448 MB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008848/0.1765, allocations: 1.237 MB / 449.3 MB, free: 62.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1765, allocations: 6.375 kB / 449.3 MB, free: 62.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1765, allocations: 0 / 449.3 MB, free: 62.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1765, allocations: 6.359 kB / 449.3 MB, free: 62.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1779, allocations: 2.187 MB / 451.5 MB, free: 62.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1779, allocations: 0 / 451.5 MB, free: 62.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.1782, allocations: 124.1 kB / 451.6 MB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1782, allocations: 3.031 kB / 451.6 MB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1782, allocations: 18.31 kB / 451.6 MB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1782, allocations: 5.5 kB / 451.6 MB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.1782, allocations: 1.125 kB / 451.6 MB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1794, allocations: 1.994 MB / 453.6 MB, free: 61.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.073e-05/0.1794, allocations: 140.5 kB / 453.7 MB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.1795, allocations: 14.31 kB / 453.7 MB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1796, allocations: 14.56 kB / 453.8 MB, free: 61.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.1797, allocations: 49.16 kB / 453.8 MB, free: 61.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.1797, allocations: 27.2 kB / 453.8 MB, free: 61.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005581/0.1802, allocations: 0.9171 MB / 454.8 MB, free: 60.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1802, allocations: 0 / 454.8 MB, free: 60.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003983/0.1806, allocations: 230.4 kB / 455 MB, free: 60.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001483/0.1808, allocations: 120.2 kB / 455.1 MB, free: 60.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.1815, allocations: 1.059 MB / 456.2 MB, free: 60.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1815, allocations: 0 / 456.2 MB, free: 60.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.1818, allocations: 0.5032 MB / 456.7 MB, free: 60.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.1822, allocations: 98.53 kB / 456.8 MB, free: 60.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.1844, allocations: 2.941 MB / 459.7 MB, free: 58.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.1848, allocations: 0.7399 MB / 460.4 MB, free: 58.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.185, allocations: 72.8 kB / 460.5 MB, free: 58.79 MB / 410.7 MB Notification: Performance of SimCode: time 9.41e-07/0.185, allocations: 3.062 kB / 460.5 MB, free: 58.79 MB / 410.7 MB Notification: Performance of Templates: time 0.01187/0.1968, allocations: 12.44 MB / 472.9 MB, free: 57.32 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.817785163410008] Failed to read output from testmodel.py, exit status != 0: 0.20216484274715185 0.21126406 0.19949487500000002 Calling exit ...