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.001774/0.001774, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002242/0.002242, allocations: 216.4 kB / 23.04 MB, free: 5.074 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.1031/0.1031, allocations: 22.94 MB / 336.2 MB, free: 12.6 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="cs",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="cs",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.001973/0.001973, allocations: 71.89 kB / 472.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3111, allocations: 59.29 MB / 0.5191 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003785/0.3148, allocations: 3.217 MB / 0.5222 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.3164, allocations: 0.952 MB / 0.5232 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.3166, allocations: 7.719 kB / 0.5232 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.3168, allocations: 66.09 kB / 0.5232 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.3171, allocations: 172 kB / 0.5234 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005444/0.3176, allocations: 201.9 kB / 0.5236 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000698/0.3183, allocations: 0.7474 MB / 0.5243 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004813/0.3188, allocations: 359.2 kB / 0.5247 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003794/0.3192, allocations: 318.3 kB / 0.525 GB, free: 6.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004183/0.3196, allocations: 397.1 kB / 0.5254 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.3197, allocations: 77.47 kB / 0.5254 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.3199, allocations: 77.09 kB / 0.5255 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.32, allocations: 210.9 kB / 0.5257 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.3202, allocations: 336.5 kB / 0.526 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006492/0.3209, allocations: 0.7971 MB / 0.5268 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3209, allocations: 0 / 0.5268 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3209, allocations: 0 / 0.5268 GB, free: 5.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.3209, allocations: 0 / 0.5268 GB, free: 5.836 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.001767/0.3227, allocations: 0.8429 MB / 0.5276 GB, free: 5.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3227, allocations: 14.7 kB / 0.5276 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.051e-05/0.3227, allocations: 12.28 kB / 0.5277 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.179e-05/0.3228, allocations: 92.12 kB / 0.5277 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.3229, allocations: 66.22 kB / 0.5278 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.3234, allocations: 334.9 kB / 0.5281 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.3235, allocations: 108.8 kB / 0.5282 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3236, allocations: 54.38 kB / 0.5283 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3252, allocations: 0.6827 MB / 0.5289 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3252, allocations: 1.094 kB / 0.5289 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.188e-05/0.3253, allocations: 21.5 kB / 0.529 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.3253, allocations: 11.34 kB / 0.529 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.3267, allocations: 0.6013 MB / 0.5296 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005318/0.332, allocations: 2.542 MB / 0.5321 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3332, allocations: 0.5183 MB / 0.5326 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009262/0.3341, allocations: 392 kB / 0.5329 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.3341, allocations: 9.688 kB / 0.5329 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3341, allocations: 46.44 kB / 0.533 GB, free: 2.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.034e-06/0.3342, allocations: 0 / 0.533 GB, free: 2.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.006138/0.3403, allocations: 2.179 MB / 0.5351 GB, free: 1.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.3403, allocations: 58.58 kB / 0.5352 GB, free: 1.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.3407, allocations: 359.7 kB / 0.5355 GB, free: 1.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.827e-05/0.3408, allocations: 35.05 kB / 0.5355 GB, free: 1.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3409, allocations: 234.1 kB / 0.5358 GB, free: 1.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.341, allocations: 198.2 kB / 0.536 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.3412, allocations: 100.9 kB / 0.5361 GB, free: 1.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.3413, allocations: 364.3 kB / 0.5364 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008612/0.3422, allocations: 369.8 kB / 0.5368 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008758/0.3431, allocations: 427 kB / 0.5372 GB, free: 428 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007098/0.3501, allocations: 2.001 MB / 0.5391 GB, free: 15.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3502, allocations: 1.219 kB / 0.5391 GB, free: 15.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002269/0.3524, allocations: 0.8532 MB / 0.5399 GB, free: 15.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.3524, allocations: 7.781 kB / 0.54 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3525, allocations: 2.609 kB / 0.54 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.3525, allocations: 10.73 kB / 0.54 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0061/0.3586, allocations: 0.9041 MB / 0.5409 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.09e-05/0.3586, allocations: 5.219 kB / 0.5409 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007842/0.3594, allocations: 52.47 kB / 0.5409 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.254e-05/0.3595, allocations: 22.36 kB / 0.5409 GB, free: 15.21 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.0004803/0.36, allocations: 209.9 kB / 0.5411 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.3601, allocations: 53.03 kB / 0.5412 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.3622, allocations: 0.8275 MB / 0.542 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3622, allocations: 5.5 kB / 0.542 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3622, allocations: 0 / 0.542 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3622, allocations: 3.984 kB / 0.542 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/0.3661, allocations: 1.761 MB / 0.5437 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3661, allocations: 1.406 kB / 0.5437 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006053/0.3722, allocations: 0.8943 MB / 0.5446 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.3722, allocations: 2.5 kB / 0.5446 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.3723, allocations: 19.33 kB / 0.5446 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3723, allocations: 1.688 kB / 0.5446 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3723, allocations: 1.938 kB / 0.5446 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00302/0.3753, allocations: 1.281 MB / 0.5459 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3755, allocations: 44.5 kB / 0.5459 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.3756, allocations: 19.09 kB / 0.5459 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005528/0.3761, allocations: 55.2 kB / 0.546 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.3763, allocations: 74.3 kB / 0.546 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.856e-05/0.3764, allocations: 20.95 kB / 0.5461 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.3767, allocations: 259.9 kB / 0.5463 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3767, allocations: 0 / 0.5463 GB, free: 11.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005558/0.3773, allocations: 142 kB / 0.5465 GB, free: 11.95 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.003298/0.3806, allocations: 1.832 MB / 0.5482 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.3826, allocations: 0.7459 MB / 0.549 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3826, allocations: 1.219 kB / 0.549 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009913/0.3836, allocations: 408.2 kB / 0.5494 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006875/0.3842, allocations: 117 kB / 0.5495 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.3964, allocations: 6.167 MB / 0.5555 GB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.3969, allocations: 0.8502 MB / 0.5563 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004564/0.3974, allocations: 95.33 kB / 0.5564 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.3978, allocations: 193.7 kB / 0.5566 GB, free: 5.133 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3978, allocations: 0 / 0.5566 GB, free: 5.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.4375, allocations: 13.42 MB / 0.5697 GB, free: 9.031 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.02, allocations: 6.812 kB / 0.5697 GB, free: 9.027 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: 16.035630795988254] Failed to read output from testmodel.py, exit status != 0: 13.198923837975599 13.228347333 12.901874726 Calling exit ...