Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.1187/0.1187, allocations: 21.61 MB / 36.56 MB, free: 1.086 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.001088/0.001088, allocations: 182.4 kB / 42.83 MB, free: 3.789 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.301/1.301, allocations: 223.2 MB / 272.1 MB, free: 1.375 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.0008081/0.0008081, allocations: 99.62 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003105/0.0003105, allocations: 8 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07628/0.07661, allocations: 55.82 MB / 452.9 MB, free: 6.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2828/0.3594, allocations: 84.53 MB / 0.5249 GB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.3597, allocations: 71.41 kB / 0.5249 GB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02211/0.3818, allocations: 8.919 MB / 0.5336 GB, free: 9.445 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3818, allocations: 0 / 0.5336 GB, free: 9.445 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.178e-05/0.3819, allocations: 11.34 kB / 0.5337 GB, free: 9.445 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001623/0.3835, allocations: 0.8204 MB / 0.5345 GB, free: 8.848 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3835, allocations: 11.38 kB / 0.5345 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.3837, allocations: 91.98 kB / 0.5346 GB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3838, allocations: 69.67 kB / 0.5346 GB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.3843, allocations: 378.4 kB / 0.535 GB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.3844, allocations: 113.4 kB / 0.5351 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.771e-05/0.3845, allocations: 54 kB / 0.5351 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.386, allocations: 0.7921 MB / 0.5359 GB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.386, allocations: 7.828 kB / 0.5359 GB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.1e-05/0.3861, allocations: 19.28 kB / 0.5359 GB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.3861, allocations: 15.47 kB / 0.536 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3874, allocations: 0.663 MB / 0.5366 GB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004755/0.3922, allocations: 2.708 MB / 0.5393 GB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.3932, allocations: 0.5967 MB / 0.5398 GB, free: 6.684 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-05/0.3933, allocations: 8.062 kB / 0.5398 GB, free: 6.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.3933, allocations: 41.95 kB / 0.5399 GB, free: 6.641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 1.923e-06/0.3933, allocations: 0 / 0.5399 GB, free: 6.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=54): time 0.005437/0.3987, allocations: 2.498 MB / 0.5423 GB, free: 5.895 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.3988, allocations: 55.69 kB / 0.5424 GB, free: 5.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.399, allocations: 321.2 kB / 0.5427 GB, free: 5.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.3991, allocations: 32.95 kB / 0.5427 GB, free: 5.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.832e-05/0.3992, allocations: 229.8 kB / 0.5429 GB, free: 5.512 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.3993, allocations: 192.2 kB / 0.5431 GB, free: 5.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.3994, allocations: 13.78 kB / 0.5431 GB, free: 5.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.3994, allocations: 349.4 kB / 0.5435 GB, free: 5.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/0.4002, allocations: 419.1 kB / 0.5439 GB, free: 4.961 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007466/0.4009, allocations: 451.1 kB / 0.5443 GB, free: 4.832 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.4065, allocations: 1.867 MB / 0.5461 GB, free: 4.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4065, allocations: 0 / 0.5461 GB, free: 4.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001692/0.4082, allocations: 0.9303 MB / 0.547 GB, free: 4.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.4083, allocations: 0.5291 MB / 0.5475 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4083, allocations: 3.844 kB / 0.5475 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.4084, allocations: 3.844 kB / 0.5475 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005796/0.4142, allocations: 1.217 MB / 0.5487 GB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.4142, allocations: 4 kB / 0.5487 GB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/0.4148, allocations: 82.27 kB / 0.5488 GB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-05/0.4148, allocations: 23.42 kB / 0.5488 GB, free: 2.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.4149, allocations: 4 kB / 0.5488 GB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001626/0.4165, allocations: 0.8595 MB / 0.5497 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.4165, allocations: 7.938 kB / 0.5497 GB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/0.4165, allocations: 8.094 kB / 0.5497 GB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0056/0.4221, allocations: 1.206 MB / 0.5509 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4221, allocations: 8 kB / 0.5509 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.4227, allocations: 75.69 kB / 0.551 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.4227, allocations: 22.92 kB / 0.551 GB, free: 0.6875 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0003865/0.4231, allocations: 284.1 kB / 0.5512 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.945e-05/0.4232, allocations: 43.53 kB / 0.5513 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.4251, allocations: 0.9261 MB / 0.5522 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4252, allocations: 8 kB / 0.5522 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4252, allocations: 0 / 0.5522 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4252, allocations: 3.984 kB / 0.5522 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003584/0.4288, allocations: 1.915 MB / 0.5541 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4288, allocations: 0 / 0.5541 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006214/0.435, allocations: 1.198 MB / 0.5552 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/0.435, allocations: 4 kB / 0.5552 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.381e-05/0.4351, allocations: 14.61 kB / 0.5553 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.4352, allocations: 7.984 kB / 0.5553 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.4352, allocations: 0 / 0.5553 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.4379, allocations: 1.446 MB / 0.5567 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.4381, allocations: 116.1 kB / 0.5568 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/0.4382, allocations: 14.81 kB / 0.5568 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006003/0.4388, allocations: 75.17 kB / 0.5569 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.4389, allocations: 79.25 kB / 0.557 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.439, allocations: 15.75 kB / 0.557 GB, free: 11.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002578/0.4393, allocations: 258.8 kB / 0.5572 GB, free: 11.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4393, allocations: 0 / 0.5572 GB, free: 11.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007271/0.44, allocations: 254.8 kB / 0.5575 GB, free: 11.18 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.002978/0.443, allocations: 2.209 MB / 0.5596 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00279/0.4458, allocations: 1.373 MB / 0.561 GB, free: 8.297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4458, allocations: 0 / 0.561 GB, free: 8.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.4467, allocations: 461.8 kB / 0.5614 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.4472, allocations: 92.19 kB / 0.5615 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004586/0.4518, allocations: 3.328 MB / 0.5647 GB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.4522, allocations: 0.8706 MB / 0.5656 GB, free: 3.797 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006644/0.4529, allocations: 132.2 kB / 0.5657 GB, free: 3.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.4533, allocations: 187.8 kB / 0.5659 GB, free: 3.605 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.4533, allocations: 0 / 0.5659 GB, free: 3.605 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.48, allocations: 11.5 MB / 0.5771 GB, free: 8.312 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.4802, allocations: 185.9 kB / 0.5773 GB, free: 8.074 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.659, allocations: 7.938 kB / 0.5773 GB, free: 8.066 MB / 394.7 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)