Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.0009954/0.0009954, 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.0008982/0.0008982, allocations: 169.6 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.9408/0.9408, 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.06275/0.06275, 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.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.216e-05, allocations: 2.281 kB / 415.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001541/0.001564, allocations: 1.025 MB / 416.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.002568, allocations: 1.272 MB / 417.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.7e-05/0.002645, allocations: 1.375 kB / 417.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.002923, allocations: 64.81 kB / 417.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.003054, allocations: 68.28 kB / 417.5 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.003295, allocations: 160.6 kB / 417.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001919/0.003487, allocations: 203.7 kB / 417.8 MB, free: 11 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.003598, allocations: 30.8 kB / 417.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.0037, allocations: 94 kB / 418 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.003864, allocations: 135.9 kB / 418.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.727e-05/0.003901, allocations: 21.62 kB / 418.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.3e-05/0.003924, allocations: 19.03 kB / 418.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.004015, allocations: 90.19 kB / 418.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.442e-05/0.00407, allocations: 63.14 kB / 418.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.004277, allocations: 233.5 kB / 418.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.004279, allocations: 1.312 kB / 418.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004279, allocations: 0 / 418.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.004285, allocations: 0.6562 kB / 418.5 MB, free: 10.75 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009028/0.005187, allocations: 0.599 MB / 419.1 MB, free: 10.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.005222, allocations: 9.828 kB / 419.1 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.281e-05/0.005255, allocations: 46.5 kB / 419.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.87e-05/0.005293, allocations: 28.81 kB / 419.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.00574, allocations: 295.8 kB / 419.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.005754, allocations: 9.625 kB / 419.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.00578, allocations: 18.92 kB / 419.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.006006, allocations: 169.1 kB / 419.7 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.006018, allocations: 5.969 kB / 419.7 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.006033, allocations: 9.656 kB / 419.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.006039, allocations: 3.625 kB / 419.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.006278, allocations: 163.4 kB / 419.9 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006722/0.00695, allocations: 0.5576 MB / 420.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.007218, allocations: 206.3 kB / 420.6 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.007352, allocations: 106.1 kB / 420.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.007369, allocations: 6.125 kB / 420.7 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.007385, allocations: 37.41 kB / 420.8 MB, free: 9.469 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.012e-06/0.007386, allocations: 3.938 kB / 420.8 MB, free: 9.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.001116/0.008502, allocations: 0.5699 MB / 421.3 MB, free: 9.293 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.107e-05/0.008524, allocations: 54.11 kB / 421.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.008937, allocations: 341.1 kB / 421.7 MB, free: 9.078 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.008951, allocations: 31.38 kB / 421.8 MB, free: 9.043 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.009005, allocations: 141.9 kB / 421.9 MB, free: 8.918 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.009052, allocations: 82.28 kB / 422 MB, free: 8.852 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.009104, allocations: 40.22 kB / 422 MB, free: 8.824 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.174e-05/0.009146, allocations: 337.4 kB / 422.3 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.009254, allocations: 85.84 kB / 422.4 MB, free: 8.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.009366, allocations: 90.55 kB / 422.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.01053, allocations: 0.6167 MB / 423.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01053, allocations: 0 / 423.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004851/0.01102, allocations: 399.1 kB / 423.5 MB, free: 8.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.01103, allocations: 4.781 kB / 423.5 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01104, allocations: 2.297 kB / 423.5 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.01127, allocations: 98.59 kB / 423.6 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.01139, allocations: 38.84 kB / 423.7 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.01261, allocations: 1.725 MB / 425.4 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001719/0.01278, allocations: 59.08 kB / 425.4 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.01279, allocations: 11.36 kB / 425.5 MB, free: 6.641 MB / 330.7 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001323/0.01292, allocations: 168 kB / 425.6 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.01295, allocations: 22.62 kB / 425.6 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.022e-05/0.01299, allocations: 39.95 kB / 425.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.013, allocations: 3.766 kB / 425.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.013, allocations: 0.5938 kB / 425.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.01301, allocations: 2.016 kB / 425.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000216/0.01322, allocations: 262.9 kB / 425.9 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01322, allocations: 1.094 kB / 425.9 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.01333, allocations: 24.22 kB / 426 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002058/0.01353, allocations: 98.09 kB / 426.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01355, allocations: 4.688 kB / 426.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009595/0.01451, allocations: 1.736 MB / 427.8 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01451, allocations: 0 / 427.8 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/0.01513, allocations: 0.5656 MB / 428.4 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.01516, allocations: 30.08 kB / 428.4 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.01518, allocations: 7.25 kB / 428.4 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.01537, allocations: 45.7 kB / 428.5 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.01542, allocations: 18.42 kB / 428.5 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.01543, allocations: 8.094 kB / 428.5 MB, free: 4.434 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003441/0.01578, allocations: 270.2 kB / 428.7 MB, free: 4.324 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01578, allocations: 1.062 kB / 428.7 MB, free: 4.324 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000213/0.01599, allocations: 54.16 kB / 428.8 MB, free: 4.316 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006735/0.01666, allocations: 1.102 MB / 429.9 MB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004302/0.01709, allocations: 363.7 kB / 430.3 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01709, allocations: 0 / 430.3 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.01729, allocations: 257.8 kB / 430.5 MB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.01755, allocations: 34.98 kB / 430.5 MB, free: 3.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.0208, allocations: 3.119 MB / 433.7 MB, free: 1.367 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.02092, allocations: 164.7 kB / 433.8 MB, free: 1.277 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.713e-05/0.021, allocations: 54.05 kB / 433.9 MB, free: 1.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.496e-05/0.02108, allocations: 68.55 kB / 433.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02108, allocations: 0 / 433.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.04014, allocations: 6.557 MB / 440.5 MB, free: 14.01 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.325, allocations: 4.469 kB / 440.5 MB, free: 14.01 MB / 346.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.403960706666112] Failed to read output from testmodel.py, exit status != 0: 7.40835727006197 7.42254224 7.415598586 Calling exit ...