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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 104.3 kB / 19.72 MB, free: 1.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 214.8 kB / 23.01 MB, free: 4.98 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1126/0.1126, allocations: 24.03 MB / 337.2 MB, free: 11.35 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 71.89 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3334, allocations: 59.58 MB / 0.5209 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002986/0.3363, allocations: 1.942 MB / 0.5228 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.3374, allocations: 0.6232 MB / 0.5234 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3375, allocations: 10.22 kB / 0.5234 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002801/0.3378, allocations: 57.36 kB / 0.5235 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.338, allocations: 38.2 kB / 0.5235 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002772/0.3382, allocations: 129.8 kB / 0.5236 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003874/0.3386, allocations: 353.4 kB / 0.524 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3388, allocations: 77.92 kB / 0.5241 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.3389, allocations: 130.5 kB / 0.5242 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.3391, allocations: 138.4 kB / 0.5243 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/0.3392, allocations: 25.34 kB / 0.5243 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.577e-05/0.3392, allocations: 27.19 kB / 0.5244 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.634e-05/0.3393, allocations: 82.39 kB / 0.5244 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.067e-05/0.3394, allocations: 110.5 kB / 0.5245 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.3397, allocations: 274.9 kB / 0.5248 GB, free: 7.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3397, allocations: 1.375 kB / 0.5248 GB, free: 7.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3397, allocations: 0 / 0.5248 GB, free: 7.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.3397, allocations: 0 / 0.5248 GB, free: 7.684 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.001205/0.3409, allocations: 0.5598 MB / 0.5254 GB, free: 7.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3409, allocations: 15.69 kB / 0.5254 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.687e-05/0.341, allocations: 60.72 kB / 0.5254 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.341, allocations: 37.78 kB / 0.5255 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.3415, allocations: 247.3 kB / 0.5257 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.3415, allocations: 21.22 kB / 0.5257 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.3416, allocations: 36.61 kB / 0.5258 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.3421, allocations: 302.7 kB / 0.526 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3421, allocations: 9.359 kB / 0.526 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.3421, allocations: 10.59 kB / 0.5261 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3421, allocations: 6.438 kB / 0.5261 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004284/0.3425, allocations: 220.2 kB / 0.5263 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.3443, allocations: 1.088 MB / 0.5273 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.3448, allocations: 200.1 kB / 0.5275 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.345, allocations: 105.6 kB / 0.5276 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.345, allocations: 3.703 kB / 0.5276 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.345, allocations: 36.95 kB / 0.5277 GB, free: 5.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.345, allocations: 0 / 0.5277 GB, free: 5.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006495/0.3457, allocations: 323.9 kB / 0.528 GB, free: 5.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.3457, allocations: 55.12 kB / 0.528 GB, free: 5.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.3461, allocations: 289.1 kB / 0.5283 GB, free: 5.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.3461, allocations: 30.92 kB / 0.5283 GB, free: 5.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.3462, allocations: 175.6 kB / 0.5285 GB, free: 5.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.815e-05/0.3463, allocations: 108.4 kB / 0.5286 GB, free: 5.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3464, allocations: 76.33 kB / 0.5287 GB, free: 5.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.712e-05/0.3464, allocations: 339.2 kB / 0.529 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.3466, allocations: 100.4 kB / 0.5291 GB, free: 4.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.3469, allocations: 185.6 kB / 0.5293 GB, free: 4.625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.3488, allocations: 0.6121 MB / 0.5299 GB, free: 4.363 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.247e-06/0.3488, allocations: 1.25 kB / 0.5299 GB, free: 4.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006505/0.3494, allocations: 370.7 kB / 0.5302 GB, free: 4.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3494, allocations: 6.375 kB / 0.5302 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3495, allocations: 4.078 kB / 0.5302 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.3495, allocations: 8.781 kB / 0.5302 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.3501, allocations: 103.5 kB / 0.5303 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.3501, allocations: 6.406 kB / 0.5303 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.3504, allocations: 51.44 kB / 0.5304 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.349e-05/0.3504, allocations: 15.12 kB / 0.5304 GB, free: 4.156 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.0002341/0.3507, allocations: 163.6 kB / 0.5306 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.3507, allocations: 27.98 kB / 0.5306 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005843/0.3513, allocations: 303.4 kB / 0.5309 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.3513, allocations: 3.469 kB / 0.5309 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3513, allocations: 0.7031 kB / 0.5309 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.3513, allocations: 1.359 kB / 0.5309 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005762/0.3519, allocations: 314.8 kB / 0.5312 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3519, allocations: 0.6562 kB / 0.5312 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.3523, allocations: 70.64 kB / 0.5313 GB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3523, allocations: 5.062 kB / 0.5313 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.3523, allocations: 12.59 kB / 0.5313 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3523, allocations: 1.594 kB / 0.5313 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3523, allocations: 1.094 kB / 0.5313 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.353, allocations: 493.7 kB / 0.5317 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.353, allocations: 34.41 kB / 0.5318 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.3531, allocations: 7.391 kB / 0.5318 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.3533, allocations: 24.72 kB / 0.5318 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.3534, allocations: 31.5 kB / 0.5318 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3534, allocations: 10.14 kB / 0.5319 GB, free: 3.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003743/0.3538, allocations: 205.4 kB / 0.532 GB, free: 3.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3538, allocations: 0 / 0.532 GB, free: 3.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.3542, allocations: 59.33 kB / 0.5321 GB, free: 3.164 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.0009632/0.3551, allocations: 1.021 MB / 0.5331 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.3556, allocations: 258.2 kB / 0.5333 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3557, allocations: 1.188 kB / 0.5333 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.3559, allocations: 125.4 kB / 0.5335 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.3562, allocations: 31.17 kB / 0.5335 GB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.3603, allocations: 3.159 MB / 0.5366 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.3606, allocations: 183.2 kB / 0.5368 GB, free: 104 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.3607, allocations: 45.81 kB / 0.5368 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.3609, allocations: 96.72 kB / 0.5369 GB, free: 28 kB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3609, allocations: 1.25 kB / 0.5369 GB, free: 28 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03671/0.3976, allocations: 6.345 MB / 0.5431 GB, free: 14.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.69, allocations: 15.97 kB / 0.5431 GB, free: 14.03 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.512175390031189] Failed to read output from testmodel.py, exit status != 0: 11.805369634646922 11.830360174 11.486144788 Calling exit ...