Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_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.1014/0.1014, allocations: 21.62 MB / 36.56 MB, free: 1.082 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.001489/0.001489, allocations: 182.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.37/1.37, allocations: 223.2 MB / 272.1 MB, free: 1.707 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.0008373/0.0008373, allocations: 100.3 kB / 328.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 12 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09214, allocations: 55.81 MB / 452.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.4034, allocations: 79.61 MB / 0.5201 GB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4036, allocations: 73.56 kB / 0.5201 GB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01777/0.4214, allocations: 5.758 MB / 0.5258 GB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4215, allocations: 0 / 0.5258 GB, free: 12.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.423e-05/0.4215, allocations: 15.84 kB / 0.5258 GB, free: 12.01 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001835/0.4234, allocations: 0.7745 MB / 0.5265 GB, free: 11.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.4234, allocations: 11.53 kB / 0.5265 GB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.705e-05/0.4235, allocations: 48.45 kB / 0.5266 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.4236, allocations: 38.91 kB / 0.5266 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.4249, allocations: 0.4945 MB / 0.5271 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.4249, allocations: 11.23 kB / 0.5271 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.425, allocations: 19.66 kB / 0.5271 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.4253, allocations: 211.8 kB / 0.5273 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.4254, allocations: 5.969 kB / 0.5273 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.4254, allocations: 10.64 kB / 0.5274 GB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.4254, allocations: 3.875 kB / 0.5274 GB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.4258, allocations: 231.6 kB / 0.5276 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.4269, allocations: 0.7023 MB / 0.5283 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/0.4277, allocations: 321.2 kB / 0.5286 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.4277, allocations: 2.562 kB / 0.5286 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.4277, allocations: 31.84 kB / 0.5286 GB, free: 10.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.244e-06/0.4277, allocations: 0 / 0.5286 GB, free: 10.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001762/0.4295, allocations: 0.7956 MB / 0.5294 GB, free: 9.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.4295, allocations: 55.81 kB / 0.5294 GB, free: 9.863 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009704/0.4305, allocations: 477.6 kB / 0.5299 GB, free: 9.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.4305, allocations: 32.64 kB / 0.5299 GB, free: 9.629 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.4306, allocations: 176.6 kB / 0.5301 GB, free: 9.523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.4307, allocations: 100 kB / 0.5302 GB, free: 9.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.4307, allocations: 0 / 0.5302 GB, free: 9.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.038e-05/0.4308, allocations: 350.2 kB / 0.5305 GB, free: 9.125 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.431, allocations: 114.1 kB / 0.5306 GB, free: 9.098 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.4312, allocations: 120.7 kB / 0.5307 GB, free: 9.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.4314, allocations: 123.9 kB / 0.5309 GB, free: 9.055 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4314, allocations: 0 / 0.5309 GB, free: 9.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007467/0.4321, allocations: 474.8 kB / 0.5313 GB, free: 8.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.4321, allocations: 7.688 kB / 0.5313 GB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.4322, allocations: 0 / 0.5313 GB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003848/0.4325, allocations: 116.2 kB / 0.5314 GB, free: 8.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.4327, allocations: 34.89 kB / 0.5315 GB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.4347, allocations: 3.009 MB / 0.5344 GB, free: 6.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.4352, allocations: 85.77 kB / 0.5345 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.4353, allocations: 3.844 kB / 0.5345 GB, free: 6.113 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.4355, allocations: 193.2 kB / 0.5347 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.4356, allocations: 38.83 kB / 0.5347 GB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.634e-05/0.4357, allocations: 49.31 kB / 0.5348 GB, free: 5.941 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4357, allocations: 7.938 kB / 0.5348 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.4357, allocations: 3.844 kB / 0.5348 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.4357, allocations: 3.984 kB / 0.5348 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003665/0.4361, allocations: 392.6 kB / 0.5351 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4361, allocations: 4 kB / 0.5351 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.4363, allocations: 34.86 kB / 0.5352 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.4366, allocations: 103 kB / 0.5353 GB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.4367, allocations: 15.59 kB / 0.5353 GB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.4385, allocations: 3.014 MB / 0.5382 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4386, allocations: 3.844 kB / 0.5382 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009065/0.4395, allocations: 0.6498 MB / 0.5389 GB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.326e-05/0.4396, allocations: 116.1 kB / 0.539 GB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.381e-05/0.4396, allocations: 11.91 kB / 0.539 GB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005013/0.4401, allocations: 74.48 kB / 0.5391 GB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.4402, allocations: 23.33 kB / 0.5391 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.4402, allocations: 11.5 kB / 0.5391 GB, free: 2.469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009484/0.4412, allocations: 405.2 kB / 0.5395 GB, free: 2.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4412, allocations: 0 / 0.5395 GB, free: 2.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000416/0.4416, allocations: 84.78 kB / 0.5396 GB, free: 2.281 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001153/0.4428, allocations: 1.217 MB / 0.5408 GB, free: 1.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007677/0.4436, allocations: 0.5359 MB / 0.5413 GB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4436, allocations: 0 / 0.5413 GB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004356/0.444, allocations: 399.9 kB / 0.5417 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.4444, allocations: 61.94 kB / 0.5417 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005434/0.4498, allocations: 2.797 MB / 0.5445 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.4502, allocations: 0.8288 MB / 0.5453 GB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001821/0.4504, allocations: 68.8 kB / 0.5453 GB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.4505, allocations: 113.8 kB / 0.5454 GB, free: 14.84 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.4506, allocations: 0 / 0.5454 GB, free: 14.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.4717, allocations: 7.22 MB / 0.5525 GB, free: 11.47 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.472, allocations: 190.1 kB / 0.5527 GB, free: 11.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.428, allocations: 0 / 0.5527 GB, free: 11.23 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)