Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001391/0.001391, 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.001735/0.001735, allocations: 216.8 kB / 22.25 MB, free: 5.125 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.953 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.1092/0.1092, allocations: 24.13 MB / 336.6 MB, free: 11.38 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.002754/0.002754, allocations: 71.91 kB / 474.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3835, allocations: 59.6 MB / 0.5212 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003654/0.3871, allocations: 3.224 MB / 0.5243 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3887, allocations: 0.9469 MB / 0.5253 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.3889, allocations: 8.594 kB / 0.5253 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.3892, allocations: 65.91 kB / 0.5253 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004386/0.3896, allocations: 177.1 kB / 0.5255 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.3903, allocations: 204.7 kB / 0.5257 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007275/0.391, allocations: 0.7436 MB / 0.5264 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004792/0.3915, allocations: 362.6 kB / 0.5268 GB, free: 6.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004158/0.3919, allocations: 319.3 kB / 0.5271 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.3924, allocations: 397.4 kB / 0.5274 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.3925, allocations: 76.22 kB / 0.5275 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.3926, allocations: 78.06 kB / 0.5276 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.3928, allocations: 206.8 kB / 0.5278 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002803/0.393, allocations: 341.5 kB / 0.5281 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008126/0.3939, allocations: 0.7928 MB / 0.5289 GB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3939, allocations: 1.25 kB / 0.5289 GB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3939, allocations: 0 / 0.5289 GB, free: 5.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.3939, allocations: 0 / 0.5289 GB, free: 5.828 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001907/0.3958, allocations: 0.8378 MB / 0.5297 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3958, allocations: 10.34 kB / 0.5297 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.396, allocations: 95.36 kB / 0.5298 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.3961, allocations: 70.95 kB / 0.5299 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005689/0.3967, allocations: 330.9 kB / 0.5302 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.3968, allocations: 109.4 kB / 0.5303 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.847e-05/0.3969, allocations: 49.67 kB / 0.5303 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.3985, allocations: 0.6891 MB / 0.531 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.3985, allocations: 0 / 0.531 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.3985, allocations: 24.47 kB / 0.531 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.3986, allocations: 11.19 kB / 0.5311 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.4, allocations: 0.6016 MB / 0.5316 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005345/0.4054, allocations: 2.54 MB / 0.5341 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.4065, allocations: 0.52 MB / 0.5346 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008192/0.4073, allocations: 393.1 kB / 0.535 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.348e-05/0.4074, allocations: 8.297 kB / 0.535 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.4074, allocations: 38.83 kB / 0.535 GB, free: 2.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.395e-06/0.4074, allocations: 0 / 0.535 GB, free: 2.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.00596/0.4133, allocations: 2.182 MB / 0.5372 GB, free: 1.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.4134, allocations: 61.97 kB / 0.5372 GB, free: 1.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.4138, allocations: 358.6 kB / 0.5376 GB, free: 1.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.4138, allocations: 36.8 kB / 0.5376 GB, free: 1.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.4139, allocations: 234.3 kB / 0.5378 GB, free: 1.273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4141, allocations: 197.6 kB / 0.538 GB, free: 1.117 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.4142, allocations: 101.1 kB / 0.5381 GB, free: 1.062 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.179e-05/0.4143, allocations: 359.9 kB / 0.5385 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008119/0.4151, allocations: 369.6 kB / 0.5388 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008297/0.416, allocations: 431.7 kB / 0.5392 GB, free: 416 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006607/0.4226, allocations: 2.003 MB / 0.5412 GB, free: 15.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4226, allocations: 1.188 kB / 0.5412 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002/0.4246, allocations: 0.8467 MB / 0.542 GB, free: 15.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4246, allocations: 10.88 kB / 0.542 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4246, allocations: 1.375 kB / 0.542 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.4246, allocations: 4.125 kB / 0.542 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005625/0.4302, allocations: 0.9036 MB / 0.5429 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.4303, allocations: 3.281 kB / 0.5429 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006364/0.4309, allocations: 61.55 kB / 0.543 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.431, allocations: 21.91 kB / 0.543 GB, free: 14.83 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: 8 * 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 (68): * Single equations (assignments): 68 * 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.0004273/0.4314, allocations: 210.3 kB / 0.5432 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.4315, allocations: 48.83 kB / 0.5432 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.4336, allocations: 0.8271 MB / 0.5441 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4336, allocations: 10.17 kB / 0.5441 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.4336, allocations: 0 / 0.5441 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4336, allocations: 0 / 0.5441 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004179/0.4378, allocations: 1.764 MB / 0.5458 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.4378, allocations: 2.281 kB / 0.5458 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0057/0.4435, allocations: 0.8898 MB / 0.5467 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/0.4435, allocations: 2.344 kB / 0.5467 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.4437, allocations: 18.58 kB / 0.5467 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.4437, allocations: 7.25 kB / 0.5467 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4437, allocations: 5 kB / 0.5467 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.4468, allocations: 1.273 MB / 0.5479 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.447, allocations: 44.14 kB / 0.548 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.4471, allocations: 21.11 kB / 0.548 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/0.4476, allocations: 55.53 kB / 0.548 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.4478, allocations: 72.2 kB / 0.5481 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.4478, allocations: 23.39 kB / 0.5481 GB, free: 11.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003917/0.4482, allocations: 260.7 kB / 0.5484 GB, free: 11.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4482, allocations: 0 / 0.5484 GB, free: 11.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005443/0.4488, allocations: 149.2 kB / 0.5485 GB, free: 11.57 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003153/0.4519, allocations: 1.833 MB / 0.5503 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001943/0.4539, allocations: 0.7462 MB / 0.551 GB, free: 9.945 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4539, allocations: 0 / 0.551 GB, free: 9.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.4548, allocations: 408.6 kB / 0.5514 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006809/0.4555, allocations: 104.8 kB / 0.5515 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.4678, allocations: 6.163 MB / 0.5576 GB, free: 5.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.4684, allocations: 0.8586 MB / 0.5584 GB, free: 4.602 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.4689, allocations: 96.33 kB / 0.5585 GB, free: 4.504 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/0.4693, allocations: 187.4 kB / 0.5587 GB, free: 4.32 MB / 398.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4693, allocations: 0 / 0.5587 GB, free: 4.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0497/0.5191, allocations: 13.4 MB / 0.5718 GB, free: 7.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.87, allocations: 4.062 kB / 0.5718 GB, free: 7.117 MB / 414.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.86914325505495] Failed to read output from testmodel.py, exit status != 0: 12.98805252998136 13.011408646 12.613914099 Calling exit ...