Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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.0006821/0.0006821, allocations: 75.59 kB / 20.8 MB, free: 3.715 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.0007713/0.0007713, allocations: 170 kB / 24.1 MB, free: 424 kB / 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.944/0.944, allocations: 177.2 MB / 204.4 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06897/0.06897, allocations: 18.13 MB / 279 MB, free: 11.48 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 416.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.888e-05/3.047e-05, allocations: 4.781 kB / 416.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003967/0.003998, allocations: 2.938 MB / 419.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.005897, allocations: 0.9165 MB / 420.4 MB, free: 9.656 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.006131, allocations: 3.906 kB / 420.4 MB, free: 9.656 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000249/0.00638, allocations: 66.09 kB / 420.5 MB, free: 9.617 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004227/0.006803, allocations: 181.2 kB / 420.7 MB, free: 9.492 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007169/0.00752, allocations: 205.1 kB / 420.9 MB, free: 9.375 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000828/0.008348, allocations: 0.7673 MB / 421.6 MB, free: 8.996 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006041/0.008952, allocations: 358.6 kB / 422 MB, free: 8.836 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005307/0.009483, allocations: 302.2 kB / 422.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006173/0.0101, allocations: 324.1 kB / 422.6 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.01026, allocations: 76.72 kB / 422.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.01039, allocations: 76.94 kB / 422.8 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.0106, allocations: 212.7 kB / 423 MB, free: 8.473 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003331/0.01093, allocations: 258 kB / 423.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.01196, allocations: 0.847 MB / 424.1 MB, free: 8.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.01196, allocations: 0 / 424.1 MB, free: 8.023 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01196, allocations: 0 / 424.1 MB, free: 8.023 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.01198, allocations: 1.125 kB / 424.1 MB, free: 8.023 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001532/0.01351, allocations: 0.8376 MB / 424.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.01355, allocations: 10.5 kB / 424.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.01366, allocations: 61.45 kB / 425 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.01408, allocations: 337.4 kB / 425.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.802e-05/0.01418, allocations: 109.9 kB / 425.4 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.443e-05/0.01426, allocations: 49.91 kB / 425.5 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.01536, allocations: 0.7421 MB / 426.2 MB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.01537, allocations: 1.062 kB / 426.2 MB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.52e-05/0.01542, allocations: 25.03 kB / 426.2 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.01543, allocations: 11.56 kB / 426.2 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.01645, allocations: 0.6002 MB / 426.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/0.01968, allocations: 2.287 MB / 429.1 MB, free: 5.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/0.02053, allocations: 0.5377 MB / 429.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005666/0.0211, allocations: 397.1 kB / 430 MB, free: 4.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.02114, allocations: 6.422 kB / 430.1 MB, free: 4.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.02116, allocations: 40.38 kB / 430.1 MB, free: 4.918 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.054e-06/0.02116, allocations: 0 / 430.1 MB, free: 4.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=54): time 0.003915/0.02508, allocations: 2.221 MB / 432.3 MB, free: 4.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.02511, allocations: 58.59 kB / 432.4 MB, free: 3.977 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.02535, allocations: 280.6 kB / 432.6 MB, free: 3.816 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.02539, allocations: 35.95 kB / 432.7 MB, free: 3.777 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.02549, allocations: 237.2 kB / 432.9 MB, free: 3.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.02561, allocations: 202.3 kB / 433.1 MB, free: 3.426 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.02574, allocations: 97.69 kB / 433.2 MB, free: 3.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.439e-05/0.02579, allocations: 351.2 kB / 433.5 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/0.02636, allocations: 373.9 kB / 433.9 MB, free: 2.914 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006161/0.02697, allocations: 431.3 kB / 434.3 MB, free: 2.723 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004078/0.03105, allocations: 2.019 MB / 436.4 MB, free: 1.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.03106, allocations: 5.094 kB / 436.4 MB, free: 1.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001205/0.03226, allocations: 0.8604 MB / 437.2 MB, free: 1.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.03228, allocations: 11.34 kB / 437.2 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.03229, allocations: 2.375 kB / 437.2 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.03231, allocations: 4.25 kB / 437.2 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/0.03523, allocations: 0.9142 MB / 438.1 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.03525, allocations: 6.094 kB / 438.2 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.03562, allocations: 63.08 kB / 438.2 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.03565, allocations: 21.75 kB / 438.2 MB, free: 0.9609 MB / 330.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"cold height\" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0003104/0.03596, allocations: 204.5 kB / 438.4 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.03602, allocations: 38.73 kB / 438.5 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.0372, allocations: 0.8354 MB / 439.3 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.03721, allocations: 6.406 kB / 439.3 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.03722, allocations: 0 / 439.3 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.03722, allocations: 3.984 kB / 439.3 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.03962, allocations: 1.617 MB / 440.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.03962, allocations: 1.156 kB / 440.9 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002871/0.04249, allocations: 0.9011 MB / 441.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.0425, allocations: 0 / 441.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-05/0.04255, allocations: 19.98 kB / 441.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.04256, allocations: 7.938 kB / 441.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.04256, allocations: 0 / 441.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.0443, allocations: 1.291 MB / 443.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.901e-05/0.0444, allocations: 31.77 kB / 443.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.44e-05/0.04446, allocations: 19.98 kB / 443.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.04472, allocations: 56.03 kB / 443.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.04486, allocations: 84.28 kB / 443.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.04489, allocations: 19.98 kB / 443.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001705/0.04506, allocations: 191.1 kB / 443.6 MB, free: 12.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04506, allocations: 0 / 443.6 MB, free: 12.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00047/0.04553, allocations: 148 kB / 443.7 MB, free: 12.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.0001459/0.04568, allocations: 127 kB / 443.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.04683, allocations: 0.7637 MB / 444.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.04684, allocations: 0 / 444.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.04738, allocations: 411 kB / 445 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.04778, allocations: 89.86 kB / 445.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.05001, allocations: 1.571 MB / 446.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/0.0502, allocations: 254.6 kB / 446.9 MB, free: 9.258 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002626/0.05046, allocations: 87.31 kB / 447 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.05063, allocations: 48.48 kB / 447 MB, free: 9.125 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/0.05063, allocations: 0 / 447 MB, free: 9.125 MB / 346.7 MB Notification: Performance of Templates: time 0.009134/0.05976, allocations: 7.848 MB / 454.9 MB, free: 1.383 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.3407617434859276] Failed to read output from testmodel.py, exit status != 0: 0.0681268610060215 0.08062443200000001 0.06601957500000001 Calling exit ...