Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.1018/0.1018, allocations: 21.61 MB / 36.56 MB, free: 1.059 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.001916/0.001915, allocations: 190.5 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.347/1.347, allocations: 223.2 MB / 272.1 MB, free: 1.406 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.0008913/0.0008913, allocations: 107.4 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004318/0.0004319, allocations: 15.98 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 55.81 MB / 452.9 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3397/0.4508, allocations: 79.51 MB / 0.52 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.4511, allocations: 75.36 kB / 0.52 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01383/0.4649, allocations: 4.483 MB / 0.5244 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.465, allocations: 0 / 0.5244 GB, free: 12.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.465, allocations: 11.78 kB / 0.5244 GB, free: 12.57 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0015/0.4665, allocations: 0.6877 MB / 0.5251 GB, free: 12.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.4666, allocations: 7.812 kB / 0.5251 GB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.248e-05/0.4666, allocations: 47.36 kB / 0.5252 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.067e-05/0.4667, allocations: 32.25 kB / 0.5252 GB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009652/0.4677, allocations: 424.9 kB / 0.5256 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.4677, allocations: 14.16 kB / 0.5256 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.4678, allocations: 18.72 kB / 0.5256 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.4681, allocations: 185.6 kB / 0.5258 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.4681, allocations: 3.812 kB / 0.5258 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.4682, allocations: 14.28 kB / 0.5258 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.4682, allocations: 3.844 kB / 0.5258 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.4685, allocations: 204.8 kB / 0.526 GB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.4697, allocations: 0.6469 MB / 0.5266 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006641/0.4704, allocations: 259.7 kB / 0.5269 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.4705, allocations: 11.83 kB / 0.5269 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.4705, allocations: 33.56 kB / 0.5269 GB, free: 11.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.424e-06/0.4705, allocations: 0 / 0.5269 GB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001681/0.4722, allocations: 0.6838 MB / 0.5276 GB, free: 10.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.4722, allocations: 51.41 kB / 0.5277 GB, free: 10.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008321/0.4731, allocations: 388.9 kB / 0.528 GB, free: 10.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.4731, allocations: 25.7 kB / 0.528 GB, free: 10.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.633e-05/0.4732, allocations: 152.9 kB / 0.5282 GB, free: 10.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.4732, allocations: 85.69 kB / 0.5283 GB, free: 10.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.4733, allocations: 0 / 0.5283 GB, free: 10.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.4733, allocations: 349.5 kB / 0.5286 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.4735, allocations: 96.25 kB / 0.5287 GB, free: 10.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.4736, allocations: 108 kB / 0.5288 GB, free: 10 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.4738, allocations: 138.4 kB / 0.5289 GB, free: 9.973 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4738, allocations: 0 / 0.5289 GB, free: 9.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007194/0.4746, allocations: 437.3 kB / 0.5294 GB, free: 9.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.4746, allocations: 3.812 kB / 0.5294 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4746, allocations: 0 / 0.5294 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000348/0.475, allocations: 100.6 kB / 0.5295 GB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.4752, allocations: 38.2 kB / 0.5295 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.4766, allocations: 1.747 MB / 0.5312 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.4771, allocations: 71 kB / 0.5313 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.4771, allocations: 8.812 kB / 0.5313 GB, free: 8.359 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0002442/0.4773, allocations: 168.3 kB / 0.5314 GB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.818e-05/0.4774, allocations: 27.48 kB / 0.5315 GB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.518e-05/0.4775, allocations: 54.94 kB / 0.5315 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4775, allocations: 2.5 kB / 0.5315 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.4776, allocations: 1.688 kB / 0.5315 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4776, allocations: 3.984 kB / 0.5315 GB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003854/0.478, allocations: 359.6 kB / 0.5319 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.478, allocations: 4 kB / 0.5319 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.4782, allocations: 36.48 kB / 0.5319 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002838/0.4785, allocations: 92.86 kB / 0.532 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.4785, allocations: 7.781 kB / 0.532 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.4798, allocations: 1.744 MB / 0.5337 GB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4798, allocations: 3.906 kB / 0.5337 GB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008483/0.4807, allocations: 0.6059 MB / 0.5343 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.414e-05/0.4808, allocations: 123.9 kB / 0.5344 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.4808, allocations: 7.703 kB / 0.5344 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/0.4812, allocations: 55.14 kB / 0.5345 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.663e-05/0.4813, allocations: 18.97 kB / 0.5345 GB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.4813, allocations: 7.906 kB / 0.5345 GB, free: 6.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007243/0.4821, allocations: 335.3 kB / 0.5348 GB, free: 5.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4821, allocations: 0 / 0.5348 GB, free: 5.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004133/0.4825, allocations: 76.84 kB / 0.5349 GB, free: 5.906 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.00114/0.4836, allocations: 1.167 MB / 0.536 GB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006587/0.4843, allocations: 412.5 kB / 0.5364 GB, free: 4.941 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4843, allocations: 0 / 0.5364 GB, free: 4.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.4847, allocations: 266.2 kB / 0.5367 GB, free: 4.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.485, allocations: 35.22 kB / 0.5367 GB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.4895, allocations: 2.388 MB / 0.539 GB, free: 3.715 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.4897, allocations: 0.7949 MB / 0.5398 GB, free: 2.973 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.4899, allocations: 64.83 kB / 0.5399 GB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.49, allocations: 83.38 kB / 0.54 GB, free: 2.93 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.49, allocations: 0 / 0.54 GB, free: 2.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.5072, allocations: 6.054 MB / 0.5459 GB, free: 112 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.5074, allocations: 182.2 kB / 0.546 GB, free: 15.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.405, allocations: 0 / 0.546 GB, free: 15.87 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)