Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",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.1034/0.1034, allocations: 21.62 MB / 36.56 MB, free: 1.055 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.001187/0.001187, allocations: 187.1 kB / 42.83 MB, free: 3.789 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.417/1.417, 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.0009614/0.0009614, allocations: 98.62 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005082/0.0005081, allocations: 12 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1161, allocations: 55.82 MB / 452.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3082/0.4243, allocations: 80.47 MB / 0.5209 GB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.4245, allocations: 74.53 kB / 0.521 GB, free: 13.06 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:49:3-49:23:writable] Warning: Connecting two signal sources while connecting iBias to Bias. Notification: Performance of FrontEnd - DAE generated: time 0.01035/0.4349, allocations: 3.624 MB / 0.5245 GB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4349, allocations: 0 / 0.5245 GB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.435, allocations: 3.844 kB / 0.5245 GB, free: 12.55 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009706/0.4359, allocations: 0.5552 MB / 0.5251 GB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.436, allocations: 11.66 kB / 0.5251 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.809e-05/0.436, allocations: 44.22 kB / 0.5251 GB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.72e-05/0.4361, allocations: 26.78 kB / 0.5251 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005283/0.4366, allocations: 311.8 kB / 0.5254 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.4367, allocations: 14.53 kB / 0.5255 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.4367, allocations: 18 kB / 0.5255 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.437, allocations: 196 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.437, allocations: 1.938 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.437, allocations: 11.11 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4371, allocations: 3.906 kB / 0.5257 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.4373, allocations: 154.4 kB / 0.5258 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008276/0.4382, allocations: 0.7249 MB / 0.5265 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.4386, allocations: 219.8 kB / 0.5267 GB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.4387, allocations: 0 / 0.5267 GB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.4387, allocations: 42.09 kB / 0.5268 GB, free: 11.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.4387, allocations: 0 / 0.5268 GB, free: 11.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.000466/0.4392, allocations: 268.7 kB / 0.527 GB, free: 11.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.4392, allocations: 51.41 kB / 0.5271 GB, free: 11.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004254/0.4396, allocations: 263.9 kB / 0.5273 GB, free: 10.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.4396, allocations: 28.77 kB / 0.5274 GB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.4397, allocations: 153.9 kB / 0.5275 GB, free: 10.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.4398, allocations: 70.41 kB / 0.5276 GB, free: 10.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/0.4398, allocations: 4.219 kB / 0.5276 GB, free: 10.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.723e-05/0.4398, allocations: 335.9 kB / 0.5279 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.44, allocations: 66.75 kB / 0.528 GB, free: 10.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.4402, allocations: 135.9 kB / 0.5281 GB, free: 10.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.4403, allocations: 83.56 kB / 0.5282 GB, free: 10.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4403, allocations: 0 / 0.5282 GB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003559/0.4407, allocations: 289.9 kB / 0.5285 GB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.4407, allocations: 9.688 kB / 0.5285 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4407, allocations: 4.594 kB / 0.5285 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.4408, allocations: 3.875 kB / 0.5285 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.441, allocations: 61.83 kB / 0.5285 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.441, allocations: 3.844 kB / 0.5285 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000252/0.4413, allocations: 54 kB / 0.5286 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.4413, allocations: 15.64 kB / 0.5286 GB, free: 10.13 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.HIsat,PI.LOsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.4414, allocations: 148.5 kB / 0.5287 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-05/0.4415, allocations: 19.34 kB / 0.5288 GB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.4419, allocations: 239.9 kB / 0.529 GB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.4419, allocations: 3.906 kB / 0.529 GB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4419, allocations: 7.953 kB / 0.529 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4419, allocations: 0 / 0.529 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.4421, allocations: 296.4 kB / 0.5293 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4421, allocations: 0 / 0.5293 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/0.4424, allocations: 45.55 kB / 0.5293 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.4424, allocations: 3.938 kB / 0.5293 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.4425, allocations: 7.719 kB / 0.5293 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4425, allocations: 0 / 0.5293 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4425, allocations: 3.984 kB / 0.5293 GB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004392/0.4429, allocations: 404.4 kB / 0.5297 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.443, allocations: 104.9 kB / 0.5298 GB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.443, allocations: 7.719 kB / 0.5298 GB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.4433, allocations: 32.27 kB / 0.5299 GB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.4433, allocations: 11.52 kB / 0.5299 GB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.4434, allocations: 11.69 kB / 0.5299 GB, free: 9.336 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003445/0.4437, allocations: 221.6 kB / 0.5301 GB, free: 9.219 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4437, allocations: 0 / 0.5301 GB, free: 9.219 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.444, allocations: 48.27 kB / 0.5301 GB, free: 9.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005754/0.4446, allocations: 0.9405 MB / 0.5311 GB, free: 8.492 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.4449, allocations: 192.8 kB / 0.5312 GB, free: 8.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4449, allocations: 384 / 0.5312 GB, free: 8.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.445, allocations: 96.98 kB / 0.5313 GB, free: 8.441 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.4453, allocations: 23.77 kB / 0.5314 GB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.448, allocations: 2.582 MB / 0.5339 GB, free: 6.664 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.4481, allocations: 0.7654 MB / 0.5346 GB, free: 5.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.4483, allocations: 40.27 kB / 0.5347 GB, free: 5.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.862e-05/0.4484, allocations: 72.52 kB / 0.5347 GB, free: 5.898 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4484, allocations: 0 / 0.5347 GB, free: 5.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.4642, allocations: 4.214 MB / 0.5389 GB, free: 3.973 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.4644, allocations: 173.3 kB / 0.539 GB, free: 3.734 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.206, allocations: 3.938 kB / 0.539 GB, free: 3.73 MB / 362.7 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1)