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.0008955/0.0008955, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001393/0.001393, allocations: 181 kB / 23.36 MB, free: 1.133 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.9262/0.9262, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.1152/0.1152, allocations: 21.81 MB / 282.1 MB, free: 7.062 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 1.563e-06/1.563e-06, allocations: 3.938 kB / 306 MB, free: 9.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.894e-05, allocations: 5.125 kB / 306 MB, free: 9.777 MB / 282.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.00313/0.003149, allocations: 3.137 MB / 309.2 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.00435, allocations: 0.7365 MB / 309.9 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.004601, allocations: 19.94 kB / 309.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.004896, allocations: 178.3 kB / 310.1 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/0.00511, allocations: 138.8 kB / 310.2 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.005621, allocations: 367.5 kB / 310.6 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000549/0.00617, allocations: 0.8561 MB / 311.4 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.006591, allocations: 488.1 kB / 311.9 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.006885, allocations: 0.491 MB / 312.4 MB, free: 3.625 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.007084, allocations: 302.7 kB / 312.7 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/0.007168, allocations: 88 kB / 312.8 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.007304, allocations: 120 kB / 312.9 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.007541, allocations: 466.3 kB / 313.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.007712, allocations: 338.5 kB / 313.7 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.008326, allocations: 0.9329 MB / 314.6 MB, free: 1.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.008329, allocations: 7.984 kB / 314.6 MB, free: 1.391 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.008329, allocations: 0 / 314.6 MB, free: 1.391 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.008339, allocations: 0 / 314.6 MB, free: 1.391 MB / 282.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.001231/0.009569, allocations: 1.765 MB / 316.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.009597, allocations: 8.031 kB / 316.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.009753, allocations: 200.8 kB / 316.6 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.01023, allocations: 0.6327 MB / 317.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.679e-05/0.01028, allocations: 82.48 kB / 317.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.267e-05/0.01035, allocations: 108.4 kB / 317.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005804/0.01093, allocations: 0.7541 MB / 318.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.01095, allocations: 4.125 kB / 318.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.01099, allocations: 40.38 kB / 318.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.25e-05/0.01103, allocations: 52.11 kB / 318.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003117/0.01134, allocations: 309.4 kB / 318.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.01332, allocations: 2.432 MB / 321 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.01369, allocations: 373 kB / 321.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.846e-05/0.01379, allocations: 99.7 kB / 321.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.188e-05/0.01384, allocations: 40.62 kB / 321.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.01386, allocations: 43.22 kB / 321.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=70): time 1.633e-06/0.01387, allocations: 0 / 321.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.0004165/0.01428, allocations: 377.8 kB / 321.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.01432, allocations: 85.77 kB / 322 MB, free: 9.715 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005831/0.01491, allocations: 1.049 MB / 323 MB, free: 8.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.01493, allocations: 41.7 kB / 323.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.01517, allocations: 0.5833 MB / 323.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.01528, allocations: 253.8 kB / 323.9 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.0154, allocations: 150.5 kB / 324.1 MB, free: 7.613 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.087e-05/0.01548, allocations: 345.9 kB / 324.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.805e-05/0.01558, allocations: 80.78 kB / 324.5 MB, free: 7.188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.01578, allocations: 341.8 kB / 324.8 MB, free: 6.746 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.01614, allocations: 0.501 MB / 325.3 MB, free: 6.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.01615, allocations: 7.938 kB / 325.3 MB, free: 6.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0004353/0.01658, allocations: 0.4915 MB / 325.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.0166, allocations: 8.969 kB / 325.8 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.0166, allocations: 8 kB / 325.8 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.01662, allocations: 16 kB / 325.8 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003027/0.01693, allocations: 179.7 kB / 326 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.01694, allocations: 19.94 kB / 326 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.0171, allocations: 79.41 kB / 326.1 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.01713, allocations: 31.98 kB / 326.1 MB, free: 5.289 MB / 298.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 (Population.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Pollution.Integrator1.local_reset,CIAF.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.0001725/0.0173, allocations: 176.3 kB / 326.3 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.742e-05/0.01739, allocations: 99.89 kB / 326.4 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004323/0.01782, allocations: 448.9 kB / 326.9 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.01783, allocations: 8 kB / 326.9 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.01783, allocations: 3.984 kB / 326.9 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.01784, allocations: 8.016 kB / 326.9 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008126/0.01865, allocations: 0.9314 MB / 327.8 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.01865, allocations: 0 / 327.8 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.01889, allocations: 115.8 kB / 327.9 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.0189, allocations: 0 / 327.9 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.01891, allocations: 12 kB / 327.9 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.01892, allocations: 4 kB / 327.9 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01892, allocations: 0 / 327.9 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.0194, allocations: 0.6556 MB / 328.6 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/0.01948, allocations: 134.8 kB / 328.7 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.01953, allocations: 16 kB / 328.7 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.01965, allocations: 12 kB / 328.7 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.0197, allocations: 40.56 kB / 328.8 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.01972, allocations: 23.88 kB / 328.8 MB, free: 2.555 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003342/0.02005, allocations: 0.5236 MB / 329.3 MB, free: 2.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02005, allocations: 0 / 329.3 MB, free: 2.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003624/0.02041, allocations: 231.2 kB / 329.6 MB, free: 1.805 MB / 298.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.0001261/0.02054, allocations: 105.8 kB / 329.7 MB, free: 1.695 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003075/0.02085, allocations: 341.7 kB / 330 MB, free: 1.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/0.02086, allocations: 20.44 kB / 330 MB, free: 1.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.02099, allocations: 162.4 kB / 330.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.02134, allocations: 104.5 kB / 330.3 MB, free: 1.078 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.0232, allocations: 2.328 MB / 332.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.0234, allocations: 341.2 kB / 332.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.02358, allocations: 92.86 kB / 333 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.02373, allocations: 131.4 kB / 333.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02373, allocations: 0 / 333.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of Templates: time 0.009198/0.03293, allocations: 5.259 MB / 338.4 MB, free: 8.922 MB / 314.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=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6093854876235127]