Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.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.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",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.1003/0.1003, 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.001052/0.001051, allocations: 183.3 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.455/1.455, 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.0008746/0.0008747, allocations: 107.3 kB / 328.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003741, allocations: 16 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09398, allocations: 55.81 MB / 452.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3413/0.4353, allocations: 80.78 MB / 0.5212 GB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.4355, allocations: 78.61 kB / 0.5213 GB, free: 13.07 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:50:3-50:19:writable] Warning: Connecting two signal sources while connecting iTS to TS. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:51:3-51:19:writable] Warning: Connecting two signal sources while connecting iTR to TR. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:50:3-50:19:writable] Warning: Connecting two signal sources while connecting iTS to TS. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:51:3-51:19:writable] Warning: Connecting two signal sources while connecting iTR to TR. Notification: Performance of FrontEnd - DAE generated: time 0.01056/0.4461, allocations: 3.963 MB / 0.5251 GB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4461, allocations: 0 / 0.5251 GB, free: 12.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.4462, allocations: 11.33 kB / 0.5252 GB, free: 12.49 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009293/0.4471, allocations: 0.5733 MB / 0.5257 GB, free: 12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.4472, allocations: 7.438 kB / 0.5257 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.483e-05/0.4472, allocations: 71.75 kB / 0.5258 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.4473, allocations: 34.72 kB / 0.5258 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.4478, allocations: 305.6 kB / 0.5261 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.4478, allocations: 22.72 kB / 0.5261 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.4479, allocations: 29.78 kB / 0.5262 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004211/0.4483, allocations: 297.6 kB / 0.5265 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.4483, allocations: 3.531 kB / 0.5265 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.4484, allocations: 9.703 kB / 0.5265 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.4484, allocations: 7.781 kB / 0.5265 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003806/0.4488, allocations: 222.2 kB / 0.5267 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.4506, allocations: 1.187 MB / 0.5278 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004572/0.4511, allocations: 219.1 kB / 0.5281 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.4511, allocations: 240 / 0.5281 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.4512, allocations: 36.89 kB / 0.5281 GB, free: 10.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.122e-06/0.4512, allocations: 0 / 0.5281 GB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006238/0.4518, allocations: 331.3 kB / 0.5284 GB, free: 10.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.4519, allocations: 51.41 kB / 0.5285 GB, free: 10.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/0.4522, allocations: 256.6 kB / 0.5287 GB, free: 10.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.4523, allocations: 36.23 kB / 0.5287 GB, free: 10.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.954e-05/0.4523, allocations: 169.4 kB / 0.5289 GB, free: 10.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.625e-05/0.4524, allocations: 96.7 kB / 0.529 GB, free: 10.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.4524, allocations: 7.656 kB / 0.529 GB, free: 10.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.995e-05/0.4525, allocations: 346 kB / 0.5293 GB, free: 9.738 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.4527, allocations: 92.86 kB / 0.5294 GB, free: 9.723 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.4529, allocations: 179.8 kB / 0.5296 GB, free: 9.613 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.4531, allocations: 131.6 kB / 0.5297 GB, free: 9.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4531, allocations: 0 / 0.5297 GB, free: 9.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004964/0.4536, allocations: 363.5 kB / 0.5301 GB, free: 9.496 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.4536, allocations: 11.62 kB / 0.5301 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4537, allocations: 0.8125 kB / 0.5301 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.4537, allocations: 11.69 kB / 0.5301 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.4543, allocations: 97.25 kB / 0.5302 GB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.4543, allocations: 4.5 kB / 0.5302 GB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.4545, allocations: 57.34 kB / 0.5302 GB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.4546, allocations: 15.16 kB / 0.5302 GB, free: 9.441 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(start = y_filter.y_start fixed = true ) "Connector of Real output signal" type: Real 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: 11 * Number of states: 0 () * Number of discrete variables: 9 (PI_1.HIsat,PI_1.LOsat,PI_1.TS,PI_2.HIsat,PI_2.LOsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001776/0.4548, allocations: 174.7 kB / 0.5304 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.814e-05/0.4548, allocations: 23.31 kB / 0.5304 GB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.4553, allocations: 302 kB / 0.5307 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4553, allocations: 3.906 kB / 0.5307 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4553, allocations: 0 / 0.5307 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.4553, allocations: 3.984 kB / 0.5307 GB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004603/0.4558, allocations: 378.8 kB / 0.5311 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4558, allocations: 3.969 kB / 0.5311 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003717/0.4562, allocations: 65.97 kB / 0.5312 GB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4562, allocations: 3.844 kB / 0.5312 GB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.4562, allocations: 11.58 kB / 0.5312 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.4562, allocations: 0 / 0.5312 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4562, allocations: 0 / 0.5312 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005134/0.4567, allocations: 485.9 kB / 0.5316 GB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.4568, allocations: 112.3 kB / 0.5317 GB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.4569, allocations: 3.938 kB / 0.5317 GB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.4571, allocations: 27.22 kB / 0.5318 GB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.927e-05/0.4572, allocations: 27.42 kB / 0.5318 GB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.4572, allocations: 11.73 kB / 0.5318 GB, free: 8.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002867/0.4575, allocations: 203.7 kB / 0.532 GB, free: 8.469 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4575, allocations: 0 / 0.532 GB, free: 8.469 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003137/0.4578, allocations: 55.34 kB / 0.5321 GB, free: 8.469 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_1.TS,PI_2.HIsat,PI_2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * 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.0007765/0.4586, allocations: 1.028 MB / 0.5331 GB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.459, allocations: 274.6 kB / 0.5333 GB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4591, allocations: 0 / 0.5333 GB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.4592, allocations: 126.5 kB / 0.5334 GB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.4595, allocations: 23.47 kB / 0.5335 GB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.4625, allocations: 3.518 MB / 0.5369 GB, free: 5.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.4627, allocations: 0.784 MB / 0.5377 GB, free: 4.387 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.4629, allocations: 53.95 kB / 0.5377 GB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.463, allocations: 106.4 kB / 0.5378 GB, free: 4.34 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4631, allocations: 3.938 kB / 0.5378 GB, free: 4.336 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.4853, allocations: 5.1 MB / 0.5428 GB, free: 2.008 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002662/0.4856, allocations: 162.8 kB / 0.543 GB, free: 1.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.354, allocations: 0 / 0.543 GB, free: 1.77 MB / 362.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)