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.1432/0.1432, allocations: 21.44 MB / 36.39 MB, free: 1.191 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.00121/0.00121, allocations: 178.4 kB / 42.62 MB, free: 3.973 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.69/1.69, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.0009463/0.0009466, allocations: 89.61 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005272/0.0005273, allocations: 9.031 kB / 373.2 MB, free: 59.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 52.95 MB / 426.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002918/0.1389, allocations: 1.653 MB / 427.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1403, allocations: 0.6322 MB / 428.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1405, allocations: 0 / 428.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003564/0.1409, allocations: 27.78 kB / 428.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.1411, allocations: 47.69 kB / 428.5 MB, free: 10.67 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.0003377/0.1415, allocations: 99.86 kB / 428.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000319/0.1418, allocations: 184.2 kB / 428.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.1421, allocations: 74.2 kB / 428.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.1423, allocations: 111.5 kB / 429 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.1426, allocations: 119.4 kB / 429.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.1426, allocations: 8 kB / 429.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.987e-05/0.1427, allocations: 12 kB / 429.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-05/0.1428, allocations: 63.78 kB / 429.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.171e-05/0.1429, allocations: 65.52 kB / 429.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.1431, allocations: 179.6 kB / 429.4 MB, free: 9.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1431, allocations: 4 kB / 429.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1432, allocations: 0 / 429.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1432, allocations: 0 / 429.4 MB, free: 9.766 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.001647/0.1448, allocations: 0.5847 MB / 430 MB, free: 9.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1449, allocations: 8.031 kB / 430 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.368e-05/0.145, allocations: 35.53 kB / 430.1 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/0.1457, allocations: 306 kB / 430.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.1457, allocations: 24.56 kB / 430.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.1458, allocations: 35.91 kB / 430.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.1465, allocations: 290.2 kB / 430.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1465, allocations: 3.938 kB / 430.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1466, allocations: 12 kB / 430.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1466, allocations: 8 kB / 430.7 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006349/0.1472, allocations: 222 kB / 430.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002548/0.1498, allocations: 1.187 MB / 432.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005769/0.1504, allocations: 209.5 kB / 432.3 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.1505, allocations: 4.234 kB / 432.3 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.1505, allocations: 46.75 kB / 432.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 3.086e-06/0.1505, allocations: 0 / 432.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009419/0.1515, allocations: 324.6 kB / 432.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.1515, allocations: 51.41 kB / 432.8 MB, free: 6.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005979/0.1521, allocations: 282.5 kB / 433 MB, free: 5.953 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.1522, allocations: 29.7 kB / 433.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1523, allocations: 168.3 kB / 433.2 MB, free: 5.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.1524, allocations: 102.6 kB / 433.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.337e-05/0.1524, allocations: 8 kB / 433.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.303e-05/0.1525, allocations: 354.6 kB / 433.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.1528, allocations: 92.77 kB / 433.8 MB, free: 5.191 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.1531, allocations: 176.8 kB / 433.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.1534, allocations: 115.7 kB / 434.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1534, allocations: 3.938 kB / 434.1 MB, free: 4.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008534/0.1543, allocations: 364.5 kB / 434.4 MB, free: 4.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1543, allocations: 4 kB / 434.4 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1544, allocations: 7.953 kB / 434.4 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1544, allocations: 4 kB / 434.4 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009776/0.1554, allocations: 107.8 kB / 434.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.1554, allocations: 4 kB / 434.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004911/0.1559, allocations: 59.88 kB / 434.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.156, allocations: 15.98 kB / 434.6 MB, free: 4.309 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 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y,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.000264/0.1563, allocations: 154.2 kB / 434.8 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.1564, allocations: 23.72 kB / 434.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007296/0.1571, allocations: 304.3 kB / 435.1 MB, free: 3.824 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1571, allocations: 7.953 kB / 435.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1571, allocations: 0 / 435.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1572, allocations: 0 / 435.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000728/0.1579, allocations: 377.2 kB / 435.5 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1579, allocations: 0 / 435.5 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000625/0.1586, allocations: 71.89 kB / 435.5 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.1586, allocations: 4 kB / 435.5 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.1586, allocations: 8 kB / 435.5 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1586, allocations: 4 kB / 435.5 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1587, allocations: 3.953 kB / 435.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/0.1596, allocations: 483.5 kB / 436 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/0.1596, allocations: 100.8 kB / 436.1 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.155e-05/0.1597, allocations: 8 kB / 436.1 MB, free: 2.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.1602, allocations: 35.89 kB / 436.2 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.819e-05/0.1603, allocations: 31.91 kB / 436.2 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.1603, allocations: 4 kB / 436.2 MB, free: 2.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004082/0.1607, allocations: 201.9 kB / 436.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1607, allocations: 0 / 436.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004976/0.1613, allocations: 59.84 kB / 436.5 MB, free: 2.367 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 (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.0001404/0.1614, allocations: 107.2 kB / 436.6 MB, free: 2.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007139/0.1621, allocations: 276.5 kB / 436.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1622, allocations: 0 / 436.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.1625, allocations: 131.8 kB / 437 MB, free: 1.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.1629, allocations: 24.56 kB / 437 MB, free: 1.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1645, allocations: 0.7973 MB / 437.8 MB, free: 1.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.1648, allocations: 0.7872 MB / 438.6 MB, free: 204 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002844/0.1651, allocations: 42.95 kB / 438.6 MB, free: 160 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1652, allocations: 31.42 kB / 438.6 MB, free: 128 kB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1652, allocations: 0 / 438.6 MB, free: 128 kB / 298.7 MB Notification: Performance of Templates: time 0.008991/0.1742, allocations: 2.261 MB / 440.9 MB, free: 13.86 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)