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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.1254/0.1254, allocations: 21.41 MB / 36.67 MB, free: 1.148 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009414/0.0009412, allocations: 180.5 kB / 42.86 MB, free: 3.867 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205 MB / 253.9 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007034/0.0007032, allocations: 93.16 kB / 307.2 MB, free: 11.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003665, allocations: 12.17 kB / 372.5 MB, free: 59.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.0917, allocations: 52.52 MB / 425 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002607/0.09435, allocations: 2.051 MB / 427 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007983/0.09517, allocations: 0.663 MB / 427.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.09528, allocations: 3.938 kB / 427.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.09556, allocations: 39.7 kB / 427.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.0957, allocations: 43.66 kB / 427.8 MB, free: 11.48 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.0959, allocations: 107.9 kB / 427.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.09614, allocations: 312 kB / 428.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.09628, allocations: 98.25 kB / 428.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.09639, allocations: 111.5 kB / 428.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.09653, allocations: 139.4 kB / 428.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.09657, allocations: 12 kB / 428.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.714e-05/0.0966, allocations: 16 kB / 428.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-05/0.09668, allocations: 79.66 kB / 428.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.09e-05/0.09676, allocations: 123.2 kB / 428.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.09692, allocations: 239.1 kB / 429 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09693, allocations: 0 / 429 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09694, allocations: 4 kB / 429 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.09695, allocations: 0 / 429 MB, free: 10.27 MB / 298.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.0009915/0.09794, allocations: 0.6316 MB / 429.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.09799, allocations: 8.031 kB / 429.7 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.022e-05/0.09806, allocations: 32.56 kB / 429.7 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.09844, allocations: 307.1 kB / 430 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.09847, allocations: 20.94 kB / 430 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.09853, allocations: 32.38 kB / 430 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.09892, allocations: 302.5 kB / 430.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.09894, allocations: 3.938 kB / 430.3 MB, free: 8.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.09897, allocations: 12 kB / 430.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.09898, allocations: 4 kB / 430.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.09932, allocations: 218 kB / 430.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1009, allocations: 1.187 MB / 431.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.1012, allocations: 217.8 kB / 432 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.1014, allocations: 93.3 kB / 432.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.381e-05/0.1014, allocations: 4.234 kB / 432.1 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.1015, allocations: 38.73 kB / 432.1 MB, free: 6.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.735e-06/0.1015, allocations: 0 / 432.1 MB, free: 6.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005642/0.102, allocations: 327.9 kB / 432.4 MB, free: 6.664 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.175e-05/0.1021, allocations: 59.39 kB / 432.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/0.1024, allocations: 282.5 kB / 432.7 MB, free: 6.309 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.1024, allocations: 37.64 kB / 432.8 MB, free: 6.266 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.1025, allocations: 180.4 kB / 433 MB, free: 6.086 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.182e-05/0.1026, allocations: 94.64 kB / 433.1 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.094e-05/0.1027, allocations: 85.91 kB / 433.1 MB, free: 5.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.1027, allocations: 338.8 kB / 433.5 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.1029, allocations: 96.75 kB / 433.6 MB, free: 5.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.103, allocations: 180.8 kB / 433.7 MB, free: 5.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.1045, allocations: 0.6096 MB / 434.4 MB, free: 4.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1046, allocations: 0 / 434.4 MB, free: 4.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004521/0.105, allocations: 368.8 kB / 434.7 MB, free: 4.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.105, allocations: 7.938 kB / 434.7 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1051, allocations: 4 kB / 434.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1051, allocations: 7.984 kB / 434.7 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.1056, allocations: 95.83 kB / 434.8 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.1056, allocations: 7.984 kB / 434.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.1059, allocations: 55.97 kB / 434.9 MB, free: 4.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.1059, allocations: 16 kB / 434.9 MB, free: 4.055 MB / 298.7 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false 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 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001997/0.1061, allocations: 158.1 kB / 435.1 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.742e-05/0.1061, allocations: 35.5 kB / 435.1 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.1066, allocations: 296.4 kB / 435.4 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1066, allocations: 4 kB / 435.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1066, allocations: 3.984 kB / 435.4 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1066, allocations: 0 / 435.4 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.1071, allocations: 369.3 kB / 435.7 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1071, allocations: 0 / 435.7 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003319/0.1074, allocations: 75.89 kB / 435.8 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1075, allocations: 3.938 kB / 435.8 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.1075, allocations: 8 kB / 435.8 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1075, allocations: 3.938 kB / 435.8 MB, free: 3.055 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1075, allocations: 4 kB / 435.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005277/0.108, allocations: 479.5 kB / 436.3 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.1081, allocations: 112.7 kB / 436.4 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.1081, allocations: 11.94 kB / 436.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.1084, allocations: 23.97 kB / 436.5 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.317e-05/0.1084, allocations: 19.97 kB / 436.5 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.1085, allocations: 12 kB / 436.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002515/0.1087, allocations: 205.9 kB / 436.7 MB, free: 2.168 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1087, allocations: 0 / 436.7 MB, free: 2.168 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002763/0.109, allocations: 59.84 kB / 436.7 MB, free: 2.109 MB / 298.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_2.HIsat,PI_2.LOsat,not1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.856e-05/0.1091, allocations: 99.25 kB / 436.8 MB, free: 2.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.1095, allocations: 280.3 kB / 437.1 MB, free: 1.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1095, allocations: 3.938 kB / 437.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.1097, allocations: 127.8 kB / 437.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.11, allocations: 36.48 kB / 437.3 MB, free: 1.566 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.1111, allocations: 0.7946 MB / 438.1 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.1113, allocations: 0.7795 MB / 438.9 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001559/0.1115, allocations: 46.89 kB / 438.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.1116, allocations: 31.44 kB / 438.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1116, allocations: 4 kB / 438.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Templates: time 0.005328/0.1169, allocations: 2.334 MB / 441.3 MB, free: 13.53 MB / 314.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)