Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.00144/0.00144, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.00168/0.00168, allocations: 212.1 kB / 22.25 MB, free: 5.129 MB / 14.72 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 1.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.977 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.1085/0.1085, allocations: 24.13 MB / 336.6 MB, free: 11.42 MB / 270.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.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002514/0.002514, allocations: 71.83 kB / 474.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3867, allocations: 59.6 MB / 0.5212 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003787/0.3905, allocations: 3.24 MB / 0.5243 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.3922, allocations: 0.9516 MB / 0.5253 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.3924, allocations: 3.406 kB / 0.5253 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.3927, allocations: 72.62 kB / 0.5253 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003207/0.393, allocations: 166.2 kB / 0.5255 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.3935, allocations: 205.2 kB / 0.5257 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007529/0.3943, allocations: 0.7499 MB / 0.5264 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005192/0.3948, allocations: 360 kB / 0.5268 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.3952, allocations: 321.3 kB / 0.5271 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.3957, allocations: 395.7 kB / 0.5275 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.3958, allocations: 76.69 kB / 0.5275 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.3959, allocations: 77.47 kB / 0.5276 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.3961, allocations: 207.9 kB / 0.5278 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002855/0.3963, allocations: 349.6 kB / 0.5281 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008575/0.3972, allocations: 0.7937 MB / 0.5289 GB, free: 5.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3972, allocations: 0 / 0.5289 GB, free: 5.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3972, allocations: 0 / 0.5289 GB, free: 5.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.3972, allocations: 0 / 0.5289 GB, free: 5.852 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00203/0.3993, allocations: 0.8431 MB / 0.5297 GB, free: 5.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3993, allocations: 10.89 kB / 0.5297 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3994, allocations: 92.28 kB / 0.5298 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.3995, allocations: 69.55 kB / 0.5299 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005542/0.4001, allocations: 328.1 kB / 0.5302 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.4002, allocations: 113.3 kB / 0.5303 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.4003, allocations: 49.55 kB / 0.5304 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.4019, allocations: 0.6909 MB / 0.531 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.4019, allocations: 5.156 kB / 0.5311 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.4019, allocations: 19.44 kB / 0.5311 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.402, allocations: 12.72 kB / 0.5311 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.4034, allocations: 0.6089 MB / 0.5317 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005146/0.4085, allocations: 2.532 MB / 0.5341 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.4097, allocations: 0.5381 MB / 0.5347 GB, free: 2.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008477/0.4105, allocations: 397.2 kB / 0.5351 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.658e-05/0.4106, allocations: 9.562 kB / 0.5351 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.4106, allocations: 38.31 kB / 0.5351 GB, free: 2.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.4106, allocations: 0 / 0.5351 GB, free: 2.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.005955/0.4165, allocations: 2.224 MB / 0.5373 GB, free: 1.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.4166, allocations: 57.78 kB / 0.5373 GB, free: 1.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.417, allocations: 357.1 kB / 0.5377 GB, free: 1.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.757e-05/0.417, allocations: 32.88 kB / 0.5377 GB, free: 1.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.4171, allocations: 237.1 kB / 0.5379 GB, free: 1.266 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.4173, allocations: 202.3 kB / 0.5381 GB, free: 1.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.4174, allocations: 99.44 kB / 0.5382 GB, free: 1.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.935e-05/0.4175, allocations: 356.3 kB / 0.5386 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008284/0.4183, allocations: 381 kB / 0.5389 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008467/0.4192, allocations: 425.7 kB / 0.5393 GB, free: 412 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006632/0.4258, allocations: 2.03 MB / 0.5413 GB, free: 15.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4258, allocations: 1.562 kB / 0.5413 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002046/0.4279, allocations: 0.859 MB / 0.5421 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4279, allocations: 5.5 kB / 0.5421 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.4279, allocations: 1.062 kB / 0.5422 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.4279, allocations: 5.25 kB / 0.5422 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005933/0.4339, allocations: 0.9167 MB / 0.5431 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.4339, allocations: 4.469 kB / 0.5431 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006835/0.4346, allocations: 62.11 kB / 0.5431 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-05/0.4346, allocations: 17.66 kB / 0.5431 GB, free: 14.82 MB / 398.1 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.0005093/0.4351, allocations: 204.3 kB / 0.5433 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.4352, allocations: 47.95 kB / 0.5434 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.4374, allocations: 0.8368 MB / 0.5442 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.4374, allocations: 9.406 kB / 0.5442 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4374, allocations: 144 / 0.5442 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.4374, allocations: 9.25 kB / 0.5442 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003701/0.4411, allocations: 1.779 MB / 0.5459 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.4411, allocations: 1.938 kB / 0.5459 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005881/0.447, allocations: 0.9062 MB / 0.5468 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-05/0.447, allocations: 3.312 kB / 0.5468 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.4472, allocations: 18.39 kB / 0.5469 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.537e-06/0.4472, allocations: 10.06 kB / 0.5469 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4472, allocations: 1.125 kB / 0.5469 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003245/0.4504, allocations: 1.295 MB / 0.5481 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.4506, allocations: 47.86 kB / 0.5482 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.4507, allocations: 17.41 kB / 0.5482 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005921/0.4513, allocations: 56.36 kB / 0.5482 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.4515, allocations: 76.17 kB / 0.5483 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-05/0.4516, allocations: 27.45 kB / 0.5483 GB, free: 11.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003134/0.4519, allocations: 256.7 kB / 0.5486 GB, free: 11.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4519, allocations: 0 / 0.5486 GB, free: 11.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005571/0.4525, allocations: 150.9 kB / 0.5487 GB, free: 11.51 MB / 398.1 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.003369/0.4558, allocations: 1.866 MB / 0.5506 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.4578, allocations: 0.7562 MB / 0.5513 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4578, allocations: 0 / 0.5513 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.4587, allocations: 414.2 kB / 0.5517 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006914/0.4594, allocations: 115.3 kB / 0.5518 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.4708, allocations: 6.081 MB / 0.5577 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.4713, allocations: 0.8592 MB / 0.5586 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.4718, allocations: 96.33 kB / 0.5587 GB, free: 4.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.4722, allocations: 191.3 kB / 0.5588 GB, free: 4.145 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4722, allocations: 0 / 0.5588 GB, free: 4.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04896/0.5212, allocations: 13.48 MB / 0.572 GB, free: 6.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.67, allocations: 15.98 kB / 0.572 GB, free: 6.844 MB / 414.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.647515594959259] Failed to read output from testmodel.py, exit status != 0: 12.782753186998889 12.801116634 12.400178848 Calling exit ...