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.0008909/0.0008909, allocations: 72.52 kB / 19.95 MB, free: 4.613 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.0008941/0.0008941, allocations: 169.6 kB / 23.23 MB, free: 1.332 MB / 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.8914/0.8914, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.06671/0.06671, allocations: 18.13 MB / 278.1 MB, free: 11.53 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: "" <> 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: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 415.8 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.439e-05/2.585e-05, allocations: 2.281 kB / 415.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002766/0.002791, allocations: 2.919 MB / 418.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.004187, allocations: 0.9078 MB / 419.7 MB, free: 9.883 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.004354, allocations: 3.438 kB / 419.7 MB, free: 9.883 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.004531, allocations: 66.73 kB / 419.7 MB, free: 9.844 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.004805, allocations: 176.2 kB / 419.9 MB, free: 9.723 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.005307, allocations: 207.2 kB / 420.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006018/0.005909, allocations: 0.7698 MB / 420.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004315/0.00634, allocations: 356.9 kB / 421.2 MB, free: 9.062 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003651/0.006705, allocations: 302.5 kB / 421.5 MB, free: 8.938 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003702/0.007076, allocations: 314.7 kB / 421.8 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.609e-05/0.007172, allocations: 76.56 kB / 421.9 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.905e-05/0.007261, allocations: 76.84 kB / 422 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.007402, allocations: 215.9 kB / 422.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.007606, allocations: 255.5 kB / 422.4 MB, free: 8.586 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000802/0.008408, allocations: 0.8412 MB / 423.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.008412, allocations: 1.594 kB / 423.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.008415, allocations: 4 kB / 423.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.008428, allocations: 3.938 kB / 423.3 MB, free: 8.254 MB / 330.7 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.0013/0.009728, allocations: 0.8372 MB / 424.1 MB, free: 7.715 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.009771, allocations: 9.984 kB / 424.1 MB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.842e-05/0.009859, allocations: 90.98 kB / 424.2 MB, free: 7.645 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.009961, allocations: 63.41 kB / 424.3 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.01037, allocations: 333.8 kB / 424.6 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.823e-05/0.01047, allocations: 110.9 kB / 424.7 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.387e-05/0.01055, allocations: 49.5 kB / 424.8 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.01162, allocations: 0.7352 MB / 425.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.01164, allocations: 192 / 425.5 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.01168, allocations: 24.5 kB / 425.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.01169, allocations: 11.94 kB / 425.5 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009623/0.01265, allocations: 0.599 MB / 426.1 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003239/0.01589, allocations: 2.381 MB / 428.5 MB, free: 5.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007248/0.01662, allocations: 0.5213 MB / 429 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/0.01716, allocations: 385.3 kB / 429.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.0172, allocations: 10.09 kB / 429.4 MB, free: 5.082 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.01721, allocations: 42.03 kB / 429.5 MB, free: 5.035 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 1.793e-06/0.01721, allocations: 0 / 429.5 MB, free: 5.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.00354/0.02075, allocations: 2.188 MB / 431.7 MB, free: 4.172 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.02078, allocations: 58.45 kB / 431.7 MB, free: 4.109 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.02105, allocations: 359.2 kB / 432.1 MB, free: 3.922 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.02109, allocations: 35.86 kB / 432.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.02117, allocations: 238.8 kB / 432.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.618e-05/0.02126, allocations: 195.7 kB / 432.5 MB, free: 3.531 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.02138, allocations: 97.27 kB / 432.6 MB, free: 3.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.02142, allocations: 353.5 kB / 433 MB, free: 3.152 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/0.02195, allocations: 372.5 kB / 433.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.02247, allocations: 430.7 kB / 433.8 MB, free: 2.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003504/0.02597, allocations: 1.997 MB / 435.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.02598, allocations: 0 / 435.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001149/0.02712, allocations: 0.8597 MB / 436.6 MB, free: 1.375 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.02714, allocations: 8 kB / 436.6 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.02715, allocations: 2.25 kB / 436.6 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.02717, allocations: 8.734 kB / 436.6 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002903/0.03007, allocations: 0.9062 MB / 437.5 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.03008, allocations: 4.281 kB / 437.5 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.03037, allocations: 53.06 kB / 437.6 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.0304, allocations: 23.55 kB / 437.6 MB, free: 1.016 MB / 330.7 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.0002561/0.03066, allocations: 210.2 kB / 437.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-05/0.03072, allocations: 53.06 kB / 437.9 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.03183, allocations: 0.8335 MB / 438.7 MB, free: 340 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.03184, allocations: 8.125 kB / 438.7 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.03184, allocations: 1.375 kB / 438.7 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.03185, allocations: 7.922 kB / 438.7 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.03408, allocations: 1.665 MB / 440.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.03408, allocations: 0 / 440.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002835/0.03692, allocations: 0.8855 MB / 441.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.03693, allocations: 4 kB / 441.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.03697, allocations: 19.98 kB / 441.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.03698, allocations: 4 kB / 441.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.03698, allocations: 0 / 441.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.0387, allocations: 1.279 MB / 442.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.009e-05/0.03879, allocations: 47.66 kB / 442.6 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.287e-05/0.03886, allocations: 12 kB / 442.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.03911, allocations: 55.92 kB / 442.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.03923, allocations: 76.3 kB / 442.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.03927, allocations: 16 kB / 442.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001969/0.03946, allocations: 263.2 kB / 443 MB, free: 12.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.03946, allocations: 0 / 443 MB, free: 12.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003724/0.03983, allocations: 148 kB / 443.2 MB, free: 12.37 MB / 346.7 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.001972/0.04181, allocations: 1.831 MB / 445 MB, free: 10.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.04293, allocations: 0.7404 MB / 445.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.04293, allocations: 4 kB / 445.8 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005358/0.04347, allocations: 407 kB / 446.2 MB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.04389, allocations: 113.7 kB / 446.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006856/0.05075, allocations: 6.002 MB / 452.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.05091, allocations: 258 kB / 452.5 MB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002682/0.05118, allocations: 92.34 kB / 452.6 MB, free: 2.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.05145, allocations: 188.4 kB / 452.8 MB, free: 2.555 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.05145, allocations: 0 / 452.8 MB, free: 2.555 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.07645, allocations: 14.36 MB / 467.2 MB, free: 4.438 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.954/7.03, allocations: 4.5 kB / 467.2 MB, free: 4.434 MB / 362.7 MB " [Timeout remaining time 653] (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: 9.053291147574782] Failed to read output from testmodel.py, exit status != 0: 7.118378043174744 7.130545805 7.119971315 Calling exit ...