Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.119/0.119, allocations: 21.62 MB / 36.56 MB, free: 0.875 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.00126/0.00126, allocations: 177.1 kB / 42.82 MB, free: 3.656 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.463/1.463, allocations: 223.2 MB / 272.1 MB, free: 1.352 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.0008681/0.0008681, allocations: 103.6 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.0004075, allocations: 16 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1109, allocations: 55.82 MB / 452.9 MB, free: 6.523 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4752, allocations: 79.41 MB / 0.5199 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.4755, allocations: 78.36 kB / 0.5199 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00794/0.4834, allocations: 2.677 MB / 0.5226 GB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4834, allocations: 0 / 0.5226 GB, free: 12.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.4835, allocations: 7.812 kB / 0.5226 GB, free: 12.68 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007751/0.4842, allocations: 0.5023 MB / 0.5231 GB, free: 12.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.4843, allocations: 7.531 kB / 0.5231 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.4843, allocations: 44.05 kB / 0.5231 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.4844, allocations: 15.34 kB / 0.5231 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.4849, allocations: 284 kB / 0.5234 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.4849, allocations: 3.719 kB / 0.5234 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.4849, allocations: 6.938 kB / 0.5234 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.4851, allocations: 109.9 kB / 0.5235 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.4851, allocations: 0 / 0.5235 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.4852, allocations: 11.19 kB / 0.5235 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4852, allocations: 7.688 kB / 0.5235 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.4854, allocations: 100.9 kB / 0.5236 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.4859, allocations: 431.5 kB / 0.524 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.4862, allocations: 158.2 kB / 0.5242 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.4862, allocations: 0 / 0.5242 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.202e-05/0.4863, allocations: 34.62 kB / 0.5242 GB, free: 11.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.4863, allocations: 0 / 0.5242 GB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009546/0.4872, allocations: 399 kB / 0.5246 GB, free: 11.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.4873, allocations: 54.12 kB / 0.5247 GB, free: 11.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000407/0.4877, allocations: 235.6 kB / 0.5249 GB, free: 11.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.4877, allocations: 25.7 kB / 0.5249 GB, free: 11.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.4877, allocations: 112.5 kB / 0.525 GB, free: 11.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.4878, allocations: 43.64 kB / 0.525 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-06/0.4878, allocations: 0 / 0.525 GB, free: 11.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.905e-05/0.4878, allocations: 330.1 kB / 0.5254 GB, free: 10.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-05/0.4879, allocations: 49.22 kB / 0.5254 GB, free: 10.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.193e-05/0.488, allocations: 59.98 kB / 0.5255 GB, free: 10.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.4881, allocations: 69.05 kB / 0.5255 GB, free: 10.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4882, allocations: 0 / 0.5255 GB, free: 10.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003901/0.4885, allocations: 226.7 kB / 0.5257 GB, free: 10.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4886, allocations: 4.469 kB / 0.5258 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.4886, allocations: 2 kB / 0.5258 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/0.4888, allocations: 60.83 kB / 0.5258 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.4889, allocations: 22 kB / 0.5258 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.49, allocations: 1.504 MB / 0.5273 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.4903, allocations: 33.56 kB / 0.5273 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.4903, allocations: 3.25 kB / 0.5273 GB, free: 9.461 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.4905, allocations: 150.3 kB / 0.5275 GB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.775e-05/0.4905, allocations: 15.59 kB / 0.5275 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.4906, allocations: 26.39 kB / 0.5275 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-06/0.4906, allocations: 8.766 kB / 0.5275 GB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.4906, allocations: 0 / 0.5275 GB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4906, allocations: 0 / 0.5275 GB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.4908, allocations: 243.7 kB / 0.5278 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.4908, allocations: 0 / 0.5278 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.4909, allocations: 14.36 kB / 0.5278 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001614/0.4911, allocations: 56.39 kB / 0.5278 GB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.4911, allocations: 7.109 kB / 0.5278 GB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009426/0.4921, allocations: 1.502 MB / 0.5293 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4921, allocations: 0 / 0.5293 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005223/0.4926, allocations: 382 kB / 0.5297 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.4927, allocations: 103.4 kB / 0.5298 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.4927, allocations: 11.5 kB / 0.5298 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.493, allocations: 27.05 kB / 0.5298 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.493, allocations: 13.72 kB / 0.5298 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.116e-06/0.493, allocations: 0 / 0.5298 GB, free: 7.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003596/0.4934, allocations: 205.1 kB / 0.53 GB, free: 7.473 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4934, allocations: 0 / 0.53 GB, free: 7.473 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.4937, allocations: 33.72 kB / 0.53 GB, free: 7.473 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007024/0.4944, allocations: 0.9205 MB / 0.5309 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004564/0.4949, allocations: 260 kB / 0.5312 GB, free: 6.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4949, allocations: 0 / 0.5312 GB, free: 6.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.4951, allocations: 197 kB / 0.5314 GB, free: 6.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.4954, allocations: 25.48 kB / 0.5314 GB, free: 6.441 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.4977, allocations: 1.247 MB / 0.5326 GB, free: 5.789 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.4979, allocations: 0.7382 MB / 0.5333 GB, free: 5.062 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.137e-05/0.498, allocations: 28.45 kB / 0.5334 GB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.498, allocations: 45.77 kB / 0.5334 GB, free: 5.035 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.498, allocations: 0 / 0.5334 GB, free: 5.035 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.5127, allocations: 3.42 MB / 0.5368 GB, free: 3.434 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.5129, allocations: 179.4 kB / 0.5369 GB, free: 3.199 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.137, allocations: 0 / 0.5369 GB, free: 3.199 MB / 362.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)