Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.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.Typical_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",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.09632/0.09632, allocations: 21.62 MB / 36.57 MB, free: 1.062 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.001024/0.001024, allocations: 183.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.374/1.374, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.0009605/0.0009605, allocations: 113.6 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003322, allocations: 12 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 55.81 MB / 452.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4073/0.51, allocations: 80.06 MB / 0.5205 GB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.5102, allocations: 78.3 kB / 0.5206 GB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01554/0.5258, allocations: 5.038 MB / 0.5255 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5258, allocations: 4 kB / 0.5255 GB, free: 12.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.5258, allocations: 8.031 kB / 0.5255 GB, free: 12.35 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001495/0.5273, allocations: 0.6772 MB / 0.5262 GB, free: 11.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.5274, allocations: 13.12 kB / 0.5262 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.872e-05/0.5275, allocations: 45.17 kB / 0.5262 GB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.5276, allocations: 33.22 kB / 0.5263 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.5286, allocations: 422.1 kB / 0.5267 GB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.5286, allocations: 11.22 kB / 0.5267 GB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.859e-05/0.5287, allocations: 11.53 kB / 0.5267 GB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.529, allocations: 172.2 kB / 0.5268 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.529, allocations: 3.953 kB / 0.5268 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.5291, allocations: 7.562 kB / 0.5269 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.5291, allocations: 3.906 kB / 0.5269 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.5294, allocations: 186.4 kB / 0.527 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009095/0.5303, allocations: 0.6113 MB / 0.5276 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.5308, allocations: 248.6 kB / 0.5279 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.5309, allocations: 4.625 kB / 0.5279 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.5309, allocations: 35.94 kB / 0.5279 GB, free: 10.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.5309, allocations: 3.938 kB / 0.5279 GB, free: 10.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006046/0.5315, allocations: 346.8 kB / 0.5282 GB, free: 10.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.448e-05/0.5315, allocations: 54.97 kB / 0.5283 GB, free: 10.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008158/0.5324, allocations: 388.3 kB / 0.5287 GB, free: 10.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.5324, allocations: 29.48 kB / 0.5287 GB, free: 10.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.693e-05/0.5325, allocations: 161.6 kB / 0.5288 GB, free: 10.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.064e-05/0.5325, allocations: 80.89 kB / 0.5289 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.5326, allocations: 3.875 kB / 0.5289 GB, free: 10.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.5326, allocations: 345.8 kB / 0.5293 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.5328, allocations: 84.53 kB / 0.5293 GB, free: 9.945 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.5329, allocations: 88.53 kB / 0.5294 GB, free: 9.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.5331, allocations: 101.7 kB / 0.5295 GB, free: 9.918 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5331, allocations: 0 / 0.5295 GB, free: 9.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004155/0.5335, allocations: 324.5 kB / 0.5298 GB, free: 9.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.5335, allocations: 7.719 kB / 0.5298 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.5336, allocations: 0 / 0.5298 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.5336, allocations: 0 / 0.5298 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.5338, allocations: 45.83 kB / 0.5299 GB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.5338, allocations: 0 / 0.5299 GB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.5342, allocations: 65.77 kB / 0.5299 GB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.5343, allocations: 16.89 kB / 0.53 GB, free: 9.777 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] FA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Act2.y:VARIABLE(start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Act1.y:VARIABLE(start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (28): * Single equations (assignments): 28 * 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.0001996/0.5345, allocations: 162.7 kB / 0.5301 GB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.5345, allocations: 30.84 kB / 0.5301 GB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005015/0.5351, allocations: 305.8 kB / 0.5304 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.5351, allocations: 3.844 kB / 0.5304 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5351, allocations: 0 / 0.5304 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.5351, allocations: 0 / 0.5304 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003129/0.5354, allocations: 351.6 kB / 0.5308 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5354, allocations: 3.984 kB / 0.5308 GB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.5357, allocations: 48.61 kB / 0.5308 GB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.5357, allocations: 0 / 0.5308 GB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.5358, allocations: 12.64 kB / 0.5308 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.5358, allocations: 5.25 kB / 0.5308 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5358, allocations: 0 / 0.5308 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006503/0.5364, allocations: 498.1 kB / 0.5313 GB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.5365, allocations: 111.9 kB / 0.5314 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.567e-05/0.5366, allocations: 15.86 kB / 0.5314 GB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.537, allocations: 54.2 kB / 0.5315 GB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.5371, allocations: 12.05 kB / 0.5315 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.5371, allocations: 11.59 kB / 0.5315 GB, free: 8.895 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007008/0.5378, allocations: 330.6 kB / 0.5318 GB, free: 8.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5378, allocations: 0 / 0.5318 GB, free: 8.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002994/0.5381, allocations: 65.5 kB / 0.5319 GB, free: 8.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,FA2.x_scaled[1],FA1.x_scaled[1]) * 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 (23): * Single equations (assignments): 23 * 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.0007611/0.5389, allocations: 1.041 MB / 0.5329 GB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003714/0.5393, allocations: 235.9 kB / 0.5331 GB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5393, allocations: 0 / 0.5331 GB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.5395, allocations: 119.8 kB / 0.5332 GB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.5398, allocations: 54.98 kB / 0.5333 GB, free: 7.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.544, allocations: 2.266 MB / 0.5355 GB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.5442, allocations: 0.7962 MB / 0.5363 GB, free: 6.133 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001712/0.5444, allocations: 56.84 kB / 0.5363 GB, free: 6.117 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.5445, allocations: 92.34 kB / 0.5364 GB, free: 6.102 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5445, allocations: 4 kB / 0.5364 GB, free: 6.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.5619, allocations: 5.541 MB / 0.5418 GB, free: 3.547 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001352/0.5621, allocations: 188.6 kB / 0.542 GB, free: 3.301 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.499, allocations: 0 / 0.542 GB, free: 3.301 MB / 362.7 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)