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.0007769/0.0007769, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0008771/0.0008771, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.9028/0.9028, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.06096/0.06096, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.592e-05, allocations: 3.703 kB / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002052/0.002078, allocations: 1.937 MB / 417 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007906/0.002868, allocations: 0.6302 MB / 417.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.878e-05/0.002967, allocations: 6.688 kB / 417.6 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.003251, allocations: 59.34 kB / 417.7 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.003383, allocations: 39.95 kB / 417.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.003636, allocations: 148.2 kB / 417.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.003906, allocations: 304.8 kB / 418.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.00405, allocations: 62.7 kB / 418.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.00418, allocations: 113.7 kB / 418.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.004349, allocations: 115.3 kB / 418.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.004404, allocations: 25.47 kB / 418.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.367e-05/0.004438, allocations: 26.19 kB / 418.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.004553, allocations: 85.03 kB / 418.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.492e-05/0.004638, allocations: 85.95 kB / 418.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.004926, allocations: 276.7 kB / 418.9 MB, free: 10.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.004929, allocations: 0 / 418.9 MB, free: 10.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.00493, allocations: 1.281 kB / 419 MB, free: 10.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.004936, allocations: 0 / 419 MB, free: 10.4 MB / 330.7 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.0008398/0.005776, allocations: 0.5567 MB / 419.5 MB, free: 9.996 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.005813, allocations: 15.28 kB / 419.5 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.005856, allocations: 60.34 kB / 419.6 MB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.005899, allocations: 33.62 kB / 419.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.006198, allocations: 249.9 kB / 419.9 MB, free: 9.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.006222, allocations: 26.44 kB / 419.9 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.006259, allocations: 31.67 kB / 419.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.006608, allocations: 300.2 kB / 420.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.006623, allocations: 1.344 kB / 420.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.006641, allocations: 14.69 kB / 420.2 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.00665, allocations: 6.375 kB / 420.2 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.006964, allocations: 217.7 kB / 420.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.008369, allocations: 1.103 MB / 421.5 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.008745, allocations: 199.2 kB / 421.7 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.008892, allocations: 101.9 kB / 421.8 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.008928, allocations: 3.391 kB / 421.8 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.008946, allocations: 33.97 kB / 421.9 MB, free: 8.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.383e-06/0.008947, allocations: 3.938 kB / 421.9 MB, free: 8.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.000511/0.009458, allocations: 329.4 kB / 422.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.009482, allocations: 58.62 kB / 422.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.009752, allocations: 288.6 kB / 422.5 MB, free: 8.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.009766, allocations: 30.98 kB / 422.6 MB, free: 8.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.009833, allocations: 171.6 kB / 422.7 MB, free: 7.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.009878, allocations: 101 kB / 422.8 MB, free: 7.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/0.009952, allocations: 79.42 kB / 422.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.582e-05/0.01001, allocations: 339.8 kB / 423.2 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.01014, allocations: 96.16 kB / 423.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.01031, allocations: 189.4 kB / 423.5 MB, free: 7.336 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.01144, allocations: 0.6135 MB / 424.1 MB, free: 7.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01145, allocations: 0 / 424.1 MB, free: 7.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00043/0.01188, allocations: 367.2 kB / 424.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.01189, allocations: 6.766 kB / 424.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.0119, allocations: 4.906 kB / 424.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.01192, allocations: 8.219 kB / 424.5 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.01225, allocations: 100.2 kB / 424.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.01226, allocations: 12.5 kB / 424.6 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.0124, allocations: 52.11 kB / 424.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.01242, allocations: 20.48 kB / 424.7 MB, free: 6.867 MB / 330.7 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.0001475/0.01256, allocations: 156 kB / 424.8 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.0126, allocations: 24.42 kB / 424.9 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003676/0.01296, allocations: 306.8 kB / 425.2 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.01297, allocations: 7.344 kB / 425.2 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01297, allocations: 0 / 425.2 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.01298, allocations: 5.547 kB / 425.2 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003479/0.01333, allocations: 314.2 kB / 425.5 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.01333, allocations: 1.516 kB / 425.5 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.01354, allocations: 62.77 kB / 425.6 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.01354, allocations: 2.125 kB / 425.6 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.01356, allocations: 8.062 kB / 425.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.01357, allocations: 13.06 kB / 425.6 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.01357, allocations: 2.359 kB / 425.6 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.01411, allocations: 489.5 kB / 426.1 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.077e-05/0.01414, allocations: 26.12 kB / 426.1 MB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.01417, allocations: 11.61 kB / 426.1 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.0143, allocations: 29.02 kB / 426.1 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.01437, allocations: 27.39 kB / 426.2 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.01438, allocations: 11.23 kB / 426.2 MB, free: 6.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001896/0.01457, allocations: 196 kB / 426.4 MB, free: 5.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01457, allocations: 0 / 426.4 MB, free: 5.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002255/0.01479, allocations: 63.39 kB / 426.4 MB, free: 5.891 MB / 330.7 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.0006003/0.01539, allocations: 1.021 MB / 427.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.01574, allocations: 255.3 kB / 427.7 MB, free: 5.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01574, allocations: 0 / 427.7 MB, free: 5.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.01588, allocations: 129.4 kB / 427.8 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.01613, allocations: 38.47 kB / 427.8 MB, free: 4.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.01881, allocations: 3.132 MB / 431 MB, free: 2.941 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.01893, allocations: 177.5 kB / 431.2 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.01904, allocations: 44.23 kB / 431.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.01917, allocations: 104.1 kB / 431.3 MB, free: 2.773 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01917, allocations: 0 / 431.3 MB, free: 2.773 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.03914, allocations: 6.488 MB / 437.8 MB, free: 316 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.818/6.857, allocations: 8.938 kB / 437.8 MB, free: 312 kB / 330.7 MB " [Timeout remaining time 653] (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: 8.778058701194823] Failed to read output from testmodel.py, exit status != 0: 6.9405243415385485 6.950265483 6.9433368170000005 Calling exit ...