Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.0009649/0.0009649, 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.001394/0.001394, 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.9347/0.9347, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.0626/0.0626, allocations: 18.12 MB / 278.1 MB, free: 11.55 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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.745e-06/2.745e-06, allocations: 0 / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.715e-05, allocations: 7.062 kB / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002137/0.002164, allocations: 1.213 MB / 416.3 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.003823, allocations: 1.429 MB / 417.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.00396, allocations: 8.062 kB / 417.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003655/0.004325, allocations: 95.17 kB / 417.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.004569, allocations: 129.9 kB / 417.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.00525, allocations: 328.2 kB / 418.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005554/0.005806, allocations: 362.5 kB / 418.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.005976, allocations: 49.83 kB / 418.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.006274, allocations: 160.9 kB / 418.8 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004121/0.006686, allocations: 215.8 kB / 419 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.006796, allocations: 25.88 kB / 419 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.00685, allocations: 31 kB / 419.1 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.007011, allocations: 135.9 kB / 419.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.007138, allocations: 86.47 kB / 419.3 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.007633, allocations: 332.1 kB / 419.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.007638, allocations: 0 / 419.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.00764, allocations: 3.938 kB / 419.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.007654, allocations: 0 / 419.6 MB, free: 10.23 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001756/0.009409, allocations: 0.8013 MB / 420.4 MB, free: 9.766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.009456, allocations: 14.8 kB / 420.4 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.009505, allocations: 48.09 kB / 420.5 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.662e-05/0.009582, allocations: 38.3 kB / 420.5 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.01088, allocations: 434.5 kB / 420.9 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.01091, allocations: 10.64 kB / 421 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.01097, allocations: 20.72 kB / 421 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.01146, allocations: 216.2 kB / 421.2 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.035e-05/0.01152, allocations: 5.422 kB / 421.2 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.443e-05/0.0116, allocations: 13.09 kB / 421.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.01161, allocations: 4.188 kB / 421.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004328/0.01204, allocations: 226.1 kB / 421.4 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.01313, allocations: 0.6747 MB / 422.1 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005438/0.01368, allocations: 318 kB / 422.4 MB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.01385, allocations: 133.2 kB / 422.5 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.01387, allocations: 2.531 kB / 422.6 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.01388, allocations: 41.77 kB / 422.6 MB, free: 8.703 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.094e-06/0.01388, allocations: 0 / 422.6 MB, free: 8.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001233/0.01512, allocations: 0.6218 MB / 423.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.01515, allocations: 55.33 kB / 423.3 MB, free: 8.445 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007374/0.01588, allocations: 0.5102 MB / 423.8 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.0159, allocations: 26.7 kB / 423.8 MB, free: 8.219 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.01598, allocations: 180 kB / 424 MB, free: 8.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.639e-05/0.01605, allocations: 102.7 kB / 424.1 MB, free: 7.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-05/0.01612, allocations: 47.86 kB / 424.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.336e-05/0.01618, allocations: 353.7 kB / 424.5 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.01633, allocations: 111.8 kB / 424.6 MB, free: 7.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.01648, allocations: 109.7 kB / 424.7 MB, free: 7.547 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.01787, allocations: 0.7218 MB / 425.4 MB, free: 7.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.01787, allocations: 0 / 425.4 MB, free: 7.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006103/0.01848, allocations: 481.3 kB / 425.9 MB, free: 7.168 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.0185, allocations: 8.969 kB / 425.9 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.01851, allocations: 1.344 kB / 425.9 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.01878, allocations: 106.7 kB / 426 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.0189, allocations: 45.03 kB / 426 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.02042, allocations: 2.979 MB / 429 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.02069, allocations: 77.8 kB / 429.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.0207, allocations: 9.875 kB / 429.1 MB, free: 4.391 MB / 330.7 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001744/0.02088, allocations: 190.8 kB / 429.3 MB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.02092, allocations: 31.09 kB / 429.3 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.323e-05/0.021, allocations: 55.44 kB / 429.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.02101, allocations: 3.375 kB / 429.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.02102, allocations: 1.062 kB / 429.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.02102, allocations: 6.688 kB / 429.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.02134, allocations: 328.4 kB / 429.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.02134, allocations: 1.719 kB / 429.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.02149, allocations: 28.36 kB / 429.7 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/0.0217, allocations: 107.1 kB / 429.8 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.02173, allocations: 14.34 kB / 429.9 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.0234, allocations: 2.965 MB / 432.8 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.0234, allocations: 1.312 kB / 432.8 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009696/0.02437, allocations: 0.6676 MB / 433.5 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/0.02444, allocations: 51.45 kB / 433.5 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.02448, allocations: 8.547 kB / 433.5 MB, free: 0.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/0.02482, allocations: 71.72 kB / 433.6 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.556e-05/0.02492, allocations: 26.33 kB / 433.6 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.02493, allocations: 8.406 kB / 433.7 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006331/0.02557, allocations: 406.6 kB / 434 MB, free: 0.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.02557, allocations: 1.188 kB / 434 MB, free: 0.668 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003529/0.02592, allocations: 75.83 kB / 434.1 MB, free: 0.6523 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.027, allocations: 1.202 MB / 435.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008251/0.02782, allocations: 0.5249 MB / 435.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.02782, allocations: 5.156 kB / 435.9 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003812/0.02821, allocations: 398 kB / 436.2 MB, free: 15.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.02861, allocations: 68.03 kB / 436.3 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005326/0.03393, allocations: 3.98 MB / 440.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001898/0.03412, allocations: 213.8 kB / 440.5 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.03428, allocations: 76.59 kB / 440.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.03442, allocations: 112 kB / 440.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.03442, allocations: 0 / 440.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.06044, allocations: 8.754 MB / 449.4 MB, free: 5.641 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.378/7.438, allocations: 7.141 kB / 449.4 MB, free: 5.637 MB / 346.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.529523516073823] Failed to read output from testmodel.py, exit status != 0: 7.527140746824443 7.538513914 7.528284672 Calling exit ...