Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",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.1024/0.1024, allocations: 21.62 MB / 36.56 MB, free: 1.074 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.001168/0.001168, allocations: 182.4 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.373/1.373, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.0009579/0.0009578, allocations: 107.3 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.000309, allocations: 8 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08843, allocations: 55.82 MB / 452.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.3848, allocations: 79.53 MB / 0.52 GB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.385, allocations: 77.39 kB / 0.5201 GB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01615/0.4012, allocations: 5.149 MB / 0.5251 GB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4012, allocations: 1.219 kB / 0.5251 GB, free: 12.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.601e-05/0.4012, allocations: 11.69 kB / 0.5251 GB, free: 12.63 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001486/0.4027, allocations: 0.7401 MB / 0.5258 GB, free: 12.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.4028, allocations: 7.531 kB / 0.5258 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.719e-05/0.4028, allocations: 55.02 kB / 0.5259 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.4029, allocations: 31 kB / 0.5259 GB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.404, allocations: 468.2 kB / 0.5264 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.404, allocations: 7.156 kB / 0.5264 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.404, allocations: 18.56 kB / 0.5264 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.4043, allocations: 188 kB / 0.5266 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.4044, allocations: 0 / 0.5266 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.4044, allocations: 11.17 kB / 0.5266 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.4044, allocations: 3.688 kB / 0.5266 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.4047, allocations: 226.3 kB / 0.5268 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008811/0.4056, allocations: 0.6668 MB / 0.5274 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.4062, allocations: 296.5 kB / 0.5277 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.4063, allocations: 0 / 0.5277 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.4063, allocations: 38.53 kB / 0.5278 GB, free: 11.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.102e-06/0.4063, allocations: 0 / 0.5278 GB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001208/0.4075, allocations: 0.593 MB / 0.5283 GB, free: 10.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.4075, allocations: 54.41 kB / 0.5284 GB, free: 10.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008984/0.4084, allocations: 445.9 kB / 0.5288 GB, free: 10.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.4085, allocations: 29.14 kB / 0.5288 GB, free: 10.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.4085, allocations: 166.8 kB / 0.529 GB, free: 10.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.056e-05/0.4086, allocations: 84 kB / 0.5291 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.4086, allocations: 0 / 0.5291 GB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.031e-05/0.4087, allocations: 350.8 kB / 0.5294 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.4088, allocations: 104.2 kB / 0.5295 GB, free: 9.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.409, allocations: 139.6 kB / 0.5297 GB, free: 9.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.4092, allocations: 132.4 kB / 0.5298 GB, free: 9.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4092, allocations: 1.5 kB / 0.5298 GB, free: 9.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006612/0.4099, allocations: 417.5 kB / 0.5302 GB, free: 9.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.4099, allocations: 7.688 kB / 0.5302 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4099, allocations: 2.062 kB / 0.5302 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.4102, allocations: 64.47 kB / 0.5302 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.4104, allocations: 46.53 kB / 0.5303 GB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.4115, allocations: 1.558 MB / 0.5318 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.4119, allocations: 85.27 kB / 0.5319 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.4119, allocations: 7.688 kB / 0.5319 GB, free: 8.328 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]: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] P.x_scaled[2]: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: 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): 26 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.4121, allocations: 178.7 kB / 0.5321 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.4122, allocations: 30.59 kB / 0.5321 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.684e-05/0.4123, allocations: 53.27 kB / 0.5322 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4123, allocations: 3.844 kB / 0.5322 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4123, allocations: 0 / 0.5322 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.4123, allocations: 3.984 kB / 0.5322 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003233/0.4126, allocations: 376 kB / 0.5325 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4127, allocations: 0 / 0.5325 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.4129, allocations: 31.08 kB / 0.5325 GB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001752/0.4131, allocations: 69.39 kB / 0.5326 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.4131, allocations: 7.344 kB / 0.5326 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009479/0.4141, allocations: 1.551 MB / 0.5341 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4141, allocations: 5.938 kB / 0.5341 GB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007417/0.4148, allocations: 0.5823 MB / 0.5347 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.529e-05/0.4149, allocations: 119.4 kB / 0.5348 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.415, allocations: 10.41 kB / 0.5348 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004624/0.4154, allocations: 66.61 kB / 0.5349 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/0.4155, allocations: 19.14 kB / 0.5349 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.4155, allocations: 7.25 kB / 0.5349 GB, free: 6.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008387/0.4164, allocations: 382.7 kB / 0.5353 GB, free: 5.926 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4164, allocations: 0 / 0.5353 GB, free: 5.926 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.4168, allocations: 63.47 kB / 0.5353 GB, free: 5.926 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],H.x_scaled[1],H.x_scaled[2],M.x_scaled[1],K.x_scaled[1],C.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 (19): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009349/0.4177, allocations: 1.136 MB / 0.5365 GB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006237/0.4183, allocations: 410.3 kB / 0.5368 GB, free: 4.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4184, allocations: 3.938 kB / 0.5369 GB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.4187, allocations: 264.4 kB / 0.5371 GB, free: 4.828 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.419, allocations: 49.69 kB / 0.5372 GB, free: 4.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004836/0.4238, allocations: 2.723 MB / 0.5398 GB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.4241, allocations: 0.8114 MB / 0.5406 GB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.4242, allocations: 72.59 kB / 0.5407 GB, free: 2.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.4244, allocations: 96.06 kB / 0.5408 GB, free: 2.719 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4244, allocations: 3.844 kB / 0.5408 GB, free: 2.719 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.4424, allocations: 6.369 MB / 0.547 GB, free: 15.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.4427, allocations: 209.3 kB / 0.5472 GB, free: 15.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.42, allocations: 3.938 kB / 0.5472 GB, free: 15.57 MB / 378.7 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)