Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.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_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",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.111/0.111, allocations: 21.62 MB / 36.56 MB, free: 1.105 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.001267/0.001267, allocations: 186.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.477/1.477, allocations: 223.2 MB / 272.1 MB, free: 1.348 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.0008918/0.0008917, allocations: 92.33 kB / 328.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003503, allocations: 12 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1001, allocations: 55.82 MB / 452.9 MB, free: 6.527 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3438/0.4439, allocations: 82.83 MB / 0.5232 GB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.4442, allocations: 78.48 kB / 0.5233 GB, free: 13.41 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Interfaces.mo:1329:5-1330:50:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Blocks.Noise.GlobalSeed noise.globalSeed declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Modelica.Blocks.Noise.TruncatedNormalNoise$noise. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.02658/0.4708, allocations: 9.837 MB / 0.5329 GB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4708, allocations: 0 / 0.5329 GB, free: 10.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.4708, allocations: 15.75 kB / 0.5329 GB, free: 10.09 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001385/0.4722, allocations: 0.7602 MB / 0.5337 GB, free: 9.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.4723, allocations: 7.688 kB / 0.5337 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.764e-05/0.4723, allocations: 51.86 kB / 0.5337 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.634e-05/0.4724, allocations: 31 kB / 0.5337 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008241/0.4733, allocations: 416 kB / 0.5341 GB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.4733, allocations: 10.75 kB / 0.5342 GB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.4733, allocations: 18.09 kB / 0.5342 GB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.4737, allocations: 180.5 kB / 0.5343 GB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.4737, allocations: 3.969 kB / 0.5343 GB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.4737, allocations: 3.625 kB / 0.5343 GB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4737, allocations: 7.844 kB / 0.5344 GB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.4741, allocations: 178.9 kB / 0.5345 GB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008183/0.4749, allocations: 0.6237 MB / 0.5351 GB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005633/0.4755, allocations: 276.1 kB / 0.5354 GB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.4755, allocations: 3.844 kB / 0.5354 GB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.4757, allocations: 164.6 kB / 0.5356 GB, free: 8.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 1.433e-06/0.4758, allocations: 0 / 0.5356 GB, free: 8.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.001397/0.4772, allocations: 0.7173 MB / 0.5363 GB, free: 8.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.4772, allocations: 59.27 kB / 0.5363 GB, free: 7.992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006788/0.4779, allocations: 390.3 kB / 0.5367 GB, free: 7.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.4779, allocations: 40.95 kB / 0.5367 GB, free: 7.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.478, allocations: 162.2 kB / 0.5369 GB, free: 7.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.4781, allocations: 80.84 kB / 0.537 GB, free: 7.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.4781, allocations: 7.844 kB / 0.537 GB, free: 7.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.324e-05/0.4781, allocations: 338.2 kB / 0.5373 GB, free: 7.309 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.4784, allocations: 123.8 kB / 0.5374 GB, free: 7.281 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.4786, allocations: 140.9 kB / 0.5375 GB, free: 7.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.4788, allocations: 140.1 kB / 0.5377 GB, free: 7.219 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4788, allocations: 3.906 kB / 0.5377 GB, free: 7.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007152/0.4795, allocations: 446.2 kB / 0.5381 GB, free: 7.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4795, allocations: 7.625 kB / 0.5381 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4796, allocations: 0 / 0.5381 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002711/0.4798, allocations: 78.91 kB / 0.5382 GB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.48, allocations: 42.77 kB / 0.5382 GB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.4811, allocations: 1.654 MB / 0.5398 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/0.4815, allocations: 70.22 kB / 0.5399 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.4815, allocations: 11.53 kB / 0.5399 GB, free: 5.641 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: Fn.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,noise.localSeed,noise.globalSeed.id_impure,noise.actualGlobalSeed,noise.globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0001769/0.4817, allocations: 169.2 kB / 0.5401 GB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.4818, allocations: 34.77 kB / 0.5401 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.662e-05/0.4818, allocations: 38.03 kB / 0.5402 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4819, allocations: 3.562 kB / 0.5402 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4819, allocations: 7.953 kB / 0.5402 GB, free: 5.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.4819, allocations: 3.984 kB / 0.5402 GB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.4821, allocations: 339.8 kB / 0.5405 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4821, allocations: 0 / 0.5405 GB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.4823, allocations: 31.08 kB / 0.5405 GB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001974/0.4825, allocations: 70.45 kB / 0.5406 GB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.4826, allocations: 11.73 kB / 0.5406 GB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.4836, allocations: 1.649 MB / 0.5422 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4836, allocations: 8.016 kB / 0.5422 GB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.4844, allocations: 0.5192 MB / 0.5427 GB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.813e-05/0.4845, allocations: 119.5 kB / 0.5428 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.901e-05/0.4845, allocations: 15.45 kB / 0.5429 GB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.4849, allocations: 50.22 kB / 0.5429 GB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.485, allocations: 22.5 kB / 0.5429 GB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.485, allocations: 7.781 kB / 0.5429 GB, free: 3.449 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006022/0.4856, allocations: 325.5 kB / 0.5432 GB, free: 3.309 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4856, allocations: 0 / 0.5432 GB, free: 3.309 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006155/0.4862, allocations: 189.1 kB / 0.5434 GB, free: 3.254 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Fn.x_scaled[1]) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001775/0.488, allocations: 1.341 MB / 0.5447 GB, free: 2.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007185/0.4887, allocations: 445.4 kB / 0.5452 GB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4887, allocations: 0 / 0.5452 GB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.4891, allocations: 259 kB / 0.5454 GB, free: 2.082 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.4893, allocations: 38.02 kB / 0.5454 GB, free: 2.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.4905, allocations: 1.191 MB / 0.5466 GB, free: 1.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.4907, allocations: 0.7986 MB / 0.5474 GB, free: 456 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.4908, allocations: 53 kB / 0.5474 GB, free: 440 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.4909, allocations: 95.98 kB / 0.5475 GB, free: 420 kB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4909, allocations: 7.875 kB / 0.5475 GB, free: 416 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.512, allocations: 8.256 MB / 0.5556 GB, free: 10.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/0.5123, allocations: 226.9 kB / 0.5558 GB, free: 10.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.08/2.593, allocations: 0 / 0.5558 GB, free: 10.07 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)