Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.1016/0.1016, allocations: 21.62 MB / 36.57 MB, free: 1.039 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.001027/0.001027, allocations: 183.4 kB / 42.83 MB, free: 3.785 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.434/1.434, allocations: 223.2 MB / 272.1 MB, free: 1.387 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.0008937/0.0008937, allocations: 100.3 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.000281, allocations: 12 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09527/0.09557, allocations: 55.83 MB / 452.9 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3203/0.4159, allocations: 80.35 MB / 0.5208 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.4161, allocations: 70.47 kB / 0.5209 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01324/0.4294, allocations: 4.777 MB / 0.5255 GB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4294, allocations: 0 / 0.5255 GB, free: 12.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.4294, allocations: 7.844 kB / 0.5255 GB, free: 12.58 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008778/0.4303, allocations: 0.5894 MB / 0.5261 GB, free: 12.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.4304, allocations: 11.67 kB / 0.5261 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.4304, allocations: 40.84 kB / 0.5262 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.4305, allocations: 25.19 kB / 0.5262 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.4311, allocations: 325.8 kB / 0.5265 GB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.4311, allocations: 6.469 kB / 0.5265 GB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.4312, allocations: 18.75 kB / 0.5265 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.4314, allocations: 161.9 kB / 0.5267 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.4314, allocations: 0 / 0.5267 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.4315, allocations: 6.531 kB / 0.5267 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4315, allocations: 0 / 0.5267 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.4317, allocations: 149.5 kB / 0.5268 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.4324, allocations: 497.2 kB / 0.5273 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.4328, allocations: 209 kB / 0.5275 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.4328, allocations: 0 / 0.5275 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.4331, allocations: 197.5 kB / 0.5277 GB, free: 11.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.4331, allocations: 0 / 0.5277 GB, free: 11.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001306/0.4344, allocations: 0.7039 MB / 0.5284 GB, free: 10.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.4344, allocations: 78.3 kB / 0.5285 GB, free: 10.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004953/0.435, allocations: 289.1 kB / 0.5287 GB, free: 10.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.435, allocations: 33.58 kB / 0.5288 GB, free: 10.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.4351, allocations: 127 kB / 0.5289 GB, free: 10.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.4351, allocations: 72.09 kB / 0.5289 GB, free: 10.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.4351, allocations: 0 / 0.5289 GB, free: 10.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.4352, allocations: 335.8 kB / 0.5293 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.4353, allocations: 95.22 kB / 0.5294 GB, free: 9.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.4355, allocations: 94.81 kB / 0.5294 GB, free: 9.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.4356, allocations: 137.4 kB / 0.5296 GB, free: 9.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4356, allocations: 0 / 0.5296 GB, free: 9.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006627/0.4363, allocations: 428.3 kB / 0.53 GB, free: 9.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.4364, allocations: 33.23 kB / 0.53 GB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4364, allocations: 0 / 0.53 GB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.4366, allocations: 56.05 kB / 0.5301 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.4367, allocations: 24.09 kB / 0.5301 GB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.4378, allocations: 1.509 MB / 0.5316 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.4381, allocations: 50.02 kB / 0.5316 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.4381, allocations: 3.844 kB / 0.5316 GB, free: 8.336 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: C.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: 7 ($whenCondition1,SP.a,SP.b,SP.last,$PRE.SP.nextEvent,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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.000184/0.4383, allocations: 198.7 kB / 0.5318 GB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.4384, allocations: 22.97 kB / 0.5318 GB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.632e-05/0.4384, allocations: 32.89 kB / 0.5319 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4385, allocations: 3.656 kB / 0.5319 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4385, allocations: 0 / 0.5319 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4385, allocations: 8.859 kB / 0.5319 GB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.4387, allocations: 298.9 kB / 0.5322 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4387, allocations: 0 / 0.5322 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.4388, allocations: 18.97 kB / 0.5322 GB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.439, allocations: 55.08 kB / 0.5322 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.439, allocations: 7.094 kB / 0.5322 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009416/0.44, allocations: 1.517 MB / 0.5337 GB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.44, allocations: 0 / 0.5337 GB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008013/0.4408, allocations: 0.5851 MB / 0.5343 GB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.4409, allocations: 104.5 kB / 0.5344 GB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.4409, allocations: 3.969 kB / 0.5344 GB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.4411, allocations: 34.98 kB / 0.5344 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.4412, allocations: 11.52 kB / 0.5344 GB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.4412, allocations: 7.688 kB / 0.5344 GB, free: 6.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004118/0.4417, allocations: 242.9 kB / 0.5347 GB, free: 6.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4417, allocations: 0 / 0.5347 GB, free: 6.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.442, allocations: 81.2 kB / 0.5348 GB, free: 6.039 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],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0009527/0.443, allocations: 1.111 MB / 0.5358 GB, free: 5.305 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005482/0.4435, allocations: 429.5 kB / 0.5363 GB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4435, allocations: 4 kB / 0.5363 GB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.4438, allocations: 315 kB / 0.5366 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.444, allocations: 30.69 kB / 0.5366 GB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.4467, allocations: 1.788 MB / 0.5383 GB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.4469, allocations: 0.7695 MB / 0.5391 GB, free: 3.332 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.865e-05/0.447, allocations: 28.62 kB / 0.5391 GB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.366e-05/0.4471, allocations: 68.22 kB / 0.5392 GB, free: 3.309 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.4471, allocations: 0 / 0.5392 GB, free: 3.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.4662, allocations: 4.926 MB / 0.544 GB, free: 1.004 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.4664, allocations: 183.9 kB / 0.5442 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.324, allocations: 11.88 kB / 0.5442 GB, free: 0.7578 MB / 362.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)