Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",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.105/0.105, allocations: 21.62 MB / 36.56 MB, free: 1.051 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.00118/0.00118, allocations: 183.1 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.423/1.423, allocations: 223.2 MB / 272.1 MB, free: 1.43 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.0008744/0.0008745, allocations: 102.4 kB / 328.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004872/0.0004873, allocations: 8 kB / 397.1 MB, free: 46.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.116, allocations: 55.82 MB / 452.9 MB, free: 6.578 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.542, allocations: 81.28 MB / 0.5217 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.5422, allocations: 72.97 kB / 0.5218 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009969/0.5522, allocations: 4.275 MB / 0.5259 GB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5522, allocations: 0 / 0.5259 GB, free: 12.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.5523, allocations: 3.812 kB / 0.5259 GB, free: 12.45 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009464/0.5532, allocations: 0.5609 MB / 0.5265 GB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.5533, allocations: 11.53 kB / 0.5265 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.529e-05/0.5534, allocations: 52.92 kB / 0.5266 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.378e-05/0.5535, allocations: 30.72 kB / 0.5266 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006415/0.5541, allocations: 358.4 kB / 0.5269 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.5541, allocations: 15.5 kB / 0.5269 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.5542, allocations: 18.94 kB / 0.527 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.5545, allocations: 210.4 kB / 0.5272 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.5545, allocations: 0 / 0.5272 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.5545, allocations: 9.703 kB / 0.5272 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.5545, allocations: 7.281 kB / 0.5272 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.5548, allocations: 126.6 kB / 0.5273 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.5558, allocations: 0.8408 MB / 0.5281 GB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.5561, allocations: 96.34 kB / 0.5282 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.5561, allocations: 1.344 kB / 0.5282 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.5561, allocations: 39.97 kB / 0.5282 GB, free: 10.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.5561, allocations: 0 / 0.5282 GB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003468/0.5565, allocations: 144.5 kB / 0.5284 GB, free: 10.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.5565, allocations: 55.25 kB / 0.5284 GB, free: 10.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.5568, allocations: 260.6 kB / 0.5287 GB, free: 10.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.5568, allocations: 27.02 kB / 0.5287 GB, free: 10.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.5569, allocations: 171 kB / 0.5289 GB, free: 10.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.557, allocations: 37.08 kB / 0.5289 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-06/0.557, allocations: 0 / 0.5289 GB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.508e-05/0.5571, allocations: 338.8 kB / 0.5292 GB, free: 9.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.5571, allocations: 40.5 kB / 0.5293 GB, free: 9.973 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.001e-05/0.5572, allocations: 62.69 kB / 0.5293 GB, free: 9.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.817e-05/0.5573, allocations: 40.11 kB / 0.5294 GB, free: 9.938 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5573, allocations: 3.844 kB / 0.5294 GB, free: 9.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002272/0.5576, allocations: 171.3 kB / 0.5295 GB, free: 9.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.5576, allocations: 4.75 kB / 0.5295 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.5576, allocations: 0 / 0.5295 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.5576, allocations: 3.844 kB / 0.5295 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.5578, allocations: 39 kB / 0.5296 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.5578, allocations: 5.312 kB / 0.5296 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.558, allocations: 14.12 kB / 0.5296 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.558, allocations: 4.219 kB / 0.5296 GB, free: 9.855 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (18): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001964/0.5582, allocations: 147.8 kB / 0.5297 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.5582, allocations: 31.25 kB / 0.5298 GB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002723/0.5585, allocations: 163.5 kB / 0.5299 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.5585, allocations: 0 / 0.5299 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.5585, allocations: 0 / 0.5299 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5585, allocations: 1.875 kB / 0.5299 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.5588, allocations: 284.1 kB / 0.5302 GB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.5588, allocations: 0 / 0.5302 GB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.559, allocations: 33.61 kB / 0.5302 GB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.559, allocations: 0 / 0.5302 GB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.559, allocations: 3.844 kB / 0.5302 GB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.559, allocations: 4 kB / 0.5302 GB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5591, allocations: 0 / 0.5302 GB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/0.5594, allocations: 280.8 kB / 0.5305 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.5595, allocations: 104 kB / 0.5306 GB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.5595, allocations: 5.984 kB / 0.5306 GB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.5596, allocations: 3.25 kB / 0.5306 GB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.866e-05/0.5597, allocations: 7.812 kB / 0.5306 GB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.5597, allocations: 4.5 kB / 0.5306 GB, free: 9.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001621/0.5599, allocations: 212.3 kB / 0.5308 GB, free: 9.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5599, allocations: 0 / 0.5308 GB, free: 9.004 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002798/0.5602, allocations: 56.62 kB / 0.5309 GB, free: 9 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (13): * Single equations (assignments): 13 * 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.0005028/0.5607, allocations: 0.8169 MB / 0.5317 GB, free: 8.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.5609, allocations: 112 kB / 0.5318 GB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.5609, allocations: 0 / 0.5318 GB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.085e-05/0.561, allocations: 46.36 kB / 0.5318 GB, free: 8.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.5613, allocations: 51.75 kB / 0.5319 GB, free: 8.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.5626, allocations: 1.282 MB / 0.5331 GB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.5628, allocations: 0.7542 MB / 0.5339 GB, free: 6.465 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.5629, allocations: 38.19 kB / 0.5339 GB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.563, allocations: 88.66 kB / 0.534 GB, free: 6.43 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.563, allocations: 3.938 kB / 0.534 GB, free: 6.426 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.5791, allocations: 4.875 MB / 0.5388 GB, free: 4.203 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.5793, allocations: 184.4 kB / 0.5389 GB, free: 3.965 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.484, allocations: 3.875 kB / 0.5389 GB, free: 3.965 MB / 362.7 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)