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: translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") [/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.09303/0.09303, allocations: 21.61 MB / 36.56 MB, free: 1.047 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.0009864/0.0009864, allocations: 189.9 kB / 42.83 MB, free: 3.781 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.209/1.209, allocations: 223.2 MB / 272.1 MB, free: 1.414 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.0009122/0.0009122, allocations: 101.9 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 8 kB / 397 MB, free: 46.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.07859, allocations: 55.82 MB / 452.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2637/0.3424, allocations: 80.77 MB / 0.5211 GB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001777/0.3426, allocations: 75.09 kB / 0.5212 GB, free: 13.14 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.01128/0.3539, allocations: 3.965 MB / 0.5251 GB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3539, allocations: 0 / 0.5251 GB, free: 12.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.3539, allocations: 7.438 kB / 0.5251 GB, free: 12.6 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.0009413/0.3549, allocations: 0.58 MB / 0.5256 GB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.3549, allocations: 7.531 kB / 0.5257 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.355, allocations: 34.44 kB / 0.5257 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.3555, allocations: 304.4 kB / 0.526 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.3555, allocations: 29.69 kB / 0.526 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.3556, allocations: 30.41 kB / 0.526 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.356, allocations: 289.3 kB / 0.5263 GB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.356, allocations: 7.844 kB / 0.5263 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.3561, allocations: 13.77 kB / 0.5263 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.3561, allocations: 7.688 kB / 0.5263 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.3565, allocations: 215.6 kB / 0.5265 GB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.3583, allocations: 1.191 MB / 0.5277 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.3587, allocations: 211.3 kB / 0.5279 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.3587, allocations: 7.891 kB / 0.5279 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.3587, allocations: 33.67 kB / 0.5279 GB, free: 10.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.3587, allocations: 0 / 0.5279 GB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.00065/0.3594, allocations: 328 kB / 0.5283 GB, free: 10.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.152e-05/0.3594, allocations: 55.97 kB / 0.5283 GB, free: 10.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.3598, allocations: 256 kB / 0.5286 GB, free: 10.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3598, allocations: 29.45 kB / 0.5286 GB, free: 10.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.3599, allocations: 172.8 kB / 0.5288 GB, free: 10.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.36, allocations: 101 kB / 0.5288 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.36, allocations: 11.66 kB / 0.5289 GB, free: 10.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.36, allocations: 338.2 kB / 0.5292 GB, free: 9.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3602, allocations: 93.77 kB / 0.5293 GB, free: 9.949 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.3604, allocations: 191.8 kB / 0.5295 GB, free: 9.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.3607, allocations: 119.8 kB / 0.5296 GB, free: 9.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3607, allocations: 0 / 0.5296 GB, free: 9.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005319/0.3612, allocations: 361.6 kB / 0.5299 GB, free: 9.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.3612, allocations: 11.44 kB / 0.5299 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3613, allocations: 9.469 kB / 0.5299 GB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3613, allocations: 3.719 kB / 0.5299 GB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.3619, allocations: 107.2 kB / 0.53 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3619, allocations: 7.703 kB / 0.53 GB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.3621, allocations: 49.97 kB / 0.5301 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.3621, allocations: 15.09 kB / 0.5301 GB, free: 9.664 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.0001374/0.3623, allocations: 169.1 kB / 0.5303 GB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.3623, allocations: 23.09 kB / 0.5303 GB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/0.3627, allocations: 298.9 kB / 0.5306 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3627, allocations: 3.844 kB / 0.5306 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3628, allocations: 0 / 0.5306 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3628, allocations: 0 / 0.5306 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/0.3632, allocations: 377.1 kB / 0.5309 GB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3632, allocations: 4 kB / 0.5309 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.3635, allocations: 69.7 kB / 0.531 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3635, allocations: 1.344 kB / 0.531 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.3636, allocations: 10.34 kB / 0.531 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3636, allocations: 1.312 kB / 0.531 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.3636, allocations: 1.312 kB / 0.531 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.3641, allocations: 485.2 kB / 0.5315 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.3642, allocations: 108.4 kB / 0.5316 GB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.3642, allocations: 14.52 kB / 0.5316 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.3645, allocations: 26.66 kB / 0.5316 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.3645, allocations: 22.78 kB / 0.5317 GB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.3645, allocations: 7.531 kB / 0.5317 GB, free: 8.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002397/0.3648, allocations: 201.3 kB / 0.5319 GB, free: 8.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3648, allocations: 4 kB / 0.5319 GB, free: 8.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.3651, allocations: 52.14 kB / 0.5319 GB, free: 8.703 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 9.674e-05/0.3652, allocations: 128.4 kB / 0.532 GB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.3655, allocations: 265.6 kB / 0.5323 GB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3656, allocations: 0.625 kB / 0.5323 GB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.3657, allocations: 132.7 kB / 0.5324 GB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.3659, allocations: 32.39 kB / 0.5324 GB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008576/0.3668, allocations: 0.7959 MB / 0.5332 GB, free: 8.016 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.367, allocations: 0.7876 MB / 0.534 GB, free: 7.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.3671, allocations: 45.98 kB / 0.534 GB, free: 7.254 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/0.3672, allocations: 29.91 kB / 0.5341 GB, free: 7.246 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3672, allocations: 0 / 0.5341 GB, free: 7.246 MB / 362.7 MB Notification: Performance of Templates: time 0.003982/0.3712, allocations: 2.267 MB / 0.5363 GB, free: 6.168 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile (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 & ./AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)