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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001978/0.001978, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] 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.09679/0.09679, allocations: 22.7 MB / 325.4 MB, free: 3.555 MB / 254.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 67.88 kB / 457.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1089, allocations: 58.02 MB / 0.5031 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.005664/0.1145, allocations: 4.215 MB / 0.5072 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.1171, allocations: 1.173 MB / 0.5084 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004536/0.1175, allocations: 11.94 kB / 0.5084 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1179, allocations: 102.9 kB / 0.5085 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000778/0.1187, allocations: 273.9 kB / 0.5087 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009285/0.1196, allocations: 307.4 kB / 0.509 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.1212, allocations: 1.198 MB / 0.5102 GB, free: 368 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.207/0.3282, allocations: 0.5739 MB / 0.5108 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008474/0.329, allocations: 485.1 kB / 0.5112 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007155/0.3298, allocations: 0.6135 MB / 0.5118 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.3299, allocations: 119.4 kB / 0.5119 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.3301, allocations: 120.2 kB / 0.5121 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002319/0.3304, allocations: 321.5 kB / 0.5124 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.3307, allocations: 0.5322 MB / 0.5129 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.3318, allocations: 1.254 MB / 0.5141 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3318, allocations: 3.344 kB / 0.5141 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3318, allocations: 1.375 kB / 0.5141 GB, free: 10.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3318, allocations: 0 / 0.5141 GB, free: 10.07 MB / 382.1 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.002623/0.3345, allocations: 1.279 MB / 0.5154 GB, free: 9.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3345, allocations: 10.03 kB / 0.5154 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.3346, allocations: 133.4 kB / 0.5155 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.3348, allocations: 104.2 kB / 0.5156 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007514/0.3356, allocations: 0.5199 MB / 0.5161 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.3357, allocations: 161.9 kB / 0.5163 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.3359, allocations: 87.94 kB / 0.5163 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.338, allocations: 1.01 MB / 0.5173 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.338, allocations: 0 / 0.5173 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.3381, allocations: 32.41 kB / 0.5174 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.3381, allocations: 20.69 kB / 0.5174 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.34, allocations: 0.9033 MB / 0.5183 GB, free: 8.875 MB / 382.1 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.006813/0.3469, allocations: 3.548 MB / 0.5217 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.3486, allocations: 0.8758 MB / 0.5226 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.3498, allocations: 0.6052 MB / 0.5232 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-05/0.3498, allocations: 13.3 kB / 0.5232 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.3498, allocations: 47.84 kB / 0.5232 GB, free: 6.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.044e-06/0.3498, allocations: 0 / 0.5232 GB, free: 6.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.007328/0.3572, allocations: 3.162 MB / 0.5263 GB, free: 5.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.3572, allocations: 61.5 kB / 0.5264 GB, free: 5.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.3578, allocations: 0.5122 MB / 0.5269 GB, free: 5.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.41e-05/0.3578, allocations: 46.92 kB / 0.5269 GB, free: 4.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.358, allocations: 321.3 kB / 0.5272 GB, free: 4.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.3582, allocations: 327.5 kB / 0.5275 GB, free: 4.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.3584, allocations: 155.4 kB / 0.5277 GB, free: 4.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.3585, allocations: 383.2 kB / 0.528 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3596, allocations: 0.5387 MB / 0.5286 GB, free: 3.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.3607, allocations: 0.6193 MB / 0.5292 GB, free: 3.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009486/0.3702, allocations: 3.134 MB / 0.5322 GB, free: 2.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.3702, allocations: 2.656 kB / 0.5322 GB, free: 2.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.002516/0.3727, allocations: 1.292 MB / 0.5335 GB, free: 2.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3727, allocations: 12.33 kB / 0.5335 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3728, allocations: 2.375 kB / 0.5335 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.3728, allocations: 7.953 kB / 0.5335 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006011/0.3788, allocations: 1.027 MB / 0.5345 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.358e-05/0.3788, allocations: 7.969 kB / 0.5345 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008617/0.3797, allocations: 79.72 kB / 0.5346 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.822e-05/0.3798, allocations: 30.67 kB / 0.5346 GB, free: 1.754 MB / 382.1 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.0004947/0.3802, allocations: 263 kB / 0.5349 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.3804, allocations: 74.31 kB / 0.535 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.3828, allocations: 1.211 MB / 0.5361 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3828, allocations: 9.031 kB / 0.5362 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3828, allocations: 0 / 0.5362 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3828, allocations: 5.328 kB / 0.5362 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/0.3875, allocations: 2.462 MB / 0.5386 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3875, allocations: 1.906 kB / 0.5386 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006281/0.3938, allocations: 1.012 MB / 0.5396 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.298e-05/0.3938, allocations: 14.25 kB / 0.5396 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.394, allocations: 27.02 kB / 0.5396 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/0.394, allocations: 5.656 kB / 0.5396 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.394, allocations: 1.5 kB / 0.5396 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003748/0.3977, allocations: 1.843 MB / 0.5414 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.398, allocations: 154.5 kB / 0.5415 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.3981, allocations: 25 kB / 0.5416 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.3989, allocations: 70.47 kB / 0.5416 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.3991, allocations: 102.7 kB / 0.5417 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.475e-05/0.3992, allocations: 31.61 kB / 0.5418 GB, free: 13.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005159/0.3997, allocations: 366.5 kB / 0.5421 GB, free: 13.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3997, allocations: 0 / 0.5421 GB, free: 13.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008625/0.4006, allocations: 232.5 kB / 0.5423 GB, free: 13.33 MB / 398.1 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.003972/0.4045, allocations: 2.421 MB / 0.5447 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00238/0.4069, allocations: 1.092 MB / 0.5458 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4069, allocations: 1.438 kB / 0.5458 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.4081, allocations: 0.5796 MB / 0.5463 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009046/0.409, allocations: 160.2 kB / 0.5465 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.4254, allocations: 8.9 MB / 0.5552 GB, free: 2.418 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.4261, allocations: 0.9661 MB / 0.5561 GB, free: 1.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007184/0.4268, allocations: 172.6 kB / 0.5563 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005692/0.4274, allocations: 307.3 kB / 0.5566 GB, free: 0.957 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4274, allocations: 0 / 0.5566 GB, free: 0.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05093/0.4783, allocations: 19.36 MB / 0.5755 GB, free: 13.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.61, allocations: 3.938 kB / 0.5755 GB, free: 13.85 MB / 430.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.44901219010353] Failed to read output from testmodel.py, exit status != 0: 10.689154589083046 10.715538804 10.3798849 Calling exit ...