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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1028/0.1028, allocations: 21.61 MB / 36.56 MB, free: 1.074 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 186.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.2 MB / 272.1 MB, free: 1.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009094/0.0009094, allocations: 90.69 kB / 328.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005122/0.0005121, allocations: 11.98 kB / 397.1 MB, free: 46.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 55.82 MB / 452.9 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4443, allocations: 84.46 MB / 0.5248 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4446, allocations: 73.36 kB / 0.5249 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02198/0.4666, allocations: 8.867 MB / 0.5335 GB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4667, allocations: 0 / 0.5335 GB, free: 9.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.4667, allocations: 7.906 kB / 0.5335 GB, free: 9.707 MB / 362.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.001729/0.4684, allocations: 0.8194 MB / 0.5343 GB, free: 9.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4685, allocations: 11.38 kB / 0.5344 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.4687, allocations: 94.39 kB / 0.5344 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.4688, allocations: 66.19 kB / 0.5345 GB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005511/0.4694, allocations: 375.2 kB / 0.5349 GB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.4695, allocations: 113.5 kB / 0.535 GB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.4696, allocations: 54 kB / 0.535 GB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.4711, allocations: 0.794 MB / 0.5358 GB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.4711, allocations: 0 / 0.5358 GB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.118e-05/0.4712, allocations: 26.91 kB / 0.5358 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4712, allocations: 11.66 kB / 0.5358 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.4725, allocations: 0.6586 MB / 0.5365 GB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004894/0.4774, allocations: 2.723 MB / 0.5391 GB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009679/0.4784, allocations: 0.5719 MB / 0.5397 GB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.4784, allocations: 12.27 kB / 0.5397 GB, free: 6.949 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.4784, allocations: 42.06 kB / 0.5397 GB, free: 6.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.825e-06/0.4785, allocations: 3.984 kB / 0.5398 GB, free: 6.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.005365/0.4838, allocations: 2.47 MB / 0.5422 GB, free: 6.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.4839, allocations: 63.53 kB / 0.5422 GB, free: 6.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.4842, allocations: 313.8 kB / 0.5425 GB, free: 5.953 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.767e-05/0.4842, allocations: 37.27 kB / 0.5426 GB, free: 5.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.479e-05/0.4843, allocations: 223.4 kB / 0.5428 GB, free: 5.777 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.4845, allocations: 192 kB / 0.543 GB, free: 5.641 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.4845, allocations: 7.562 kB / 0.543 GB, free: 5.641 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.4846, allocations: 352.1 kB / 0.5433 GB, free: 5.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007432/0.4853, allocations: 417.2 kB / 0.5437 GB, free: 5.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/0.4861, allocations: 451 kB / 0.5441 GB, free: 5.094 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005554/0.4916, allocations: 1.842 MB / 0.5459 GB, free: 4.605 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4917, allocations: 0 / 0.5459 GB, free: 4.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001768/0.4934, allocations: 0.9229 MB / 0.5468 GB, free: 4.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.4936, allocations: 0.6203 MB / 0.5474 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4936, allocations: 0 / 0.5474 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.4936, allocations: 3.969 kB / 0.5474 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005576/0.4992, allocations: 1.2 MB / 0.5486 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.4992, allocations: 4 kB / 0.5486 GB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006025/0.4999, allocations: 78.67 kB / 0.5487 GB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/0.4999, allocations: 15.38 kB / 0.5487 GB, free: 3.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.4999, allocations: 4 kB / 0.5487 GB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001655/0.5016, allocations: 0.8655 MB / 0.5496 GB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.5016, allocations: 8.094 kB / 0.5496 GB, free: 2.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.072e-06/0.5016, allocations: 4 kB / 0.5496 GB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005423/0.5071, allocations: 1.19 MB / 0.5507 GB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.5071, allocations: 7.938 kB / 0.5507 GB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/0.5077, allocations: 79.42 kB / 0.5508 GB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.5077, allocations: 22.92 kB / 0.5508 GB, free: 1.191 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004061/0.5081, allocations: 283.4 kB / 0.5511 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.5083, allocations: 43.44 kB / 0.5511 GB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.51, allocations: 0.9073 MB / 0.552 GB, free: 248 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.51, allocations: 8 kB / 0.552 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5101, allocations: 0 / 0.552 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.5101, allocations: 0 / 0.552 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/0.5136, allocations: 1.895 MB / 0.5539 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.5136, allocations: 4 kB / 0.5539 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005956/0.5196, allocations: 1.178 MB / 0.555 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/0.5196, allocations: 11.92 kB / 0.5551 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-05/0.5197, allocations: 19.42 kB / 0.5551 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5197, allocations: 0 / 0.5551 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.5197, allocations: 4 kB / 0.5551 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/0.5224, allocations: 1.416 MB / 0.5565 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.5226, allocations: 120 kB / 0.5566 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/0.5227, allocations: 23.69 kB / 0.5566 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/0.5233, allocations: 70.31 kB / 0.5567 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.5235, allocations: 74.05 kB / 0.5567 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.354e-05/0.5235, allocations: 19.3 kB / 0.5567 GB, free: 12.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002918/0.5238, allocations: 252.5 kB / 0.557 GB, free: 11.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5238, allocations: 0 / 0.557 GB, free: 11.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007912/0.5246, allocations: 244.9 kB / 0.5572 GB, free: 11.75 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003054/0.5277, allocations: 2.184 MB / 0.5594 GB, free: 9.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002782/0.5305, allocations: 1.346 MB / 0.5607 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5305, allocations: 0 / 0.5607 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008805/0.5314, allocations: 461.2 kB / 0.5611 GB, free: 8.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004842/0.5319, allocations: 90.39 kB / 0.5612 GB, free: 8.527 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005318/0.5372, allocations: 3.563 MB / 0.5647 GB, free: 5.066 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.5377, allocations: 0.8655 MB / 0.5655 GB, free: 4.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006499/0.5383, allocations: 136.3 kB / 0.5657 GB, free: 4.047 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.5387, allocations: 188.3 kB / 0.5658 GB, free: 3.98 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5387, allocations: 0 / 0.5658 GB, free: 3.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.5655, allocations: 11.43 MB / 0.577 GB, free: 8.766 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.5657, allocations: 186 kB / 0.5772 GB, free: 8.523 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.653, allocations: 3.938 kB / 0.5772 GB, free: 8.52 MB / 394.7 MB (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/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --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)