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.006577/0.006577, allocations: 95.39 kB / 15.73 MB, free: 6.039 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.00174/0.00174, allocations: 198.9 kB / 16.68 MB, free: 5.969 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2/0.2, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 65.7 kB / 436.6 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09079, allocations: 54.97 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002691/0.09352, allocations: 2.003 MB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.09473, allocations: 0.6272 MB / 494.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.0949, allocations: 7.938 kB / 494.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.09521, allocations: 51.53 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.09536, allocations: 39.66 kB / 494.3 MB, free: 14.98 MB / 366.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.0002643/0.09564, allocations: 127.8 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.09601, allocations: 328 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.0962, allocations: 98.48 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.09637, allocations: 127.5 kB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.0966, allocations: 139.4 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.231e-05/0.09666, allocations: 32 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.221e-05/0.09671, allocations: 24 kB / 495.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.09683, allocations: 83.72 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.09697, allocations: 131.2 kB / 495.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003025/0.09728, allocations: 274.7 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.09729, allocations: 0 / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09729, allocations: 0 / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.0973, allocations: 0 / 495.6 MB, free: 13.64 MB / 366.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.001285/0.09859, allocations: 0.6352 MB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.09864, allocations: 12.03 kB / 496.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.51e-05/0.09871, allocations: 62.73 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.406e-05/0.09878, allocations: 40.69 kB / 496.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.0993, allocations: 303.6 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.09934, allocations: 20.94 kB / 496.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.09941, allocations: 36.36 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.09991, allocations: 298.3 kB / 497 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.09994, allocations: 11.92 kB / 497 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.09997, allocations: 8 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.09999, allocations: 8 kB / 497 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004477/0.1004, allocations: 222 kB / 497.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1024, allocations: 1.179 MB / 498.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.1028, allocations: 207.2 kB / 498.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.103, allocations: 101.3 kB / 498.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.1031, allocations: 4.219 kB / 498.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.1031, allocations: 42.67 kB / 498.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.343e-06/0.1031, allocations: 0 / 498.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006764/0.1038, allocations: 328.4 kB / 499.1 MB, free: 9.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.1038, allocations: 51.41 kB / 499.1 MB, free: 9.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/0.1043, allocations: 290.5 kB / 499.4 MB, free: 9.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1043, allocations: 29.7 kB / 499.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1044, allocations: 172.7 kB / 499.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.1045, allocations: 107.1 kB / 499.7 MB, free: 9.289 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1046, allocations: 74.06 kB / 499.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1048, allocations: 338.8 kB / 0.4884 GB, free: 8.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.105, allocations: 96.77 kB / 0.4885 GB, free: 8.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1053, allocations: 188.7 kB / 0.4887 GB, free: 8.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.1071, allocations: 0.6141 MB / 0.4893 GB, free: 7.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1071, allocations: 4 kB / 0.4893 GB, free: 7.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006001/0.1077, allocations: 372.6 kB / 0.4896 GB, free: 7.535 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1078, allocations: 8 kB / 0.4896 GB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1078, allocations: 0 / 0.4896 GB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1078, allocations: 4 kB / 0.4896 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000609/0.1084, allocations: 103.9 kB / 0.4897 GB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.1084, allocations: 7.938 kB / 0.4898 GB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.1087, allocations: 59.95 kB / 0.4898 GB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.1087, allocations: 19.98 kB / 0.4898 GB, free: 7.336 MB / 366.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.0002102/0.109, allocations: 151 kB / 0.49 GB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.109, allocations: 31.75 kB / 0.49 GB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005377/0.1096, allocations: 301.5 kB / 0.4903 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1096, allocations: 8 kB / 0.4903 GB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1096, allocations: 0 / 0.4903 GB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1096, allocations: 0 / 0.4903 GB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000584/0.1102, allocations: 377.2 kB / 0.4907 GB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1102, allocations: 3.938 kB / 0.4907 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.1106, allocations: 71.83 kB / 0.4907 GB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.1106, allocations: 7.984 kB / 0.4907 GB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.1106, allocations: 8 kB / 0.4907 GB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1106, allocations: 4 kB / 0.4908 GB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1106, allocations: 0 / 0.4908 GB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.1113, allocations: 499.4 kB / 0.4912 GB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.1114, allocations: 108.8 kB / 0.4913 GB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.1114, allocations: 8 kB / 0.4913 GB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.1117, allocations: 27.95 kB / 0.4914 GB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.1118, allocations: 23.97 kB / 0.4914 GB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.1118, allocations: 8 kB / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.1121, allocations: 201.9 kB / 0.4916 GB, free: 5.438 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1121, allocations: 0 / 0.4916 GB, free: 5.438 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1125, allocations: 59.94 kB / 0.4916 GB, free: 5.379 MB / 366.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.001027/0.1135, allocations: 1.039 MB / 0.4927 GB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.114, allocations: 260.3 kB / 0.4929 GB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.114, allocations: 0 / 0.4929 GB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.1142, allocations: 135.8 kB / 0.493 GB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.1145, allocations: 24.55 kB / 0.4931 GB, free: 3.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.1189, allocations: 3.186 MB / 0.4962 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.1193, allocations: 0.7792 MB / 0.4969 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.1195, allocations: 42.95 kB / 0.497 GB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.1197, allocations: 103.4 kB / 0.4971 GB, free: 15.62 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1197, allocations: 0 / 0.4971 GB, free: 15.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.1479, allocations: 5.732 MB / 0.5027 GB, free: 9.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.879/8.027, allocations: 4 kB / 0.5027 GB, free: 9.965 MB / 382.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)