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.001304/0.001304, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001505/0.001505, allocations: 210.5 kB / 23.01 MB, free: 4.625 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.1102/0.1102, allocations: 24.03 MB / 337.2 MB, free: 11.32 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) 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.00226/0.00226, allocations: 63.89 kB / 474.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3739, allocations: 59.58 MB / 0.5217 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004763/0.3787, allocations: 2.925 MB / 0.5245 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3805, allocations: 0.9096 MB / 0.5254 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.3807, allocations: 8.875 kB / 0.5254 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.3809, allocations: 63.84 kB / 0.5255 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003596/0.3812, allocations: 177.4 kB / 0.5257 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005745/0.3818, allocations: 201.2 kB / 0.5258 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007268/0.3826, allocations: 0.7446 MB / 0.5266 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005539/0.3831, allocations: 353.9 kB / 0.5269 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.3836, allocations: 319.9 kB / 0.5272 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005396/0.3841, allocations: 357.8 kB / 0.5276 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.3843, allocations: 77.72 kB / 0.5276 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.3844, allocations: 77.06 kB / 0.5277 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.3846, allocations: 202.9 kB / 0.5279 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00035/0.385, allocations: 295.3 kB / 0.5282 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.3861, allocations: 0.7987 MB / 0.529 GB, free: 6.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3861, allocations: 0 / 0.529 GB, free: 6.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3861, allocations: 0 / 0.529 GB, free: 6.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3861, allocations: 3.938 kB / 0.529 GB, free: 6.281 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.002135/0.3882, allocations: 0.8473 MB / 0.5298 GB, free: 5.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/0.3883, allocations: 11.73 kB / 0.5298 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.3884, allocations: 90.62 kB / 0.5299 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.3886, allocations: 69.62 kB / 0.53 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006587/0.3892, allocations: 329.3 kB / 0.5303 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.3894, allocations: 110 kB / 0.5304 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3895, allocations: 53.16 kB / 0.5304 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.3912, allocations: 0.7374 MB / 0.5311 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.3913, allocations: 0.7031 kB / 0.5311 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.471e-05/0.3913, allocations: 20.62 kB / 0.5312 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.3913, allocations: 16.06 kB / 0.5312 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3928, allocations: 0.6038 MB / 0.5318 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.3981, allocations: 2.367 MB / 0.5341 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.3994, allocations: 0.5427 MB / 0.5346 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000937/0.4003, allocations: 401.6 kB / 0.535 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.4004, allocations: 6.672 kB / 0.535 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.4004, allocations: 38.02 kB / 0.535 GB, free: 3.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.124e-06/0.4004, allocations: 1.188 kB / 0.535 GB, free: 3.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006834/0.4072, allocations: 2.22 MB / 0.5372 GB, free: 2.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.4073, allocations: 57.66 kB / 0.5373 GB, free: 2.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.4077, allocations: 354.1 kB / 0.5376 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.4078, allocations: 35.66 kB / 0.5376 GB, free: 1.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.4079, allocations: 234.4 kB / 0.5379 GB, free: 1.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.4081, allocations: 202.5 kB / 0.5381 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.4083, allocations: 98.59 kB / 0.5381 GB, free: 1.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.693e-05/0.4084, allocations: 356.3 kB / 0.5385 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009055/0.4093, allocations: 377.5 kB / 0.5388 GB, free: 1.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000932/0.4102, allocations: 424.4 kB / 0.5393 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006899/0.4171, allocations: 2.039 MB / 0.5412 GB, free: 140 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4171, allocations: 0 / 0.5412 GB, free: 140 kB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002157/0.4193, allocations: 0.8639 MB / 0.5421 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4193, allocations: 5.125 kB / 0.5421 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4193, allocations: 2.688 kB / 0.5421 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.4194, allocations: 4.125 kB / 0.5421 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006013/0.4254, allocations: 0.9132 MB / 0.543 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.4254, allocations: 3.906 kB / 0.543 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007339/0.4261, allocations: 62.11 kB / 0.5431 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.4262, allocations: 22.03 kB / 0.5431 GB, free: 15.34 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.0005182/0.4267, allocations: 196.6 kB / 0.5433 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.4268, allocations: 44 kB / 0.5433 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002143/0.429, allocations: 0.8481 MB / 0.5441 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.429, allocations: 6.5 kB / 0.5441 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.429, allocations: 0 / 0.5441 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.429, allocations: 3.984 kB / 0.5441 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00388/0.4329, allocations: 1.672 MB / 0.5458 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4329, allocations: 0 / 0.5458 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006102/0.439, allocations: 0.9035 MB / 0.5467 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.959e-05/0.439, allocations: 3.5 kB / 0.5467 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/0.4392, allocations: 21.05 kB / 0.5467 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.198e-05/0.4392, allocations: 7.625 kB / 0.5467 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.4392, allocations: 5.438 kB / 0.5467 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003417/0.4426, allocations: 1.292 MB / 0.548 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.4429, allocations: 43.17 kB / 0.548 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.443, allocations: 21.11 kB / 0.548 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006551/0.4437, allocations: 56.44 kB / 0.5481 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.4439, allocations: 81 kB / 0.5481 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/0.444, allocations: 20.47 kB / 0.5482 GB, free: 12.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004003/0.4444, allocations: 260.1 kB / 0.5484 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4444, allocations: 0 / 0.5484 GB, free: 12.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007589/0.4451, allocations: 146.8 kB / 0.5486 GB, free: 12.15 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.003805/0.4489, allocations: 1.861 MB / 0.5504 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002337/0.4513, allocations: 0.7559 MB / 0.5511 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4513, allocations: 1.469 kB / 0.5511 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.4523, allocations: 421.3 kB / 0.5515 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.4532, allocations: 116.4 kB / 0.5516 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.4683, allocations: 6.072 MB / 0.5576 GB, free: 5.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.4687, allocations: 254.6 kB / 0.5578 GB, free: 5.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005864/0.4693, allocations: 96.33 kB / 0.5579 GB, free: 5.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.4698, allocations: 187.3 kB / 0.5581 GB, free: 5.387 MB / 398.1 MB Notification: Performance of SimCode: time 2.195e-06/0.4698, allocations: 0 / 0.5581 GB, free: 5.387 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/0.5356, allocations: 14.36 MB / 0.5721 GB, free: 7.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.13, allocations: 15.52 kB / 0.5721 GB, free: 7.262 MB / 414.1 MB " [Timeout remaining time 648] (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.055916825775057] Failed to read output from testmodel.py, exit status != 0: 12.249601597897708 12.266945536 11.877259983 Calling exit ...