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.001272/0.001272, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001472/0.001472, allocations: 220.4 kB / 23.03 MB, free: 4.945 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1028/0.1028, allocations: 22.94 MB / 336.1 MB, free: 12.44 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.002062/0.002062, allocations: 59.91 kB / 472.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3171, allocations: 59.29 MB / 0.519 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003763/0.3209, allocations: 2.923 MB / 0.5219 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.3223, allocations: 0.8991 MB / 0.5227 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.3225, allocations: 4.094 kB / 0.5227 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.3227, allocations: 70.56 kB / 0.5228 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003195/0.323, allocations: 180.8 kB / 0.523 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.3235, allocations: 196.8 kB / 0.5232 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/0.3242, allocations: 0.7505 MB / 0.5239 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005068/0.3247, allocations: 361.3 kB / 0.5242 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004047/0.3251, allocations: 316 kB / 0.5245 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004312/0.3255, allocations: 397.2 kB / 0.5249 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3256, allocations: 80.91 kB / 0.525 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.3258, allocations: 77.97 kB / 0.5251 GB, free: 6.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.3259, allocations: 202.9 kB / 0.5253 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002648/0.3262, allocations: 301.3 kB / 0.5256 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000803/0.327, allocations: 0.7937 MB / 0.5263 GB, free: 6.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.327, allocations: 0 / 0.5263 GB, free: 6.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.327, allocations: 0 / 0.5263 GB, free: 6.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.327, allocations: 5.094 kB / 0.5263 GB, free: 6.348 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.002024/0.329, allocations: 0.8407 MB / 0.5272 GB, free: 5.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3291, allocations: 11.94 kB / 0.5272 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.543e-05/0.3291, allocations: 16.47 kB / 0.5272 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.816e-05/0.3292, allocations: 91.67 kB / 0.5273 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.3294, allocations: 70.03 kB / 0.5273 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/0.3299, allocations: 331.2 kB / 0.5277 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.33, allocations: 109.8 kB / 0.5278 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.3301, allocations: 54.05 kB / 0.5278 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.3317, allocations: 0.7336 MB / 0.5285 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.3317, allocations: 0 / 0.5285 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.3318, allocations: 21.66 kB / 0.5285 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3318, allocations: 11.91 kB / 0.5286 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.3332, allocations: 0.5975 MB / 0.5291 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005009/0.3382, allocations: 2.368 MB / 0.5315 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.3394, allocations: 0.519 MB / 0.532 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008819/0.3403, allocations: 394.4 kB / 0.5323 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.3403, allocations: 6.297 kB / 0.5323 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.3404, allocations: 42.81 kB / 0.5324 GB, free: 3.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.334e-06/0.3404, allocations: 0 / 0.5324 GB, free: 3.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005769/0.3461, allocations: 2.182 MB / 0.5345 GB, free: 2.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.3462, allocations: 57.81 kB / 0.5346 GB, free: 2.215 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/0.3466, allocations: 360.2 kB / 0.5349 GB, free: 2.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.3466, allocations: 40.27 kB / 0.535 GB, free: 1.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3467, allocations: 232.8 kB / 0.5352 GB, free: 1.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.3468, allocations: 198.8 kB / 0.5354 GB, free: 1.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.347, allocations: 101.8 kB / 0.5355 GB, free: 1.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.904e-05/0.3471, allocations: 360.4 kB / 0.5358 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/0.348, allocations: 373.7 kB / 0.5362 GB, free: 1.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008275/0.3488, allocations: 420.4 kB / 0.5366 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006687/0.3555, allocations: 1.999 MB / 0.5385 GB, free: 380 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3555, allocations: 0 / 0.5385 GB, free: 380 kB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002034/0.3575, allocations: 0.8573 MB / 0.5394 GB, free: 44 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3575, allocations: 6.938 kB / 0.5394 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3576, allocations: 1.344 kB / 0.5394 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3576, allocations: 4.703 kB / 0.5394 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005895/0.3635, allocations: 0.901 MB / 0.5402 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.333e-05/0.3635, allocations: 9.641 kB / 0.5403 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/0.3641, allocations: 56 kB / 0.5403 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.3642, allocations: 22.11 kB / 0.5403 GB, free: 15.8 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.0004372/0.3646, allocations: 221 kB / 0.5405 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.3647, allocations: 44.66 kB / 0.5406 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.3667, allocations: 0.8236 MB / 0.5414 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3667, allocations: 10.59 kB / 0.5414 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.3667, allocations: 3.938 kB / 0.5414 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.3668, allocations: 3.984 kB / 0.5414 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/0.3704, allocations: 1.66 MB / 0.543 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3704, allocations: 1.094 kB / 0.543 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005822/0.3762, allocations: 0.8896 MB / 0.5439 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/0.3762, allocations: 3.875 kB / 0.5439 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.705e-05/0.3763, allocations: 22.05 kB / 0.5439 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.283e-06/0.3763, allocations: 2.719 kB / 0.5439 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3763, allocations: 1.156 kB / 0.5439 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.3792, allocations: 1.278 MB / 0.5452 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.3794, allocations: 44.27 kB / 0.5452 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3795, allocations: 17.28 kB / 0.5452 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.38, allocations: 55.44 kB / 0.5453 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.3802, allocations: 72.86 kB / 0.5453 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.3803, allocations: 19.61 kB / 0.5454 GB, free: 12.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003048/0.3806, allocations: 256 kB / 0.5456 GB, free: 12.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3806, allocations: 0 / 0.5456 GB, free: 12.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005367/0.3811, allocations: 146.2 kB / 0.5458 GB, free: 12.64 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.003125/0.3842, allocations: 1.835 MB / 0.5475 GB, free: 11.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.3862, allocations: 0.7507 MB / 0.5483 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3862, allocations: 0 / 0.5483 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009184/0.3871, allocations: 404.9 kB / 0.5487 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006757/0.3878, allocations: 97.28 kB / 0.5488 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.399, allocations: 6.17 MB / 0.5548 GB, free: 6.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3993, allocations: 259.1 kB / 0.555 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000442/0.3997, allocations: 95.42 kB / 0.5551 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.4001, allocations: 190.4 kB / 0.5553 GB, free: 6.461 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4001, allocations: 3.938 kB / 0.5553 GB, free: 6.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.4389, allocations: 13.97 MB / 0.5689 GB, free: 9.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.96, allocations: 15.31 kB / 0.569 GB, free: 9.688 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.982466547982767] Failed to read output from testmodel.py, exit status != 0: 13.138156215078197 13.165095374 12.832898913 Calling exit ...