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.0008376/0.0008403, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.0008284/0.0008284, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.136/1.136, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1709/0.1709, allocations: 22.34 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002658, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.434, allocations: 55.98 MB / 437.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002846/0.4369, allocations: 1.649 MB / 439.5 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.4384, allocations: 0.5883 MB / 440.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.4386, allocations: 7.25 kB / 440.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.439, allocations: 34.89 kB / 440.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.4392, allocations: 36.44 kB / 440.2 MB, free: 37.71 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.000357/0.4396, allocations: 91.94 kB / 440.3 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000355/0.44, allocations: 193.1 kB / 440.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.4402, allocations: 70.64 kB / 440.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.4404, allocations: 101.5 kB / 440.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.4407, allocations: 126.3 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.4407, allocations: 10.84 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.104e-05/0.4408, allocations: 10.56 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.4409, allocations: 61.25 kB / 440.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.837e-05/0.441, allocations: 63.42 kB / 440.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.4413, allocations: 186.1 kB / 441.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.4413, allocations: 0 / 441.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4413, allocations: 0 / 441.1 MB, free: 37.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.4414, allocations: 0 / 441.1 MB, free: 37.33 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.001744/0.4431, allocations: 0.5911 MB / 441.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.4432, allocations: 12.22 kB / 441.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.311e-05/0.4433, allocations: 58.8 kB / 441.8 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/0.4434, allocations: 30.78 kB / 441.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000695/0.4441, allocations: 298.6 kB / 442.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.4442, allocations: 19.22 kB / 442.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.4443, allocations: 40.5 kB / 442.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006993/0.445, allocations: 294.4 kB / 442.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.445, allocations: 3.328 kB / 442.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.4451, allocations: 11 kB / 442.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.4451, allocations: 8.656 kB / 442.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/0.4458, allocations: 215.8 kB / 442.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.4485, allocations: 1.197 MB / 443.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/0.4492, allocations: 205.9 kB / 444.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.4492, allocations: 4.172 kB / 444.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.4493, allocations: 42.12 kB / 444.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.344e-06/0.4493, allocations: 0 / 444.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009901/0.4503, allocations: 324.3 kB / 444.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.4503, allocations: 58.28 kB / 444.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005901/0.451, allocations: 283.9 kB / 444.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.451, allocations: 32.2 kB / 444.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.4511, allocations: 171.6 kB / 445 MB, free: 34.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.106e-05/0.4512, allocations: 96.97 kB / 445.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.4513, allocations: 6.812 kB / 445.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.883e-05/0.4514, allocations: 342.2 kB / 445.4 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.4517, allocations: 95.36 kB / 445.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.4521, allocations: 180.2 kB / 445.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.4524, allocations: 123.4 kB / 445.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4525, allocations: 0 / 445.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000932/0.4534, allocations: 371 kB / 446.1 MB, free: 33.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.4535, allocations: 7.719 kB / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4535, allocations: 2.969 kB / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.4535, allocations: 2.938 kB / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009869/0.4545, allocations: 102.5 kB / 446.3 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.4545, allocations: 5.594 kB / 446.3 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.455, allocations: 62.52 kB / 446.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.4551, allocations: 19.3 kB / 446.3 MB, free: 33.94 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 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002855/0.4554, allocations: 160.9 kB / 446.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.333e-05/0.4555, allocations: 24.56 kB / 446.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007855/0.4563, allocations: 295.2 kB / 446.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4563, allocations: 2.719 kB / 446.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.4563, allocations: 4 kB / 446.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4564, allocations: 7.125 kB / 446.8 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008158/0.4572, allocations: 382.6 kB / 447.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4572, allocations: 0 / 447.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006646/0.4579, allocations: 67.3 kB / 447.3 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.4579, allocations: 3.062 kB / 447.3 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.458, allocations: 10.36 kB / 447.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.458, allocations: 0 / 447.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.458, allocations: 4 kB / 447.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000919/0.4589, allocations: 488.6 kB / 447.8 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.877e-05/0.459, allocations: 108.6 kB / 447.9 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.45e-05/0.4591, allocations: 6.906 kB / 447.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.4596, allocations: 25.34 kB / 447.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.4597, allocations: 27.16 kB / 447.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.4598, allocations: 9.875 kB / 447.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005139/0.4603, allocations: 196 kB / 448.1 MB, free: 32.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4603, allocations: 0 / 448.1 MB, free: 32.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005668/0.4609, allocations: 60.41 kB / 448.2 MB, free: 32.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001302/0.4622, allocations: 1.019 MB / 449.2 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008551/0.4631, allocations: 272.5 kB / 449.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4631, allocations: 0 / 449.5 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.4634, allocations: 126.5 kB / 449.6 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.4639, allocations: 25.83 kB / 449.6 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.4697, allocations: 3.518 MB / 453.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.47, allocations: 0.793 MB / 453.9 MB, free: 28.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002745/0.4703, allocations: 43.59 kB / 454 MB, free: 28.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.4705, allocations: 103.7 kB / 454.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4706, allocations: 0 / 454.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02222/0.4928, allocations: 5.097 MB / 459.2 MB, free: 28.16 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/0.4931, allocations: 164.3 kB / 459.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.256, allocations: 4 kB / 459.3 MB, free: 27.92 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/linux/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) Environment - environmentSimulation: