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.00134/0.00134, allocations: 104.3 kB / 19.72 MB, free: 2.039 MB / 14.72 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.001466/0.001466, allocations: 210.3 kB / 23 MB, free: 4.863 MB / 14.72 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 1.516/1.516, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.1086/0.1086, allocations: 24.04 MB / 337.2 MB, free: 11.35 MB / 270.1 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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 63.89 kB / 473.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3925, allocations: 59.58 MB / 0.5209 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002467/0.395, allocations: 1.015 MB / 0.5219 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.3968, allocations: 1.273 MB / 0.5231 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.435e-05/0.3968, allocations: 2.188 kB / 0.5231 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.3972, allocations: 61.33 kB / 0.5232 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.3974, allocations: 61.36 kB / 0.5233 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.3977, allocations: 121.8 kB / 0.5234 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004523/0.3981, allocations: 353.1 kB / 0.5237 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.3982, allocations: 34.66 kB / 0.5238 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.3984, allocations: 143.5 kB / 0.5239 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.3987, allocations: 161.2 kB / 0.524 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.3988, allocations: 18.72 kB / 0.5241 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.295e-05/0.3988, allocations: 17.97 kB / 0.5241 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.3989, allocations: 96.5 kB / 0.5242 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.853e-05/0.399, allocations: 79.48 kB / 0.5242 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002585/0.3993, allocations: 230.5 kB / 0.5245 GB, free: 8.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3993, allocations: 4 kB / 0.5245 GB, free: 8.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3993, allocations: 0 / 0.5245 GB, free: 8.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.3993, allocations: 0 / 0.5245 GB, free: 8.047 MB / 382.1 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.001649/0.4009, allocations: 0.5944 MB / 0.525 GB, free: 7.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.401, allocations: 10.42 kB / 0.5251 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.401, allocations: 42.39 kB / 0.5251 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.435e-05/0.4011, allocations: 32.17 kB / 0.5251 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008302/0.4019, allocations: 300.8 kB / 0.5254 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.4019, allocations: 9.781 kB / 0.5254 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.402, allocations: 20.7 kB / 0.5254 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.4023, allocations: 170.8 kB / 0.5256 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.4023, allocations: 3.938 kB / 0.5256 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.4023, allocations: 5.984 kB / 0.5256 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4023, allocations: 6.812 kB / 0.5256 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.4027, allocations: 168 kB / 0.5258 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.4038, allocations: 0.5542 MB / 0.5263 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003829/0.4041, allocations: 208.8 kB / 0.5265 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.4043, allocations: 118.3 kB / 0.5266 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.4043, allocations: 1.312 kB / 0.5266 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.4044, allocations: 32.62 kB / 0.5267 GB, free: 6.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.094e-06/0.4044, allocations: 1.062 kB / 0.5267 GB, free: 6.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001755/0.4061, allocations: 0.5699 MB / 0.5272 GB, free: 6.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.4061, allocations: 54.22 kB / 0.5273 GB, free: 6.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007605/0.4069, allocations: 344.4 kB / 0.5276 GB, free: 6.375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.4069, allocations: 26.92 kB / 0.5276 GB, free: 6.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.313e-05/0.407, allocations: 142.8 kB / 0.5278 GB, free: 6.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.4071, allocations: 73.98 kB / 0.5278 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.715e-05/0.4071, allocations: 39.89 kB / 0.5279 GB, free: 6.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.4072, allocations: 343 kB / 0.5282 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.4074, allocations: 85.38 kB / 0.5283 GB, free: 5.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4075, allocations: 90.73 kB / 0.5284 GB, free: 5.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001941/0.4095, allocations: 0.6254 MB / 0.529 GB, free: 5.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4095, allocations: 0 / 0.529 GB, free: 5.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000763/0.4102, allocations: 389.7 kB / 0.5294 GB, free: 5.445 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.4103, allocations: 13.91 kB / 0.5294 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.4103, allocations: 0.6562 kB / 0.5294 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/0.4106, allocations: 94.7 kB / 0.5295 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.4108, allocations: 30.69 kB / 0.5295 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.4123, allocations: 1.736 MB / 0.5312 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.4127, allocations: 51.3 kB / 0.5312 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.4127, allocations: 7.969 kB / 0.5312 GB, free: 3.941 MB / 382.1 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.0001807/0.4129, allocations: 171.1 kB / 0.5314 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.4129, allocations: 22.92 kB / 0.5314 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.642e-05/0.413, allocations: 40.09 kB / 0.5315 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.413, allocations: 8.188 kB / 0.5315 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.413, allocations: 0 / 0.5315 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.413, allocations: 1.266 kB / 0.5315 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.4133, allocations: 267.4 kB / 0.5317 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4134, allocations: 0 / 0.5317 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.4135, allocations: 33.33 kB / 0.5318 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002813/0.4138, allocations: 90.38 kB / 0.5318 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.4138, allocations: 7.562 kB / 0.5319 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.4154, allocations: 1.742 MB / 0.5336 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4154, allocations: 4.062 kB / 0.5336 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008996/0.4163, allocations: 0.5517 MB / 0.5341 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.4163, allocations: 29.67 kB / 0.5341 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.4164, allocations: 7.125 kB / 0.5341 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.4168, allocations: 46.69 kB / 0.5342 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.609e-05/0.4168, allocations: 25.16 kB / 0.5342 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.4169, allocations: 7.594 kB / 0.5342 GB, free: 1.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006556/0.4175, allocations: 266.7 kB / 0.5345 GB, free: 1.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4175, allocations: 1.312 kB / 0.5345 GB, free: 1.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.4179, allocations: 53.97 kB / 0.5345 GB, free: 1.602 MB / 382.1 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.001084/0.4189, allocations: 1.104 MB / 0.5356 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007129/0.4197, allocations: 365.4 kB / 0.5359 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4197, allocations: 0 / 0.5359 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.42, allocations: 257.7 kB / 0.5362 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.4204, allocations: 32.36 kB / 0.5362 GB, free: 432 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005775/0.4262, allocations: 3.125 MB / 0.5393 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.4263, allocations: 164.6 kB / 0.5394 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.4265, allocations: 54.03 kB / 0.5395 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.4266, allocations: 80.58 kB / 0.5396 GB, free: 14.49 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4266, allocations: 0 / 0.5396 GB, free: 14.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04424/0.4709, allocations: 6.403 MB / 0.5458 GB, free: 11.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.97, allocations: 10.92 kB / 0.5458 GB, free: 11.73 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 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: 14.758232712280005] Failed to read output from testmodel.py, exit status != 0: 12.09792832378298 12.115204876 11.712614383 Calling exit ...