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.005114/0.005114, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001691/0.001691, allocations: 188.6 kB / 16.67 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2004/0.2004, allocations: 22.34 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 61.77 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09208, allocations: 54.97 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002898/0.09503, allocations: 2.013 MB / 493.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.09629, allocations: 0.6273 MB / 494.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001912/0.0965, allocations: 7.938 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.09687, allocations: 51.47 kB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.09714, allocations: 39.7 kB / 494.3 MB, free: 14.96 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.0003296/0.09748, allocations: 119.8 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.09791, allocations: 332 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.09812, allocations: 98.25 kB / 494.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.09832, allocations: 123.5 kB / 494.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.09854, allocations: 143.3 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.0986, allocations: 28 kB / 495.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.09865, allocations: 24 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.09877, allocations: 83.73 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.09889, allocations: 131.2 kB / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.09919, allocations: 270.9 kB / 495.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.0992, allocations: 0 / 495.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09921, allocations: 7.938 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.09923, allocations: 0 / 495.6 MB, free: 13.62 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.00134/0.1006, allocations: 0.6285 MB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1006, allocations: 15.97 kB / 496.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.743e-05/0.1007, allocations: 58.73 kB / 496.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.601e-05/0.1008, allocations: 32.56 kB / 496.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.1013, allocations: 307.3 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.1013, allocations: 20.94 kB / 496.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.1014, allocations: 32.38 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.1019, allocations: 302.4 kB / 497 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.1019, allocations: 0 / 497 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.102, allocations: 12 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.102, allocations: 7.938 kB / 497 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004419/0.1024, allocations: 226 kB / 497.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.1044, allocations: 1.175 MB / 498.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004323/0.1049, allocations: 203.2 kB / 498.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.1051, allocations: 101.3 kB / 498.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.1051, allocations: 8.156 kB / 498.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.1051, allocations: 42.73 kB / 498.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.1051, allocations: 4 kB / 498.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006552/0.1058, allocations: 328.2 kB / 499.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.1059, allocations: 55.41 kB / 499.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004157/0.1063, allocations: 278.5 kB / 499.4 MB, free: 9.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.1063, allocations: 29.7 kB / 499.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1064, allocations: 168.4 kB / 499.6 MB, free: 9.402 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/0.1065, allocations: 98.62 kB / 499.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.1066, allocations: 81.97 kB / 499.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1068, allocations: 338.8 kB / 0.4884 GB, free: 8.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.107, allocations: 96.77 kB / 0.4885 GB, free: 8.781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1072, allocations: 188.7 kB / 0.4887 GB, free: 8.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/0.1091, allocations: 0.618 MB / 0.4893 GB, free: 7.914 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1091, allocations: 0 / 0.4893 GB, free: 7.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006129/0.1098, allocations: 368.4 kB / 0.4896 GB, free: 7.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1098, allocations: 8 kB / 0.4896 GB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.1098, allocations: 320 / 0.4896 GB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1098, allocations: 12 kB / 0.4896 GB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.1104, allocations: 103.8 kB / 0.4897 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.1105, allocations: 7.938 kB / 0.4897 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.1108, allocations: 55.58 kB / 0.4898 GB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.1108, allocations: 16 kB / 0.4898 GB, free: 7.348 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.0002249/0.111, allocations: 162.9 kB / 0.49 GB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.1111, allocations: 35.55 kB / 0.49 GB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005162/0.1116, allocations: 293.6 kB / 0.4903 GB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1117, allocations: 4 kB / 0.4903 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1117, allocations: 0 / 0.4903 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1117, allocations: 0 / 0.4903 GB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005515/0.1122, allocations: 377.3 kB / 0.4906 GB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1123, allocations: 0 / 0.4906 GB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.1126, allocations: 75.83 kB / 0.4907 GB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1127, allocations: 4 kB / 0.4907 GB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1127, allocations: 4 kB / 0.4907 GB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.1127, allocations: 4 kB / 0.4907 GB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1127, allocations: 0 / 0.4907 GB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006406/0.1134, allocations: 487.3 kB / 0.4912 GB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.1134, allocations: 112.6 kB / 0.4913 GB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.1135, allocations: 7.984 kB / 0.4913 GB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.1138, allocations: 27.97 kB / 0.4913 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.529e-05/0.1139, allocations: 23.97 kB / 0.4913 GB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.1139, allocations: 8 kB / 0.4914 GB, free: 5.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003263/0.1142, allocations: 197.9 kB / 0.4915 GB, free: 5.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1142, allocations: 3.938 kB / 0.4915 GB, free: 5.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003323/0.1146, allocations: 63.84 kB / 0.4916 GB, free: 5.398 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.0009661/0.1155, allocations: 1.024 MB / 0.4926 GB, free: 4.348 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005449/0.1161, allocations: 260.8 kB / 0.4929 GB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1161, allocations: 64 / 0.4929 GB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.1163, allocations: 139.8 kB / 0.493 GB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.1167, allocations: 36.55 kB / 0.493 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.1213, allocations: 3.167 MB / 0.4961 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.1218, allocations: 0.7792 MB / 0.4969 GB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.1219, allocations: 42.95 kB / 0.4969 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.1221, allocations: 107.4 kB / 0.497 GB, free: 15.66 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1221, allocations: 3.938 kB / 0.497 GB, free: 15.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.1473, allocations: 5.854 MB / 0.5027 GB, free: 9.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/7.878, allocations: 12 kB / 0.5028 GB, free: 9.863 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)