Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.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.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",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.1066/0.1066, allocations: 21.62 MB / 36.56 MB, free: 1.094 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.001095/0.001095, allocations: 187.1 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.377/1.377, allocations: 223.2 MB / 272.1 MB, free: 1.367 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.0008872/0.0008871, allocations: 110.6 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 8 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09542, allocations: 55.82 MB / 452.9 MB, free: 6.523 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2935/0.389, allocations: 80.82 MB / 0.5212 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.3893, allocations: 78.78 kB / 0.5213 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0134/0.4027, allocations: 4.449 MB / 0.5257 GB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4027, allocations: 0 / 0.5257 GB, free: 12.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.4028, allocations: 3.844 kB / 0.5257 GB, free: 12.33 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001088/0.4039, allocations: 0.6845 MB / 0.5263 GB, free: 11.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.4039, allocations: 11.22 kB / 0.5264 GB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.815e-05/0.404, allocations: 53.27 kB / 0.5264 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.404, allocations: 34.09 kB / 0.5264 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.4047, allocations: 335.9 kB / 0.5268 GB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.4047, allocations: 15.27 kB / 0.5268 GB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.4047, allocations: 26.77 kB / 0.5268 GB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.4052, allocations: 257.9 kB / 0.527 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.4052, allocations: 0.75 kB / 0.527 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.4052, allocations: 14.23 kB / 0.5271 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4052, allocations: 7.828 kB / 0.5271 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.4056, allocations: 201.5 kB / 0.5273 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.4067, allocations: 0.7136 MB / 0.528 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005924/0.4073, allocations: 261.7 kB / 0.5282 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.4073, allocations: 4.016 kB / 0.5282 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000314/0.4076, allocations: 215.8 kB / 0.5284 GB, free: 10.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.4076, allocations: 0 / 0.5284 GB, free: 10.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.00199/0.4096, allocations: 0.9341 MB / 0.5293 GB, free: 10.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.4097, allocations: 135.5 kB / 0.5295 GB, free: 10.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005945/0.4103, allocations: 293.4 kB / 0.5297 GB, free: 9.863 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.4103, allocations: 29.58 kB / 0.5298 GB, free: 9.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.4104, allocations: 158 kB / 0.5299 GB, free: 9.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.4105, allocations: 81.41 kB / 0.53 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.479e-05/0.4105, allocations: 3.938 kB / 0.53 GB, free: 9.668 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.838e-05/0.4106, allocations: 337.7 kB / 0.5303 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.4108, allocations: 103.9 kB / 0.5304 GB, free: 9.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.411, allocations: 145.8 kB / 0.5306 GB, free: 9.273 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.4112, allocations: 179 kB / 0.5307 GB, free: 9.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4112, allocations: 0 / 0.5307 GB, free: 9.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008581/0.4121, allocations: 0.5094 MB / 0.5312 GB, free: 8.984 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.791e-05/0.4122, allocations: 242.7 kB / 0.5315 GB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4122, allocations: 0 / 0.5315 GB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003618/0.4126, allocations: 104.3 kB / 0.5316 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.4128, allocations: 34.67 kB / 0.5316 GB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004945/0.4133, allocations: 0.6629 MB / 0.5322 GB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.4136, allocations: 54.45 kB / 0.5323 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.4136, allocations: 7.688 kB / 0.5323 GB, free: 8.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.4136, allocations: 3.844 kB / 0.5323 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005701/0.4142, allocations: 401.1 kB / 0.5327 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-06/0.4142, allocations: 0 / 0.5327 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001505/0.4144, allocations: 63.12 kB / 0.5327 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.4145, allocations: 38.88 kB / 0.5328 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.4156, allocations: 1.676 MB / 0.5344 GB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.4159, allocations: 50.02 kB / 0.5345 GB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.416, allocations: 7.781 kB / 0.5345 GB, free: 6.508 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.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: 9 ($PRE.PI_d.xfb,PI_d.xfb,$PRE.PI_d.ulin,PI_d.ulin,$PRE.PI_d.ulino,PI_d.ulino,$PRE.PI_d.u,PI_d.u,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002481/0.4162, allocations: 276.9 kB / 0.5347 GB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.4163, allocations: 31.12 kB / 0.5348 GB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.121e-05/0.4163, allocations: 36.77 kB / 0.5348 GB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4164, allocations: 0 / 0.5348 GB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4164, allocations: 3.953 kB / 0.5348 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4164, allocations: 0 / 0.5348 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.4167, allocations: 359.4 kB / 0.5351 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4167, allocations: 0 / 0.5351 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.4168, allocations: 19.3 kB / 0.5352 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004477/0.4173, allocations: 200.1 kB / 0.5354 GB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.4173, allocations: 14.78 kB / 0.5354 GB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/0.4193, allocations: 2.506 MB / 0.5378 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4194, allocations: 8.031 kB / 0.5378 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.4205, allocations: 0.7121 MB / 0.5385 GB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/0.4206, allocations: 107.6 kB / 0.5386 GB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.4206, allocations: 7.031 kB / 0.5386 GB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.4209, allocations: 46 kB / 0.5387 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.421, allocations: 22.84 kB / 0.5387 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.421, allocations: 3.844 kB / 0.5387 GB, free: 3.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004402/0.4215, allocations: 242.7 kB / 0.5389 GB, free: 3.383 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4215, allocations: 3.875 kB / 0.5389 GB, free: 3.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004172/0.4219, allocations: 113.5 kB / 0.539 GB, free: 3.367 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process_a.x_scaled[1],Process_a.x_scaled[2],PI_a.FO.y,Process_d.x_scaled[1],Process_d.x_scaled[2]) * Number of discrete variables: 5 ($whenCondition1,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 5 (PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 0 * Non-linear torn systems: 2 {1 2,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001339/0.4233, allocations: 1.264 MB / 0.5403 GB, free: 2.586 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009614/0.4242, allocations: 0.7871 MB / 0.541 GB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4243, allocations: 0 / 0.541 GB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.4248, allocations: 382.6 kB / 0.5414 GB, free: 1.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.425, allocations: 45.25 kB / 0.5414 GB, free: 1.898 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.4285, allocations: 2.23 MB / 0.5436 GB, free: 16.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.4289, allocations: 0.7836 MB / 0.5444 GB, free: 16.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.429, allocations: 59.83 kB / 0.5444 GB, free: 16.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.4292, allocations: 87.19 kB / 0.5445 GB, free: 16 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4292, allocations: 0 / 0.5445 GB, free: 16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.4489, allocations: 6.763 MB / 0.5511 GB, free: 12.8 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.4492, allocations: 198.8 kB / 0.5513 GB, free: 12.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.389, allocations: 3.938 kB / 0.5513 GB, free: 12.56 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1)