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.000923/0.000923, allocations: 76.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.001083/0.001083, allocations: 173.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.9327/0.9327, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.06234/0.06234, allocations: 18.13 MB / 278.1 MB, free: 11.53 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.734e-06/1.734e-06, allocations: 0 / 415.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.728e-05/1.902e-05, allocations: 2.281 kB / 415.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.00219/0.002209, allocations: 1.941 MB / 417 MB, free: 11.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008836/0.003092, allocations: 0.6333 MB / 417.6 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.003218, allocations: 5.312 kB / 417.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.003525, allocations: 54.2 kB / 417.7 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.003676, allocations: 47.89 kB / 417.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.003964, allocations: 143 kB / 417.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.004277, allocations: 302 kB / 418.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.004439, allocations: 70.64 kB / 418.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.004579, allocations: 113.2 kB / 418.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.004749, allocations: 115.3 kB / 418.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.025e-05/0.0048, allocations: 25.19 kB / 418.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.17e-05/0.004831, allocations: 26.88 kB / 418.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.889e-05/0.00492, allocations: 78.23 kB / 418.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.337e-05/0.004994, allocations: 83.81 kB / 418.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.00528, allocations: 281.4 kB / 419 MB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.005282, allocations: 0 / 419 MB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.005284, allocations: 1.156 kB / 419 MB, free: 10.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.005294, allocations: 0 / 419 MB, free: 10.36 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.0008952/0.006189, allocations: 0.5563 MB / 419.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.006231, allocations: 18.33 kB / 419.5 MB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.00628, allocations: 61.55 kB / 419.6 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.006332, allocations: 38.5 kB / 419.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.006652, allocations: 245.9 kB / 419.9 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.00668, allocations: 21.41 kB / 419.9 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.006721, allocations: 36.61 kB / 419.9 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003591/0.00708, allocations: 294.7 kB / 420.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.007095, allocations: 2.562 kB / 420.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.007113, allocations: 14.59 kB / 420.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.007122, allocations: 7 kB / 420.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.007449, allocations: 224 kB / 420.5 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.008662, allocations: 1.096 MB / 421.5 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.008968, allocations: 208.1 kB / 421.8 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.009088, allocations: 93.22 kB / 421.8 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.009117, allocations: 3.141 kB / 421.8 MB, free: 8.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.256e-05/0.00913, allocations: 41.73 kB / 421.9 MB, free: 8.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.009131, allocations: 1.156 kB / 421.9 MB, free: 8.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.000485/0.009616, allocations: 323.8 kB / 422.2 MB, free: 8.328 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.00964, allocations: 55.44 kB / 422.3 MB, free: 8.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.009903, allocations: 287.1 kB / 422.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.009918, allocations: 35.77 kB / 422.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.662e-05/0.009985, allocations: 173 kB / 422.7 MB, free: 7.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.728e-05/0.01003, allocations: 103.4 kB / 422.8 MB, free: 7.832 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.913e-05/0.01011, allocations: 81.02 kB / 422.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.01017, allocations: 338.9 kB / 423.3 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.0103, allocations: 101.6 kB / 423.4 MB, free: 7.422 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.01046, allocations: 185.6 kB / 423.5 MB, free: 7.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.01158, allocations: 0.6087 MB / 424.1 MB, free: 7.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01158, allocations: 0 / 424.1 MB, free: 7.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004372/0.01202, allocations: 368.8 kB / 424.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.01204, allocations: 4.781 kB / 424.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.01205, allocations: 3.422 kB / 424.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.01206, allocations: 13.66 kB / 424.5 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.0124, allocations: 95.61 kB / 424.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.01242, allocations: 13.95 kB / 424.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.01257, allocations: 55.22 kB / 424.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.01259, allocations: 15.97 kB / 424.7 MB, free: 6.828 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.0001575/0.01275, allocations: 160.1 kB / 424.9 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.01278, allocations: 24.45 kB / 424.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004026/0.01318, allocations: 306.2 kB / 425.2 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.01319, allocations: 8.062 kB / 425.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.01319, allocations: 0 / 425.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.0132, allocations: 2.344 kB / 425.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003584/0.01356, allocations: 305.3 kB / 425.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01356, allocations: 0.6562 kB / 425.5 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.01378, allocations: 67.84 kB / 425.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.01379, allocations: 5.766 kB / 425.6 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.01381, allocations: 12.45 kB / 425.6 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01381, allocations: 5.094 kB / 425.6 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.01381, allocations: 0.7031 kB / 425.6 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005409/0.01435, allocations: 493.9 kB / 426.1 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.825e-05/0.0144, allocations: 31.61 kB / 426.1 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.01443, allocations: 10.83 kB / 426.1 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.01457, allocations: 29.44 kB / 426.1 MB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.01464, allocations: 23.09 kB / 426.2 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.01465, allocations: 10.03 kB / 426.2 MB, free: 5.977 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001946/0.01485, allocations: 200.7 kB / 426.4 MB, free: 5.867 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01485, allocations: 1.125 kB / 426.4 MB, free: 5.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002579/0.0151, allocations: 59.05 kB / 426.4 MB, free: 5.852 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.0006302/0.01573, allocations: 1.026 MB / 427.4 MB, free: 5.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.01612, allocations: 254.4 kB / 427.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01612, allocations: 0 / 427.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.01627, allocations: 129.4 kB / 427.8 MB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.01653, allocations: 35.16 kB / 427.9 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.01945, allocations: 3.125 MB / 431 MB, free: 2.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.01959, allocations: 177.9 kB / 431.2 MB, free: 2.824 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.01972, allocations: 44.72 kB / 431.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.01984, allocations: 99.91 kB / 431.3 MB, free: 2.742 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01984, allocations: 4 kB / 431.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.04273, allocations: 6.503 MB / 437.8 MB, free: 260 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.087/7.13, allocations: 3.891 kB / 437.8 MB, free: 260 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.207110966555774] Failed to read output from testmodel.py, exit status != 0: 7.214375176467001 7.224271025 7.217288288 Calling exit ...