Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.0008518/0.0008518, allocations: 83.69 kB / 20.02 MB, free: 4.496 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.0009315/0.0009315, allocations: 170 kB / 23.32 MB, free: 1.191 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.9114/0.9114, allocations: 177.1 MB / 203.6 MB, free: 5.719 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.1276/0.1276, allocations: 21.79 MB / 281.9 MB, free: 7.348 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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 419.2 MB, free: 8.758 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.651e-05, allocations: 2.281 kB / 419.3 MB, free: 8.754 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002984/0.00301, allocations: 3.095 MB / 422.3 MB, free: 5.648 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.004742, allocations: 0.7635 MB / 423.1 MB, free: 4.883 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003872/0.005129, allocations: 23.88 kB / 423.1 MB, free: 4.859 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.00545, allocations: 174.3 kB / 423.3 MB, free: 4.688 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.005713, allocations: 142.7 kB / 423.4 MB, free: 4.547 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.00636, allocations: 383.4 kB / 423.8 MB, free: 4.172 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006743/0.007034, allocations: 0.8561 MB / 424.7 MB, free: 3.312 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005065/0.007541, allocations: 484.2 kB / 425.1 MB, free: 2.805 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.00792, allocations: 0.4949 MB / 425.6 MB, free: 2.309 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.008148, allocations: 314.7 kB / 425.9 MB, free: 2 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.657e-05/0.008234, allocations: 84 kB / 426 MB, free: 1.918 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.008386, allocations: 123.8 kB / 426.2 MB, free: 1.797 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.008642, allocations: 454.3 kB / 426.6 MB, free: 1.352 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.008827, allocations: 338.6 kB / 426.9 MB, free: 1.02 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008947/0.009722, allocations: 1.226 MB / 428.2 MB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.009725, allocations: 0 / 428.2 MB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.009726, allocations: 0 / 428.2 MB, free: 15.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.385e-05/0.00976, allocations: 0 / 428.2 MB, free: 15.79 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.00185/0.01161, allocations: 1.77 MB / 429.9 MB, free: 13.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.01165, allocations: 11.97 kB / 429.9 MB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004614/0.01211, allocations: 207.6 kB / 430.1 MB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006491/0.01276, allocations: 0.7149 MB / 430.8 MB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.392e-05/0.01281, allocations: 74.47 kB / 430.9 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.182e-05/0.01289, allocations: 104.4 kB / 431 MB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.01403, allocations: 1.178 MB / 432.2 MB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.01405, allocations: 8.062 kB / 432.2 MB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.613e-05/0.01409, allocations: 40.38 kB / 432.2 MB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.01411, allocations: 28.38 kB / 432.3 MB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.01522, allocations: 1.113 MB / 433.4 MB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.01813, allocations: 3.259 MB / 436.6 MB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.01958, allocations: 1.324 MB / 438 MB, free: 5.703 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003662/0.01995, allocations: 470.6 kB / 438.4 MB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.745e-05/0.02, allocations: 32.56 kB / 438.5 MB, free: 5.211 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004609/0.02047, allocations: 0.5472 MB / 439 MB, free: 4.648 MB / 410.7 MB Notification: Performance of pre-optimization done (n=72): time 2.034e-06/0.02047, allocations: 0 / 439 MB, free: 4.648 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.001281/0.02175, allocations: 1.582 MB / 440.6 MB, free: 3.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.02179, allocations: 60.06 kB / 440.7 MB, free: 2.988 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008759/0.02266, allocations: 1.276 MB / 441.9 MB, free: 1.703 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.02269, allocations: 37.7 kB / 442 MB, free: 1.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.02307, allocations: 0.7648 MB / 442.7 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.02318, allocations: 258.1 kB / 443 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.02329, allocations: 122.7 kB / 443.1 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.02338, allocations: 333.9 kB / 443.4 MB, free: 176 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2073/0.2307, allocations: 439.7 kB / 443.9 MB, free: 64.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.2311, allocations: 0.553 MB / 444.4 MB, free: 63.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008599/0.232, allocations: 1.043 MB / 445.5 MB, free: 63.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.232, allocations: 0 / 445.5 MB, free: 63.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001154/0.2331, allocations: 1.231 MB / 446.7 MB, free: 63.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.2332, allocations: 9.438 kB / 446.7 MB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.2332, allocations: 0 / 446.7 MB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.2332, allocations: 10.38 kB / 446.7 MB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.2335, allocations: 139.8 kB / 446.8 MB, free: 63.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.2335, allocations: 10.5 kB / 446.9 MB, free: 63.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.2337, allocations: 53.84 kB / 446.9 MB, free: 63.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.2337, allocations: 30.62 kB / 446.9 MB, free: 63.62 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0004475/0.2341, allocations: 385.5 kB / 447.3 MB, free: 63.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.038e-05/0.2342, allocations: 144.5 kB / 447.5 MB, free: 63.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009275/0.2351, allocations: 1.238 MB / 448.7 MB, free: 63.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2351, allocations: 10.16 kB / 448.7 MB, free: 63.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2352, allocations: 0 / 448.7 MB, free: 63.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.2352, allocations: 5.766 kB / 448.7 MB, free: 63.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.2367, allocations: 2.191 MB / 450.9 MB, free: 62.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2367, allocations: 0 / 450.9 MB, free: 62.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.237, allocations: 114.9 kB / 451 MB, free: 62.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.237, allocations: 7.156 kB / 451 MB, free: 62.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.237, allocations: 17.7 kB / 451 MB, free: 62.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.237, allocations: 6.281 kB / 451 MB, free: 62.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.237, allocations: 0 / 451 MB, free: 62.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.2383, allocations: 1.939 MB / 453 MB, free: 61.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.2385, allocations: 181.2 kB / 453.2 MB, free: 61.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.2386, allocations: 18.61 kB / 453.2 MB, free: 61.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.2387, allocations: 14.09 kB / 453.2 MB, free: 61.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.2388, allocations: 42.25 kB / 453.2 MB, free: 61.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.2388, allocations: 26.42 kB / 453.3 MB, free: 61.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000624/0.2394, allocations: 0.8852 MB / 454.1 MB, free: 61.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2394, allocations: 0 / 454.1 MB, free: 61.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003673/0.2398, allocations: 219 kB / 454.4 MB, free: 61.2 MB / 410.7 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001478/0.2399, allocations: 114.9 kB / 454.5 MB, free: 61.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007233/0.2406, allocations: 0.9939 MB / 455.5 MB, free: 60.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2406, allocations: 6.094 kB / 455.5 MB, free: 60.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.241, allocations: 0.5073 MB / 456 MB, free: 60.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.2414, allocations: 80.45 kB / 456 MB, free: 60.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.2436, allocations: 2.779 MB / 458.8 MB, free: 59.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.244, allocations: 0.7252 MB / 459.6 MB, free: 59.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.2442, allocations: 72.14 kB / 459.6 MB, free: 59.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.2443, allocations: 54.81 kB / 459.7 MB, free: 59.27 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2443, allocations: 0 / 459.7 MB, free: 59.27 MB / 410.7 MB Notification: Performance of Templates: time 0.008174/0.2524, allocations: 4.409 MB / 464.1 MB, free: 58.59 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.209459561854601] Failed to read output from testmodel.py, exit status != 0: 0.25744435377418995 0.2644405 0.25302304600000003 Calling exit ...