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.000847/0.0008472, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.006116/0.006117, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.354/1.354, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2154/0.2154, allocations: 22.35 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004605/0.0004606, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2751, allocations: 55.98 MB / 438.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.001614/0.2767, allocations: 1.698 MB / 440.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007631/0.2775, allocations: 0.604 MB / 441 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.237e-05/0.2776, allocations: 6.531 kB / 441 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002511/0.2779, allocations: 39.31 kB / 441 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.278, allocations: 33.45 kB / 441.1 MB, free: 37.6 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.0002033/0.2782, allocations: 111.2 kB / 441.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.2785, allocations: 315.5 kB / 441.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.2786, allocations: 89.81 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.2787, allocations: 102.7 kB / 441.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2789, allocations: 124.2 kB / 441.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.2789, allocations: 12.16 kB / 441.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.719e-05/0.279, allocations: 10.22 kB / 441.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.2791, allocations: 71.61 kB / 441.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.965e-05/0.2791, allocations: 133.4 kB / 442 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.2793, allocations: 242.2 kB / 442.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2793, allocations: 3.375 kB / 442.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2793, allocations: 0 / 442.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.2793, allocations: 0 / 442.2 MB, free: 37.05 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.001037/0.2804, allocations: 0.5847 MB / 442.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2804, allocations: 12.03 kB / 442.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.395e-05/0.2805, allocations: 65.08 kB / 442.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.2805, allocations: 37.66 kB / 442.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.2809, allocations: 294.7 kB / 443.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.281, allocations: 22.81 kB / 443.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.281, allocations: 38.77 kB / 443.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.2815, allocations: 301.6 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2815, allocations: 3.156 kB / 443.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.2815, allocations: 8 kB / 443.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2815, allocations: 8.812 kB / 443.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003733/0.2819, allocations: 217.7 kB / 443.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.2835, allocations: 1.197 MB / 445 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.2838, allocations: 208.9 kB / 445.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.284, allocations: 105.5 kB / 445.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.284, allocations: 3.953 kB / 445.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.284, allocations: 34.73 kB / 445.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.363e-06/0.284, allocations: 0 / 445.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005653/0.2846, allocations: 325.4 kB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.759e-05/0.2846, allocations: 54.59 kB / 445.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.285, allocations: 286.7 kB / 446 MB, free: 34.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.285, allocations: 29.7 kB / 446 MB, free: 34.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.2851, allocations: 172.7 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.2852, allocations: 99.86 kB / 446.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-05/0.2852, allocations: 44.62 kB / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.482e-05/0.2853, allocations: 340.7 kB / 446.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.2855, allocations: 97.44 kB / 446.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.2857, allocations: 186.4 kB / 447 MB, free: 33.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.2874, allocations: 0.6461 MB / 447.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2874, allocations: 0 / 447.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005117/0.2879, allocations: 375 kB / 448 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.288, allocations: 9.156 kB / 448 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.288, allocations: 3.031 kB / 448 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.288, allocations: 5.938 kB / 448 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/0.2886, allocations: 100 kB / 448.1 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.2886, allocations: 9.953 kB / 448.1 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.2889, allocations: 57.38 kB / 448.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.2889, allocations: 17.97 kB / 448.2 MB, free: 33.36 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.0001666/0.2891, allocations: 165.6 kB / 448.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.2891, allocations: 31 kB / 448.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000453/0.2896, allocations: 290.4 kB / 448.6 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.2896, allocations: 3.062 kB / 448.6 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2896, allocations: 7.938 kB / 448.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2896, allocations: 0 / 448.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004488/0.2901, allocations: 379.2 kB / 449 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2901, allocations: 3.031 kB / 449 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.2905, allocations: 70.17 kB / 449.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.2905, allocations: 2.875 kB / 449.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.2905, allocations: 7 kB / 449.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2905, allocations: 0 / 449.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2905, allocations: 0 / 449.1 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005304/0.291, allocations: 497.7 kB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.2911, allocations: 105.5 kB / 449.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.2911, allocations: 9.266 kB / 449.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.2914, allocations: 27.97 kB / 449.7 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.2915, allocations: 22.97 kB / 449.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.2915, allocations: 4.062 kB / 449.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002746/0.2918, allocations: 206.6 kB / 450 MB, free: 32.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2918, allocations: 0 / 450 MB, free: 32.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.2921, allocations: 59.75 kB / 450 MB, free: 32.25 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.000716/0.2928, allocations: 1.027 MB / 451 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004029/0.2932, allocations: 272.9 kB / 451.3 MB, free: 31.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2933, allocations: 0 / 451.3 MB, free: 31.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.2934, allocations: 127.5 kB / 451.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.2938, allocations: 38.23 kB / 451.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.2973, allocations: 3.305 MB / 454.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.2975, allocations: 0.7804 MB / 455.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.2977, allocations: 51.91 kB / 455.6 MB, free: 28.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.2978, allocations: 101.2 kB / 455.7 MB, free: 28.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2978, allocations: 0 / 455.7 MB, free: 28.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.3319, allocations: 5.167 MB / 460.9 MB, free: 28 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002645/0.3322, allocations: 182 kB / 461.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.215, allocations: 0 / 461.1 MB, free: 27.75 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)