Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.09941/0.09941, allocations: 21.62 MB / 36.57 MB, free: 1.086 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.001077/0.001077, allocations: 183.3 kB / 42.83 MB, free: 3.777 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.409/1.409, allocations: 223.2 MB / 272.1 MB, free: 1.793 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.0009012/0.0009009, allocations: 95.56 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002912, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08941/0.08972, allocations: 55.83 MB / 452.9 MB, free: 6.605 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4278, allocations: 79.47 MB / 0.5199 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4281, allocations: 73.73 kB / 0.52 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01156/0.4396, allocations: 3.725 MB / 0.5236 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4397, allocations: 4 kB / 0.5236 GB, free: 12.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.4397, allocations: 4.812 kB / 0.5237 GB, free: 12.56 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001148/0.4409, allocations: 0.6095 MB / 0.5242 GB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.4409, allocations: 10.3 kB / 0.5243 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.441, allocations: 43.69 kB / 0.5243 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.441, allocations: 30.34 kB / 0.5243 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007923/0.4418, allocations: 366.7 kB / 0.5247 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.4418, allocations: 7.312 kB / 0.5247 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.4419, allocations: 17.64 kB / 0.5247 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.4422, allocations: 168.9 kB / 0.5249 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.4422, allocations: 7.906 kB / 0.5249 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.4422, allocations: 11.67 kB / 0.5249 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4422, allocations: 0 / 0.5249 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.4425, allocations: 169.4 kB / 0.525 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008292/0.4433, allocations: 0.5845 MB / 0.5256 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003366/0.4437, allocations: 213.7 kB / 0.5258 GB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.4437, allocations: 3.844 kB / 0.5258 GB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.4437, allocations: 30.56 kB / 0.5259 GB, free: 11.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.402e-06/0.4438, allocations: 8.5 kB / 0.5259 GB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.00165/0.4454, allocations: 0.6307 MB / 0.5265 GB, free: 11.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.4455, allocations: 55.09 kB / 0.5265 GB, free: 11.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006575/0.4461, allocations: 319.3 kB / 0.5268 GB, free: 10.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.4462, allocations: 28.83 kB / 0.5269 GB, free: 10.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/0.4462, allocations: 138.8 kB / 0.527 GB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.4463, allocations: 71.86 kB / 0.5271 GB, free: 10.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.4463, allocations: 15.03 kB / 0.5271 GB, free: 10.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.4464, allocations: 332 kB / 0.5274 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.4465, allocations: 91.72 kB / 0.5275 GB, free: 10.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.4467, allocations: 87.16 kB / 0.5276 GB, free: 10.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.4469, allocations: 111.2 kB / 0.5277 GB, free: 10.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4469, allocations: 3.953 kB / 0.5277 GB, free: 10.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006704/0.4476, allocations: 395.2 kB / 0.5281 GB, free: 10.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.4476, allocations: 7.75 kB / 0.5281 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4476, allocations: 3.984 kB / 0.5281 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.4479, allocations: 91.23 kB / 0.5281 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.4481, allocations: 37.16 kB / 0.5282 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.4495, allocations: 1.751 MB / 0.5299 GB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.4498, allocations: 62.16 kB / 0.53 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.4499, allocations: 3.812 kB / 0.53 GB, free: 8.723 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (21): * Single equations (assignments): 20 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.4501, allocations: 156.7 kB / 0.5301 GB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.366e-05/0.4501, allocations: 23.19 kB / 0.5301 GB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.472e-05/0.4502, allocations: 38.73 kB / 0.5302 GB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4502, allocations: 3.953 kB / 0.5302 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4502, allocations: 3.844 kB / 0.5302 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4502, allocations: 3.938 kB / 0.5302 GB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.4505, allocations: 323.8 kB / 0.5305 GB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4505, allocations: 0 / 0.5305 GB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.4507, allocations: 23.8 kB / 0.5305 GB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002448/0.4509, allocations: 94.36 kB / 0.5306 GB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.4509, allocations: 6.938 kB / 0.5306 GB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.4523, allocations: 1.76 MB / 0.5323 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4523, allocations: 0 / 0.5323 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.4532, allocations: 0.5633 MB / 0.5329 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/0.4533, allocations: 104.1 kB / 0.533 GB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.4533, allocations: 3.984 kB / 0.533 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.4537, allocations: 46.16 kB / 0.533 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.4537, allocations: 19.16 kB / 0.533 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.4538, allocations: 7.844 kB / 0.533 GB, free: 6.477 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005674/0.4543, allocations: 273.4 kB / 0.5333 GB, free: 6.344 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4543, allocations: 0 / 0.5333 GB, free: 6.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003086/0.4547, allocations: 64.84 kB / 0.5334 GB, free: 6.332 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009946/0.4557, allocations: 1.104 MB / 0.5344 GB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005973/0.4563, allocations: 378.4 kB / 0.5348 GB, free: 5.387 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4563, allocations: 0 / 0.5348 GB, free: 5.387 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.4566, allocations: 250.8 kB / 0.535 GB, free: 5.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.4569, allocations: 32.09 kB / 0.5351 GB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.4607, allocations: 1.984 MB / 0.537 GB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.4609, allocations: 0.78 MB / 0.5378 GB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.4611, allocations: 52.72 kB / 0.5378 GB, free: 3.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-05/0.4612, allocations: 68.36 kB / 0.5379 GB, free: 3.547 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4612, allocations: 3.938 kB / 0.5379 GB, free: 3.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.479, allocations: 5.217 MB / 0.543 GB, free: 1.109 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.4792, allocations: 182.3 kB / 0.5432 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.254, allocations: 0 / 0.5432 GB, free: 0.8711 MB / 362.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)