Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.0007666/0.0007666, 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.0008201/0.0008201, 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.8498/0.8498, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.06219/0.06219, 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.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0.8438 kB / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.846e-05, allocations: 2.281 kB / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.00283/0.002858, allocations: 1.733 MB / 416.8 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009642/0.003823, allocations: 0.6659 MB / 417.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.191e-05/0.003915, allocations: 5.719 kB / 417.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.004218, allocations: 77.02 kB / 417.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.004387, allocations: 96.89 kB / 417.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.004936, allocations: 182.1 kB / 417.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.00522, allocations: 201.4 kB / 418 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.005321, allocations: 30.97 kB / 418 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.005461, allocations: 92.47 kB / 418.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.005695, allocations: 145.6 kB / 418.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.477e-05/0.00573, allocations: 18.44 kB / 418.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.005871, allocations: 80.95 kB / 418.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.453e-05/0.005965, allocations: 71.52 kB / 418.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.567e-05/0.006031, allocations: 48.38 kB / 418.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.006316, allocations: 256.8 kB / 418.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.006318, allocations: 0 / 418.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.006319, allocations: 0 / 418.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.006323, allocations: 0 / 418.7 MB, free: 10.7 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007899/0.007113, allocations: 0.5573 MB / 419.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.007151, allocations: 9.391 kB / 419.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.01e-05/0.007182, allocations: 45.84 kB / 419.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.007229, allocations: 28.28 kB / 419.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.007586, allocations: 255.9 kB / 419.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.007602, allocations: 8.031 kB / 419.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.007624, allocations: 7.531 kB / 419.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.007847, allocations: 185.6 kB / 419.8 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.007858, allocations: 192 / 419.8 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.007872, allocations: 6.781 kB / 419.8 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.007879, allocations: 5.953 kB / 419.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.00808, allocations: 169.6 kB / 420 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005283/0.008609, allocations: 449.9 kB / 420.4 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.008928, allocations: 214.2 kB / 420.6 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.009044, allocations: 123.4 kB / 420.8 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.009057, allocations: 6.109 kB / 420.8 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.009246, allocations: 221.4 kB / 421 MB, free: 9.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.262e-06/0.009247, allocations: 0 / 421 MB, free: 9.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008236/0.01007, allocations: 0.5719 MB / 421.6 MB, free: 8.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.01009, allocations: 87.34 kB / 421.6 MB, free: 8.863 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.01041, allocations: 312.2 kB / 421.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.01042, allocations: 32.78 kB / 422 MB, free: 8.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/0.01047, allocations: 132.1 kB / 422.1 MB, free: 8.562 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.01051, allocations: 67.36 kB / 422.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.721e-05/0.01055, allocations: 41.06 kB / 422.2 MB, free: 8.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.83e-05/0.01059, allocations: 337.3 kB / 422.5 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.01069, allocations: 114.2 kB / 422.7 MB, free: 8.102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.01079, allocations: 115.5 kB / 422.8 MB, free: 8.047 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007681/0.01156, allocations: 0.5896 MB / 423.4 MB, free: 7.789 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01156, allocations: 0 / 423.4 MB, free: 7.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004089/0.01197, allocations: 431.2 kB / 423.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.012, allocations: 39.3 kB / 423.8 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.012, allocations: 1.469 kB / 423.8 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/0.01213, allocations: 52.33 kB / 423.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.887e-05/0.01219, allocations: 23.27 kB / 423.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007303/0.01292, allocations: 1.485 MB / 425.4 MB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.01306, allocations: 45.44 kB / 425.4 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.01307, allocations: 4.75 kB / 425.4 MB, free: 6.16 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.0132, allocations: 195.4 kB / 425.6 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.01322, allocations: 29.83 kB / 425.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.016e-05/0.01325, allocations: 40.12 kB / 425.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.01326, allocations: 1.531 kB / 425.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.01326, allocations: 5.312 kB / 425.7 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.01327, allocations: 1.172 kB / 425.7 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.01342, allocations: 235.1 kB / 425.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01342, allocations: 1.094 kB / 425.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.01349, allocations: 22.5 kB / 425.9 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.924e-05/0.01359, allocations: 52.62 kB / 426 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.0136, allocations: 8.562 kB / 426 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006465/0.01425, allocations: 1.495 MB / 427.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01425, allocations: 0.875 kB / 427.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005641/0.01482, allocations: 0.5888 MB / 428.1 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/0.01484, allocations: 30.41 kB / 428.1 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.01486, allocations: 12.94 kB / 428.1 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.01498, allocations: 32.69 kB / 428.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.01503, allocations: 18.73 kB / 428.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.01504, allocations: 5.891 kB / 428.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002457/0.01529, allocations: 244.1 kB / 428.4 MB, free: 3.914 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01529, allocations: 0 / 428.4 MB, free: 3.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002254/0.01552, allocations: 60.09 kB / 428.5 MB, free: 3.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0007518/0.01627, allocations: 1.172 MB / 429.7 MB, free: 3.051 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.01672, allocations: 466.8 kB / 430.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.01672, allocations: 0 / 430.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.01692, allocations: 329.9 kB / 430.4 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001844/0.0171, allocations: 29.02 kB / 430.5 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.01971, allocations: 3.117 MB / 433.6 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.01982, allocations: 148.7 kB / 433.7 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.261e-05/0.01988, allocations: 28.98 kB / 433.8 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.137e-05/0.01994, allocations: 66.33 kB / 433.8 MB, free: 472 kB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01994, allocations: 0 / 433.8 MB, free: 472 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.03825, allocations: 6.21 MB / 440 MB, free: 13.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.306/7.345, allocations: 4.625 kB / 440 MB, free: 13.82 MB / 346.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.27957128919661] Failed to read output from testmodel.py, exit status != 0: 7.430180522613227 7.440548612 7.431418427 Calling exit ...