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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 104.7 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09561/0.09561, allocations: 22.71 MB / 325.4 MB, free: 3.527 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 67.89 kB / 457.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1168, allocations: 58.03 MB / 0.5031 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003404/0.1202, allocations: 2.018 MB / 0.5051 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1214, allocations: 0.6273 MB / 0.5057 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.1215, allocations: 7.938 kB / 0.5057 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.1218, allocations: 55.45 kB / 0.5058 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1219, allocations: 31.73 kB / 0.5058 GB, free: 4.863 MB / 382.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.0002791/0.1222, allocations: 131.8 kB / 0.5059 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.1226, allocations: 324 kB / 0.5062 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.1228, allocations: 74.2 kB / 0.5063 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1229, allocations: 123.5 kB / 0.5064 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.1231, allocations: 155.3 kB / 0.5066 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.1232, allocations: 24 kB / 0.5066 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.619e-05/0.1232, allocations: 28 kB / 0.5066 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1233, allocations: 83.73 kB / 0.5067 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.1235, allocations: 135.2 kB / 0.5068 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003118/0.1238, allocations: 278.7 kB / 0.5071 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1238, allocations: 0 / 0.5071 GB, free: 3.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1238, allocations: 3.938 kB / 0.5071 GB, free: 3.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1238, allocations: 0 / 0.5071 GB, free: 3.527 MB / 382.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.001333/0.1251, allocations: 0.6313 MB / 0.5077 GB, free: 2.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1251, allocations: 8.031 kB / 0.5077 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.161e-05/0.1252, allocations: 62.73 kB / 0.5078 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.1253, allocations: 36.75 kB / 0.5078 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.1258, allocations: 307.5 kB / 0.5081 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.1258, allocations: 24.94 kB / 0.5081 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.1259, allocations: 32.36 kB / 0.5082 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.1264, allocations: 298.4 kB / 0.5084 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1264, allocations: 0 / 0.5084 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.1264, allocations: 15.92 kB / 0.5085 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1264, allocations: 8 kB / 0.5085 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.1269, allocations: 218.1 kB / 0.5087 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.1289, allocations: 1.183 MB / 0.5098 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.1293, allocations: 205.8 kB / 0.51 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.1295, allocations: 97.92 kB / 0.5101 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.1295, allocations: 8.219 kB / 0.5101 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.1295, allocations: 38.73 kB / 0.5102 GB, free: 192 kB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.272e-06/0.1295, allocations: 0 / 0.5102 GB, free: 192 kB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.2007/0.3303, allocations: 316.7 kB / 0.5105 GB, free: 16.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.3303, allocations: 54.91 kB / 0.5105 GB, free: 16.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.3308, allocations: 286 kB / 0.5108 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.3308, allocations: 29.67 kB / 0.5108 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.3309, allocations: 175.6 kB / 0.511 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/0.331, allocations: 106.5 kB / 0.5111 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.3311, allocations: 74.3 kB / 0.5112 GB, free: 15.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.3312, allocations: 345.3 kB / 0.5115 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.3313, allocations: 97.17 kB / 0.5116 GB, free: 15.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.3317, allocations: 185.1 kB / 0.5118 GB, free: 15.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.3344, allocations: 0.6106 MB / 0.5123 GB, free: 15.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.3344, allocations: 3.969 kB / 0.5124 GB, free: 15.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006478/0.335, allocations: 376.3 kB / 0.5127 GB, free: 15.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.335, allocations: 8.625 kB / 0.5127 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3351, allocations: 4.359 kB / 0.5127 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.3351, allocations: 7.688 kB / 0.5127 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/0.3356, allocations: 99.3 kB / 0.5128 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.3356, allocations: 5.141 kB / 0.5128 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.3359, allocations: 58.77 kB / 0.5129 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.3359, allocations: 20.5 kB / 0.5129 GB, free: 15.16 MB / 382.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.0001731/0.3361, allocations: 154.2 kB / 0.5131 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.565e-05/0.3362, allocations: 32.41 kB / 0.5131 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.3366, allocations: 295.5 kB / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3366, allocations: 6.125 kB / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3366, allocations: 0 / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3366, allocations: 3.422 kB / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.3371, allocations: 377.5 kB / 0.5137 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3371, allocations: 0 / 0.5137 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.3374, allocations: 66.09 kB / 0.5138 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3374, allocations: 3.688 kB / 0.5138 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.3375, allocations: 12.84 kB / 0.5138 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3375, allocations: 2.031 kB / 0.5138 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3375, allocations: 3.656 kB / 0.5138 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005541/0.338, allocations: 499.9 kB / 0.5143 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.3381, allocations: 106.2 kB / 0.5144 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.3381, allocations: 11.39 kB / 0.5144 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.3384, allocations: 28.86 kB / 0.5144 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.3384, allocations: 19.98 kB / 0.5145 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.3385, allocations: 11.03 kB / 0.5145 GB, free: 14.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.3387, allocations: 201.7 kB / 0.5147 GB, free: 14.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3387, allocations: 2.062 kB / 0.5147 GB, free: 14.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.339, allocations: 63.45 kB / 0.5147 GB, free: 14.44 MB / 382.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.0007569/0.3398, allocations: 1.01 MB / 0.5157 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004851/0.3403, allocations: 255.1 kB / 0.5159 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3403, allocations: 0 / 0.5159 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.3405, allocations: 133.4 kB / 0.5161 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.3408, allocations: 28.95 kB / 0.5161 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003827/0.3446, allocations: 3.185 MB / 0.5192 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.3449, allocations: 0.7808 MB / 0.52 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.345, allocations: 46.86 kB / 0.52 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.3452, allocations: 104.1 kB / 0.5201 GB, free: 11 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3452, allocations: 2.906 kB / 0.5201 GB, free: 11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.3752, allocations: 5.768 MB / 0.5258 GB, free: 10.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.776/8.151, allocations: 6.078 kB / 0.5258 GB, free: 10.4 MB / 382.1 MB " [Timeout remaining time 652] (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 --stepSize=1 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.598135170061141] Failed to read output from testmodel.py, exit status != 0: 8.218587116803974 8.228237912 8.10225532 Calling exit ...