Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 197.1 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1677/0.1677, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 67.91 kB / 380.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.208, allocations: 54.94 MB / 435.2 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002196/0.2102, allocations: 2.044 MB / 437.2 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006901/0.2109, allocations: 0.6183 MB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.172e-05/0.211, allocations: 6.562 kB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002533/0.2113, allocations: 41.44 kB / 437.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.2114, allocations: 27.69 kB / 437.9 MB, free: 37.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.2116, allocations: 112.1 kB / 438 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.2118, allocations: 323.5 kB / 438.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.212, allocations: 88.27 kB / 438.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.718e-05/0.2121, allocations: 115.8 kB / 438.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.2122, allocations: 142 kB / 438.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.2123, allocations: 15.03 kB / 438.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.223e-05/0.2123, allocations: 14.56 kB / 438.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.2124, allocations: 70.34 kB / 438.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.23e-05/0.2125, allocations: 118.5 kB / 438.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.2126, allocations: 259.2 kB / 439.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2126, allocations: 0 / 439.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.2126, allocations: 0 / 439.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.2126, allocations: 0 / 439.1 MB, free: 37.14 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001002/0.2136, allocations: 0.6264 MB / 439.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2137, allocations: 18.58 kB / 439.8 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/0.2137, allocations: 58.09 kB / 439.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.2138, allocations: 33.06 kB / 439.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003621/0.2142, allocations: 303 kB / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.2142, allocations: 30.72 kB / 440.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.2142, allocations: 31.47 kB / 440.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.2146, allocations: 299.2 kB / 440.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2146, allocations: 2.719 kB / 440.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.2147, allocations: 10.56 kB / 440.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2147, allocations: 5.25 kB / 440.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.215, allocations: 219.3 kB / 440.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.2165, allocations: 1.191 MB / 441.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.2168, allocations: 206.2 kB / 442.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.217, allocations: 102.7 kB / 442.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.217, allocations: 3.047 kB / 442.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.293e-05/0.217, allocations: 41.45 kB / 442.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.217, allocations: 0 / 442.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005377/0.2176, allocations: 326.9 kB / 442.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/0.2176, allocations: 58.19 kB / 442.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2179, allocations: 278.8 kB / 442.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2179, allocations: 32.73 kB / 443 MB, free: 34.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.218, allocations: 169.5 kB / 443.1 MB, free: 34.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.42e-05/0.218, allocations: 103.3 kB / 443.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/0.2181, allocations: 75.31 kB / 443.3 MB, free: 34.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.577e-05/0.2182, allocations: 342.7 kB / 443.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.2183, allocations: 96.41 kB / 443.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2185, allocations: 185 kB / 443.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.22, allocations: 0.6113 MB / 444.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2201, allocations: 10.91 kB / 444.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004571/0.2205, allocations: 375.3 kB / 444.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.2205, allocations: 5.688 kB / 444.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.2205, allocations: 3.031 kB / 444.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2206, allocations: 5.906 kB / 444.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.2211, allocations: 98.75 kB / 445 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.2211, allocations: 14.31 kB / 445 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.2213, allocations: 55.16 kB / 445.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2214, allocations: 12.19 kB / 445.1 MB, free: 33.43 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false start = y_filter.y_start fixed = true ) "Connector of Real output signal" type: Real Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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: 11 * Number of states: 0 () * Number of discrete variables: 9 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.2215, allocations: 157 kB / 445.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.673e-05/0.2216, allocations: 35.08 kB / 445.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004119/0.222, allocations: 301.2 kB / 445.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.222, allocations: 6.156 kB / 445.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.222, allocations: 0 / 445.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.222, allocations: 3.25 kB / 445.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.2225, allocations: 368.3 kB / 445.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2225, allocations: 3.469 kB / 445.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.2228, allocations: 68.33 kB / 446 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2228, allocations: 7.422 kB / 446 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.2229, allocations: 7.188 kB / 446 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2229, allocations: 6.562 kB / 446 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2229, allocations: 4 kB / 446 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004936/0.2234, allocations: 482.3 kB / 446.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.2234, allocations: 104.7 kB / 446.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.2235, allocations: 10.66 kB / 446.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.2237, allocations: 27.7 kB / 446.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.893e-05/0.2238, allocations: 21.67 kB / 446.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2238, allocations: 15.03 kB / 446.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.224, allocations: 196.5 kB / 446.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.224, allocations: 0 / 446.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.2243, allocations: 62.84 kB / 446.9 MB, free: 32.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006246/0.225, allocations: 1.027 MB / 448 MB, free: 31.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.2254, allocations: 267.4 kB / 448.2 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2254, allocations: 0 / 448.2 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.2255, allocations: 130.7 kB / 448.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.2258, allocations: 44.64 kB / 448.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.2289, allocations: 3.269 MB / 451.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2291, allocations: 0.7755 MB / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.2292, allocations: 49.77 kB / 452.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.2294, allocations: 100.1 kB / 452.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2294, allocations: 0 / 452.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.2427, allocations: 5.268 MB / 457.9 MB, free: 27.97 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000128/0.2428, allocations: 181.3 kB / 458 MB, free: 27.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/1.893, allocations: 0 / 458 MB, free: 27.71 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)