Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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.0007809/0.0007809, allocations: 87.56 kB / 20.97 MB, free: 3.586 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.001374/0.001374, allocations: 177 kB / 24.28 MB, free: 284 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.9942/0.9942, allocations: 177.1 MB / 204.6 MB, free: 5.66 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.0711/0.0711, allocations: 18.14 MB / 279.2 MB, free: 11.41 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_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 357.2 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.87e-05/3.045e-05, allocations: 5.406 kB / 357.2 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004663/0.004694, allocations: 4.129 MB / 361.4 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002887/0.007581, allocations: 1.192 MB / 362.6 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000487/0.008068, allocations: 8 kB / 362.6 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.008375, allocations: 110.9 kB / 362.7 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007473/0.009122, allocations: 281.7 kB / 363 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.01024, allocations: 315.2 kB / 363.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.01183, allocations: 1.225 MB / 364.5 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000988/0.01282, allocations: 0.5754 MB / 365.1 MB, free: 356 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008885/0.01371, allocations: 478.8 kB / 365.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000893/0.0146, allocations: 0.4948 MB / 366 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002493/0.01485, allocations: 120 kB / 366.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.01503, allocations: 120 kB / 366.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002961/0.01533, allocations: 351 kB / 366.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004791/0.0158, allocations: 403.1 kB / 367 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.01682, allocations: 0.8566 MB / 367.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.01683, allocations: 0 / 367.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01683, allocations: 0 / 367.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.01685, allocations: 0 / 367.9 MB, free: 13.55 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002337/0.01919, allocations: 1.306 MB / 369.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.01923, allocations: 12.92 kB / 369.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.01958, allocations: 172.3 kB / 369.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008063/0.02039, allocations: 452 kB / 369.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.02061, allocations: 155.7 kB / 369.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.02078, allocations: 88.33 kB / 370 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.0219, allocations: 0.7319 MB / 370.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.02192, allocations: 192 / 370.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.02198, allocations: 36.12 kB / 370.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.022, allocations: 16 kB / 370.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006775/0.02268, allocations: 447.7 kB / 371.2 MB, free: 10.05 MB / 298.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003603/0.02628, allocations: 2.595 MB / 373.8 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00084/0.02712, allocations: 0.5406 MB / 374.4 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004018/0.02752, allocations: 305.5 kB / 374.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/0.02757, allocations: 12.88 kB / 374.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.0276, allocations: 46.05 kB / 374.7 MB, free: 6.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=79): time 2.114e-06/0.0276, allocations: 3.938 kB / 374.7 MB, free: 6.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=85): time 0.002991/0.0306, allocations: 1.806 MB / 376.5 MB, free: 4.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.03063, allocations: 60.41 kB / 376.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.03094, allocations: 434.5 kB / 377 MB, free: 4.113 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.07e-05/0.03099, allocations: 41.7 kB / 377.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.03117, allocations: 383.6 kB / 377.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.03136, allocations: 329.2 kB / 377.8 MB, free: 3.359 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.03154, allocations: 156.2 kB / 377.9 MB, free: 3.199 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.0317, allocations: 0.5469 MB / 378.5 MB, free: 2.641 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.03209, allocations: 275.5 kB / 378.7 MB, free: 2.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.03253, allocations: 387.4 kB / 379.1 MB, free: 1.945 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.03366, allocations: 0.8207 MB / 379.9 MB, free: 1.082 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.03366, allocations: 0 / 379.9 MB, free: 1.082 MB / 298.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001054/0.03472, allocations: 0.7822 MB / 380.7 MB, free: 296 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.03474, allocations: 11.94 kB / 380.7 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.03475, allocations: 4 kB / 380.7 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.03476, allocations: 4 kB / 380.7 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003224/0.03799, allocations: 0.757 MB / 381.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/0.03801, allocations: 4 kB / 381.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003828/0.0384, allocations: 60.08 kB / 381.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.03844, allocations: 27.98 kB / 381.6 MB, free: 15.42 MB / 314.7 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 114 * 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.0003306/0.03877, allocations: 240.8 kB / 381.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.0389, allocations: 95.52 kB / 381.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.03998, allocations: 0.7245 MB / 382.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.03999, allocations: 12 kB / 382.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.04, allocations: 3.984 kB / 382.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.04001, allocations: 3.984 kB / 382.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.04233, allocations: 1.617 MB / 384.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.04234, allocations: 0 / 384.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002771/0.04511, allocations: 0.7338 MB / 385 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.979e-05/0.04513, allocations: 4 kB / 385 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.111e-05/0.04522, allocations: 23.98 kB / 385 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.04523, allocations: 8 kB / 385 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.04523, allocations: 3.938 kB / 385 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.04664, allocations: 1.116 MB / 386.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.04676, allocations: 59.61 kB / 386.2 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.04684, allocations: 20 kB / 386.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.04717, allocations: 55.88 kB / 386.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.04736, allocations: 104.4 kB / 386.4 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.129e-05/0.0474, allocations: 23.98 kB / 386.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.04759, allocations: 287.1 kB / 386.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.04759, allocations: 4 kB / 386.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005396/0.04813, allocations: 228 kB / 386.9 MB, free: 9.945 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 87 * 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.000151/0.04828, allocations: 135.1 kB / 387.1 MB, free: 9.805 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009534/0.04924, allocations: 0.6243 MB / 387.7 MB, free: 9.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.04924, allocations: 0 / 387.7 MB, free: 9.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.04965, allocations: 334.2 kB / 388 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.05016, allocations: 157.5 kB / 388.2 MB, free: 8.691 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.05347, allocations: 2.234 MB / 390.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.0536, allocations: 175.5 kB / 390.6 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000396/0.054, allocations: 133.1 kB / 390.7 MB, free: 6.062 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002743/0.05427, allocations: 72.47 kB / 390.8 MB, free: 5.992 MB / 314.7 MB Notification: Performance of SimCode: time 1.723e-06/0.05427, allocations: 4 kB / 390.8 MB, free: 5.988 MB / 314.7 MB Notification: Performance of Templates: time 0.0141/0.06837, allocations: 11.57 MB / 402.3 MB, free: 10.56 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.3791038398630917]