Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.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_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2",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.1005/0.1005, 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.001031/0.001031, allocations: 182.4 kB / 42.83 MB, free: 3.781 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.372/1.372, allocations: 223.2 MB / 272.1 MB, free: 1.422 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.0008568/0.0008568, allocations: 92.31 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002928, allocations: 8 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0899/0.09021, allocations: 55.82 MB / 452.9 MB, free: 6.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.3963, allocations: 80.63 MB / 0.5211 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.3966, allocations: 76.52 kB / 0.5211 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01375/0.4103, allocations: 5.446 MB / 0.5265 GB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4103, allocations: 0 / 0.5265 GB, free: 11.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.4104, allocations: 8.781 kB / 0.5265 GB, free: 11.84 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001043/0.4114, allocations: 0.6747 MB / 0.5271 GB, free: 11.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.4115, allocations: 11.59 kB / 0.5271 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.59e-05/0.4115, allocations: 59.8 kB / 0.5272 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.4116, allocations: 34.88 kB / 0.5272 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.4123, allocations: 375.4 kB / 0.5276 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.4123, allocations: 22.88 kB / 0.5276 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.4123, allocations: 26.94 kB / 0.5276 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004368/0.4128, allocations: 297.9 kB / 0.5279 GB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.4128, allocations: 7.953 kB / 0.5279 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.4128, allocations: 15.38 kB / 0.5279 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.4128, allocations: 3.844 kB / 0.5279 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004752/0.4133, allocations: 255.1 kB / 0.5282 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.4145, allocations: 0.8343 MB / 0.529 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007533/0.4153, allocations: 332.2 kB / 0.5293 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.4153, allocations: 3.906 kB / 0.5293 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.4154, allocations: 37.25 kB / 0.5294 GB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4154, allocations: 0 / 0.5294 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.002584/0.418, allocations: 1.063 MB / 0.5304 GB, free: 9.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.418, allocations: 106.8 kB / 0.5305 GB, free: 9.551 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.4186, allocations: 320.5 kB / 0.5308 GB, free: 9.402 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.4187, allocations: 32.86 kB / 0.5308 GB, free: 9.371 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.4188, allocations: 171.1 kB / 0.531 GB, free: 9.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.818e-05/0.4189, allocations: 94.16 kB / 0.5311 GB, free: 9.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.4189, allocations: 3.25 kB / 0.5311 GB, free: 9.191 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.419, allocations: 339.8 kB / 0.5314 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.4193, allocations: 124.7 kB / 0.5315 GB, free: 8.848 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.4195, allocations: 157.6 kB / 0.5317 GB, free: 8.797 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.4199, allocations: 136.9 kB / 0.5318 GB, free: 8.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4199, allocations: 3.953 kB / 0.5318 GB, free: 8.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001238/0.4211, allocations: 0.5864 MB / 0.5324 GB, free: 8.582 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.211e-05/0.4212, allocations: 92.09 kB / 0.5325 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.4212, allocations: 0 / 0.5325 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006266/0.4218, allocations: 195.4 kB / 0.5327 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.422, allocations: 30.81 kB / 0.5327 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.4232, allocations: 1.438 MB / 0.5341 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.4236, allocations: 61.66 kB / 0.5342 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.4236, allocations: 7.156 kB / 0.5342 GB, free: 7.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.817e-06/0.4236, allocations: 3.844 kB / 0.5342 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006588/0.4243, allocations: 379.9 kB / 0.5345 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-06/0.4243, allocations: 3.984 kB / 0.5345 GB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002786/0.4246, allocations: 120.3 kB / 0.5346 GB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.4247, allocations: 30.98 kB / 0.5347 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/0.4269, allocations: 3.365 MB / 0.538 GB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.4273, allocations: 50.42 kB / 0.538 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.4273, allocations: 3.969 kB / 0.538 GB, free: 4.211 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: 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 (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: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002238/0.4275, allocations: 240.4 kB / 0.5382 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.4276, allocations: 31.27 kB / 0.5383 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.804e-05/0.4277, allocations: 41.12 kB / 0.5383 GB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4277, allocations: 3.984 kB / 0.5383 GB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.4277, allocations: 0 / 0.5383 GB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4277, allocations: 3.938 kB / 0.5383 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003409/0.428, allocations: 397.6 kB / 0.5387 GB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.428, allocations: 0 / 0.5387 GB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.4282, allocations: 23.27 kB / 0.5387 GB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004613/0.4287, allocations: 188.1 kB / 0.5389 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.4287, allocations: 7.422 kB / 0.5389 GB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.432, allocations: 3.745 MB / 0.5426 GB, free: 16.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.432, allocations: 8.016 kB / 0.5426 GB, free: 16.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.4334, allocations: 0.7892 MB / 0.5433 GB, free: 16.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.695e-05/0.4335, allocations: 112.3 kB / 0.5434 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.4335, allocations: 3.844 kB / 0.5434 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.4339, allocations: 53.62 kB / 0.5435 GB, free: 16.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.434, allocations: 27.48 kB / 0.5435 GB, free: 16.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.434, allocations: 8.219 kB / 0.5435 GB, free: 16.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004548/0.4345, allocations: 260.8 kB / 0.5438 GB, free: 16.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4345, allocations: 0 / 0.5438 GB, free: 16.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000542/0.435, allocations: 135.4 kB / 0.5439 GB, free: 16.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process_1.x_scaled[1],Process_1.x_scaled[2],PI_1.FO.y,Process_2.x_scaled[1],Process_2.x_scaled[2],PI_2.FO.y) * 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 (14): * Single equations (assignments): 12 * 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 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001705/0.4367, allocations: 1.335 MB / 0.5452 GB, free: 15.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.4381, allocations: 0.8261 MB / 0.546 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4381, allocations: 0 / 0.546 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006174/0.4388, allocations: 474.4 kB / 0.5465 GB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.4391, allocations: 61.28 kB / 0.5465 GB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.4433, allocations: 2.428 MB / 0.5489 GB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.4436, allocations: 0.8032 MB / 0.5497 GB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000159/0.4437, allocations: 60.8 kB / 0.5497 GB, free: 12.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.4439, allocations: 104 kB / 0.5498 GB, free: 12.71 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4439, allocations: 0 / 0.5498 GB, free: 12.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.4649, allocations: 8.194 MB / 0.5578 GB, free: 7.219 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/0.4651, allocations: 207.2 kB / 0.558 GB, free: 6.977 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.504, allocations: 0 / 0.558 GB, free: 6.977 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_compare2.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)