Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Containment_elements.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_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",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.1037/0.1037, allocations: 21.61 MB / 36.56 MB, free: 1.07 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.001073/0.001073, allocations: 186.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.408/1.408, allocations: 223.2 MB / 272.1 MB, free: 1.82 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.0009117/0.0009116, allocations: 105.3 kB / 328.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1082, allocations: 55.82 MB / 452.9 MB, free: 6.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3504/0.4587, allocations: 79.83 MB / 0.5203 GB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.459, allocations: 74.67 kB / 0.5204 GB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009238/0.4682, allocations: 3.281 MB / 0.5236 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4682, allocations: 0 / 0.5236 GB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.4683, allocations: 3.938 kB / 0.5236 GB, free: 12.36 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007788/0.4691, allocations: 0.519 MB / 0.5241 GB, free: 11.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.4691, allocations: 16.47 kB / 0.5241 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.4692, allocations: 50.44 kB / 0.5241 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.4692, allocations: 19.41 kB / 0.5242 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.4696, allocations: 278.4 kB / 0.5244 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.4697, allocations: 7.406 kB / 0.5244 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.4697, allocations: 17.69 kB / 0.5244 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/0.4699, allocations: 139.8 kB / 0.5246 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.47, allocations: 4 kB / 0.5246 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.47, allocations: 6.891 kB / 0.5246 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.47, allocations: 7.719 kB / 0.5246 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.4702, allocations: 107.3 kB / 0.5247 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008078/0.471, allocations: 0.6524 MB / 0.5253 GB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007677/0.4717, allocations: 256 kB / 0.5256 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.4718, allocations: 0 / 0.5256 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.4718, allocations: 37.88 kB / 0.5256 GB, free: 11.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.4718, allocations: 0 / 0.5256 GB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009152/0.4727, allocations: 494.9 kB / 0.5261 GB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.4728, allocations: 62.41 kB / 0.5261 GB, free: 10.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.473, allocations: 232.4 kB / 0.5264 GB, free: 10.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.473, allocations: 25.7 kB / 0.5264 GB, free: 10.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.231e-05/0.4731, allocations: 124.2 kB / 0.5265 GB, free: 10.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.4731, allocations: 55.86 kB / 0.5266 GB, free: 10.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-06/0.4731, allocations: 3.688 kB / 0.5266 GB, free: 10.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.706e-05/0.4732, allocations: 330.3 kB / 0.5269 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.387e-05/0.4733, allocations: 71.06 kB / 0.5269 GB, free: 10.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.4734, allocations: 89.95 kB / 0.527 GB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.4735, allocations: 90.44 kB / 0.5271 GB, free: 10.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4735, allocations: 0 / 0.5271 GB, free: 10.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004865/0.474, allocations: 317.3 kB / 0.5274 GB, free: 10.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.4741, allocations: 7.656 kB / 0.5274 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4741, allocations: 0 / 0.5274 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.4743, allocations: 52.17 kB / 0.5275 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.4746, allocations: 54.28 kB / 0.5275 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.476, allocations: 2.613 MB / 0.5301 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.4761, allocations: 15.55 kB / 0.5301 GB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.4762, allocations: 7.188 kB / 0.5301 GB, free: 7.488 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: nonhomogeneous.T[3]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[2]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] homogeneous.T[4]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[3]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001942/0.4764, allocations: 175.8 kB / 0.5303 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.374e-05/0.4764, allocations: 22.98 kB / 0.5303 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.091e-05/0.4765, allocations: 24.78 kB / 0.5303 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.4765, allocations: 3.688 kB / 0.5303 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.4765, allocations: 0 / 0.5303 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.4765, allocations: 3.984 kB / 0.5303 GB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.4768, allocations: 294.6 kB / 0.5306 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.4768, allocations: 3.938 kB / 0.5306 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.4771, allocations: 53.23 kB / 0.5307 GB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/0.4773, allocations: 59.98 kB / 0.5307 GB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.4773, allocations: 3.844 kB / 0.5307 GB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.4786, allocations: 2.625 MB / 0.5333 GB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4786, allocations: 0 / 0.5333 GB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005085/0.4791, allocations: 417.4 kB / 0.5337 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.964e-05/0.4792, allocations: 100.7 kB / 0.5338 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.4792, allocations: 11.78 kB / 0.5338 GB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.4794, allocations: 11.8 kB / 0.5338 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.4795, allocations: 11.77 kB / 0.5338 GB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.4795, allocations: 7.781 kB / 0.5338 GB, free: 4.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001463/0.4796, allocations: 186.1 kB / 0.534 GB, free: 4 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4796, allocations: 0 / 0.534 GB, free: 4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003427/0.48, allocations: 76.75 kB / 0.5341 GB, free: 3.992 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (homogeneous.T[1],homogeneous.T[2],homogeneous.T[3],homogeneous.T[4],nonhomogeneous.T[1],nonhomogeneous.T[2],nonhomogeneous.T[3]) * 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 (12): * Single equations (assignments): 10 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007613/0.4808, allocations: 0.9589 MB / 0.535 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006674/0.4814, allocations: 419.9 kB / 0.5354 GB, free: 18.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4814, allocations: 0 / 0.5354 GB, free: 18.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.4818, allocations: 323.5 kB / 0.5357 GB, free: 18.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.4821, allocations: 60.12 kB / 0.5358 GB, free: 18.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.4847, allocations: 2.166 MB / 0.5379 GB, free: 17.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.4851, allocations: 0.7608 MB / 0.5386 GB, free: 16.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.4853, allocations: 48.73 kB / 0.5387 GB, free: 16.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.4854, allocations: 53.92 kB / 0.5387 GB, free: 16.66 MB / 378.7 MB Notification: Performance of SimCode: time 8.115e-06/0.4854, allocations: 0 / 0.5387 GB, free: 16.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.5038, allocations: 5.64 MB / 0.5442 GB, free: 14.04 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/0.5041, allocations: 197.5 kB / 0.5444 GB, free: 13.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.286, allocations: 0 / 0.5444 GB, free: 13.8 MB / 378.7 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Containment_elements.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Containment_elements_fmu --startTime=0 --stopTime=100000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)