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.00106/0.00106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001044/0.001044, allocations: 188.2 kB / 16.25 MB, free: 6.621 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.181/1.181, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1702/0.1702, allocations: 22.36 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 71.89 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2156, allocations: 54.94 MB / 435.3 MB, free: 39.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002301/0.2179, allocations: 2.059 MB / 437.4 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007085/0.2186, allocations: 0.6145 MB / 438 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.305e-05/0.2187, allocations: 6.812 kB / 438 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.219, allocations: 42.67 kB / 438.1 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.2191, allocations: 32.27 kB / 438.1 MB, free: 38.04 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.0001818/0.2193, allocations: 106.7 kB / 438.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.2196, allocations: 331.1 kB / 438.5 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.2197, allocations: 98.17 kB / 438.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2198, allocations: 118.5 kB / 438.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.22, allocations: 156.7 kB / 438.9 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.22, allocations: 24.94 kB / 438.9 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.934e-05/0.22, allocations: 30.5 kB / 438.9 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.2201, allocations: 77.42 kB / 439 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.2202, allocations: 131.8 kB / 439.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.2204, allocations: 259.8 kB / 439.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2204, allocations: 0 / 439.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2204, allocations: 0 / 439.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.2204, allocations: 7.234 kB / 439.4 MB, free: 37.41 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.0009986/0.2214, allocations: 0.6283 MB / 440 MB, free: 36.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.2214, allocations: 8.406 kB / 440 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.329e-05/0.2215, allocations: 61.78 kB / 440.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.2215, allocations: 31.72 kB / 440.1 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.2219, allocations: 300.5 kB / 440.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2219, allocations: 24.12 kB / 440.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.222, allocations: 27.91 kB / 440.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.2224, allocations: 306.5 kB / 440.8 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2224, allocations: 4 kB / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.2224, allocations: 7.531 kB / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.2224, allocations: 10.31 kB / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.2228, allocations: 218.7 kB / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.2242, allocations: 1.191 MB / 442.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.2245, allocations: 203.9 kB / 442.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.2247, allocations: 96.56 kB / 442.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.2247, allocations: 12.72 kB / 442.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.092e-05/0.2247, allocations: 38.73 kB / 442.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.252e-06/0.2247, allocations: 3.938 kB / 442.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005015/0.2252, allocations: 327.7 kB / 442.9 MB, free: 35.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.732e-05/0.2253, allocations: 54.28 kB / 442.9 MB, free: 35.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003072/0.2256, allocations: 286.8 kB / 443.2 MB, free: 34.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2256, allocations: 29.7 kB / 443.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.2257, allocations: 172.9 kB / 443.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.2257, allocations: 97.2 kB / 443.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.2258, allocations: 79.58 kB / 443.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.561e-05/0.2259, allocations: 338.5 kB / 443.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.226, allocations: 93.36 kB / 444 MB, free: 34.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.2262, allocations: 184.2 kB / 444.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2277, allocations: 0.6209 MB / 444.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.2277, allocations: 0 / 444.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004362/0.2282, allocations: 372.3 kB / 445.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.2282, allocations: 5.781 kB / 445.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2282, allocations: 6.141 kB / 445.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2282, allocations: 6.875 kB / 445.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.2287, allocations: 103 kB / 445.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2288, allocations: 9.984 kB / 445.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.229, allocations: 53.25 kB / 445.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.229, allocations: 17.84 kB / 445.4 MB, free: 33.7 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.0001393/0.2292, allocations: 165.6 kB / 445.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.2292, allocations: 30.88 kB / 445.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.2296, allocations: 291.7 kB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2296, allocations: 2.938 kB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2296, allocations: 3 kB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2297, allocations: 3.234 kB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.2301, allocations: 374.6 kB / 446.2 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2301, allocations: 0 / 446.2 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.2304, allocations: 78.77 kB / 446.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2304, allocations: 1.25 kB / 446.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.2304, allocations: 7.094 kB / 446.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2305, allocations: 2.844 kB / 446.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.2305, allocations: 0 / 446.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004737/0.2309, allocations: 487.8 kB / 446.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.231, allocations: 104.9 kB / 446.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.231, allocations: 14.41 kB / 446.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.2313, allocations: 27.02 kB / 446.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.2313, allocations: 27.16 kB / 446.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.2314, allocations: 5.719 kB / 447 MB, free: 32.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.2316, allocations: 200.4 kB / 447.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2316, allocations: 0 / 447.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002755/0.2319, allocations: 58.12 kB / 447.2 MB, free: 32.59 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.0006067/0.2325, allocations: 1.025 MB / 448.2 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004033/0.2329, allocations: 288.8 kB / 448.5 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2329, allocations: 4.125 kB / 448.5 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.2331, allocations: 126.8 kB / 448.6 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.2334, allocations: 39.59 kB / 448.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.2364, allocations: 3.277 MB / 452 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.2365, allocations: 0.7744 MB / 452.7 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.2367, allocations: 49.5 kB / 452.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.2368, allocations: 100.8 kB / 452.9 MB, free: 28.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2368, allocations: 3.938 kB / 452.9 MB, free: 28.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01606/0.2529, allocations: 5.41 MB / 458.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/0.253, allocations: 189.4 kB / 458.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.991, allocations: 2.25 kB / 458.5 MB, free: 27.96 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)