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.0911/0.0911, allocations: 21.6 MB / 37.4 MB, free: 0.7617 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.001079/0.001079, allocations: 188.5 kB / 43.63 MB, free: 3.562 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.271/1.271, allocations: 205.1 MB / 254.8 MB, free: 14.24 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.0008772/0.0008772, allocations: 100 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 66.12 kB / 372.3 MB, free: 59.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08757, allocations: 51.96 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.00265/0.09026, allocations: 2.062 MB / 426.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008327/0.09112, allocations: 0.663 MB / 427 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.772e-05/0.09123, allocations: 0 / 427 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.0915, allocations: 39.66 kB / 427.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.09165, allocations: 35.72 kB / 427.1 MB, free: 11.69 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.0001856/0.09185, allocations: 115.9 kB / 427.2 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.09208, allocations: 308 kB / 427.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.09224, allocations: 94.25 kB / 427.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.984e-05/0.09234, allocations: 115.5 kB / 427.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.0925, allocations: 143.3 kB / 427.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.09254, allocations: 16 kB / 427.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.876e-05/0.09258, allocations: 16 kB / 427.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.09266, allocations: 75.72 kB / 428 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.457e-05/0.09274, allocations: 123.1 kB / 428.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.09291, allocations: 247.1 kB / 428.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.09292, allocations: 0 / 428.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.09293, allocations: 4 kB / 428.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.09294, allocations: 0 / 428.3 MB, free: 10.46 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.001035/0.09397, allocations: 0.6238 MB / 429 MB, free: 9.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.09401, allocations: 8.031 kB / 429 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.09407, allocations: 32.56 kB / 429 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.09446, allocations: 315.1 kB / 429.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.09449, allocations: 24.94 kB / 429.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.09454, allocations: 32.38 kB / 429.4 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.09491, allocations: 294.5 kB / 429.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.09493, allocations: 3.938 kB / 429.7 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.09496, allocations: 15.94 kB / 429.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.09497, allocations: 8 kB / 429.7 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003328/0.09531, allocations: 218 kB / 429.9 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.09682, allocations: 1.187 MB / 431.1 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.09719, allocations: 207.2 kB / 431.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.09734, allocations: 93.23 kB / 431.4 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.09738, allocations: 4.234 kB / 431.4 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.09741, allocations: 42.73 kB / 431.4 MB, free: 7.184 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.834e-06/0.09741, allocations: 0 / 431.4 MB, free: 7.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005221/0.09794, allocations: 331.9 kB / 431.7 MB, free: 6.855 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.659e-05/0.09798, allocations: 55.39 kB / 431.8 MB, free: 6.789 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.0983, allocations: 282.5 kB / 432.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.09832, allocations: 29.7 kB / 432.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.09839, allocations: 180.4 kB / 432.3 MB, free: 6.289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.347e-05/0.09844, allocations: 90.66 kB / 432.4 MB, free: 6.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-05/0.09853, allocations: 77.97 kB / 432.4 MB, free: 6.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.09859, allocations: 342.8 kB / 432.8 MB, free: 5.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.09874, allocations: 104.7 kB / 432.9 MB, free: 5.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.09894, allocations: 176.8 kB / 433 MB, free: 5.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.1005, allocations: 0.6057 MB / 433.7 MB, free: 4.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1005, allocations: 4 kB / 433.7 MB, free: 4.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004392/0.1009, allocations: 364.7 kB / 434 MB, free: 4.457 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1009, allocations: 11.94 kB / 434 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.101, allocations: 3.984 kB / 434 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.101, allocations: 8.297 kB / 434 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/0.1015, allocations: 103.8 kB / 434.1 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1015, allocations: 7.984 kB / 434.1 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.1018, allocations: 51.66 kB / 434.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.1018, allocations: 16 kB / 434.2 MB, free: 4.258 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.0001386/0.1019, allocations: 154.1 kB / 434.4 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.102, allocations: 31.56 kB / 434.4 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004022/0.1024, allocations: 296.4 kB / 434.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1024, allocations: 4 kB / 434.7 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1024, allocations: 4 kB / 434.7 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1024, allocations: 0 / 434.7 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004092/0.1028, allocations: 373.3 kB / 435.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1028, allocations: 7.938 kB / 435.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.1032, allocations: 75.89 kB / 435.1 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1032, allocations: 3.938 kB / 435.1 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.1032, allocations: 8 kB / 435.1 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1032, allocations: 3.938 kB / 435.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1032, allocations: 0 / 435.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/0.1065, allocations: 2.739 MB / 437.9 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-05/0.1066, allocations: 104.8 kB / 438 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.1066, allocations: 19.92 kB / 438 MB, free: 244 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1068, allocations: 23.97 kB / 438 MB, free: 220 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.1069, allocations: 15.97 kB / 438.1 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.1069, allocations: 15.98 kB / 438.1 MB, free: 188 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002634/0.1072, allocations: 198 kB / 438.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1072, allocations: 0 / 438.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003783/0.1076, allocations: 79.84 kB / 438.3 MB, free: 15.91 MB / 314.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 0.0001113/0.1077, allocations: 111.2 kB / 438.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000428/0.1082, allocations: 275.9 kB / 438.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1082, allocations: 0 / 438.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.1083, allocations: 127.8 kB / 438.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.1087, allocations: 35.05 kB / 438.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.11, allocations: 1.012 MB / 439.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.1103, allocations: 0.7836 MB / 440.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000177/0.1105, allocations: 58.94 kB / 440.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.1106, allocations: 27.44 kB / 440.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of SimCode: time 4.1e-07/0.1106, allocations: 0 / 440.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of Templates: time 0.006058/0.1167, allocations: 3.272 MB / 444 MB, free: 10.14 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)