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.001309/0.001309, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001575/0.001575, allocations: 217.1 kB / 23.03 MB, free: 4.922 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1014/0.1014, allocations: 22.95 MB / 336.2 MB, free: 12.39 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="cs",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.00207/0.00207, allocations: 73.77 kB / 472.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3679, allocations: 59.29 MB / 0.519 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002693/0.3706, allocations: 1.025 MB / 0.52 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.3725, allocations: 1.268 MB / 0.5212 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.379e-05/0.3726, allocations: 7.625 kB / 0.5213 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.373, allocations: 54.95 kB / 0.5213 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.3732, allocations: 66.25 kB / 0.5214 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.3734, allocations: 126.7 kB / 0.5215 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.374, allocations: 364.5 kB / 0.5218 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.3741, allocations: 38.94 kB / 0.5219 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002331/0.3744, allocations: 138.3 kB / 0.522 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.3747, allocations: 170.4 kB / 0.5222 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.3748, allocations: 18.47 kB / 0.5222 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.328e-05/0.3748, allocations: 19.34 kB / 0.5222 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.375, allocations: 98.08 kB / 0.5223 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3751, allocations: 72.08 kB / 0.5224 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.3754, allocations: 234.2 kB / 0.5226 GB, free: 8.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3754, allocations: 0 / 0.5226 GB, free: 8.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3754, allocations: 1.438 kB / 0.5226 GB, free: 8.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3754, allocations: 0.75 kB / 0.5226 GB, free: 8.551 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.001734/0.3772, allocations: 0.5923 MB / 0.5232 GB, free: 8.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.3772, allocations: 13.22 kB / 0.5232 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.412e-05/0.3772, allocations: 4.031 kB / 0.5232 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.3773, allocations: 49.14 kB / 0.5232 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.3774, allocations: 28.78 kB / 0.5233 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008336/0.3782, allocations: 303.3 kB / 0.5236 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3782, allocations: 4.812 kB / 0.5236 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.3783, allocations: 21.33 kB / 0.5236 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.3786, allocations: 174.7 kB / 0.5237 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3786, allocations: 1.125 kB / 0.5237 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.3786, allocations: 5.062 kB / 0.5238 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.3786, allocations: 7.281 kB / 0.5238 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003388/0.379, allocations: 168.9 kB / 0.5239 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.38, allocations: 0.5563 MB / 0.5245 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003778/0.3804, allocations: 211.6 kB / 0.5247 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.3805, allocations: 114.8 kB / 0.5248 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3806, allocations: 2.719 kB / 0.5248 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3806, allocations: 35.81 kB / 0.5248 GB, free: 7.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.3806, allocations: 0 / 0.5248 GB, free: 7.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001804/0.3824, allocations: 0.5623 MB / 0.5254 GB, free: 7.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.3824, allocations: 53.78 kB / 0.5254 GB, free: 7.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007503/0.3832, allocations: 341.2 kB / 0.5257 GB, free: 6.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.3832, allocations: 30.86 kB / 0.5258 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.509e-05/0.3833, allocations: 142.2 kB / 0.5259 GB, free: 6.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.227e-05/0.3833, allocations: 78.11 kB / 0.526 GB, free: 6.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.449e-05/0.3834, allocations: 40.98 kB / 0.526 GB, free: 6.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.3835, allocations: 338.3 kB / 0.5263 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.3836, allocations: 89.62 kB / 0.5264 GB, free: 6.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3838, allocations: 92.23 kB / 0.5265 GB, free: 6.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.386, allocations: 0.6232 MB / 0.5271 GB, free: 6.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.386, allocations: 0 / 0.5271 GB, free: 6.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008133/0.3868, allocations: 394.9 kB / 0.5275 GB, free: 5.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3868, allocations: 13.91 kB / 0.5275 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3868, allocations: 4.734 kB / 0.5275 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.3871, allocations: 90.94 kB / 0.5276 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.3873, allocations: 33.66 kB / 0.5276 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.3889, allocations: 1.73 MB / 0.5293 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/0.3892, allocations: 55.05 kB / 0.5294 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.3893, allocations: 8.5 kB / 0.5294 GB, free: 4.438 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.0001897/0.3894, allocations: 163.5 kB / 0.5295 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.506e-05/0.3895, allocations: 22.7 kB / 0.5296 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.881e-05/0.3896, allocations: 42.06 kB / 0.5296 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3896, allocations: 1.375 kB / 0.5296 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3896, allocations: 1.312 kB / 0.5296 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3896, allocations: 2.828 kB / 0.5296 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.3899, allocations: 266.2 kB / 0.5299 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3899, allocations: 5 kB / 0.5299 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.3901, allocations: 27.84 kB / 0.5299 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003069/0.3904, allocations: 99.52 kB / 0.53 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3904, allocations: 7.984 kB / 0.53 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.3919, allocations: 1.727 MB / 0.5317 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3919, allocations: 13.16 kB / 0.5317 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009914/0.3929, allocations: 0.5535 MB / 0.5322 GB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.393, allocations: 33.3 kB / 0.5323 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.393, allocations: 8.438 kB / 0.5323 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.3934, allocations: 44.92 kB / 0.5323 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.3935, allocations: 22.47 kB / 0.5323 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.3935, allocations: 4.766 kB / 0.5323 GB, free: 2.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006826/0.3942, allocations: 270.4 kB / 0.5326 GB, free: 2.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3942, allocations: 0 / 0.5326 GB, free: 2.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.3945, allocations: 54.44 kB / 0.5327 GB, free: 2.105 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.001132/0.3957, allocations: 1.096 MB / 0.5337 GB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006162/0.3963, allocations: 364.6 kB / 0.5341 GB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3963, allocations: 4 kB / 0.5341 GB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.3966, allocations: 251.8 kB / 0.5343 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.397, allocations: 33.38 kB / 0.5343 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005432/0.4024, allocations: 3.129 MB / 0.5374 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.4026, allocations: 169 kB / 0.5376 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.4028, allocations: 48.97 kB / 0.5376 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4029, allocations: 72.62 kB / 0.5377 GB, free: 15.01 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4029, allocations: 0 / 0.5377 GB, free: 15.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.4341, allocations: 6.093 MB / 0.5436 GB, free: 12.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.48, allocations: 6.938 kB / 0.5436 GB, free: 12.79 MB / 398.1 MB " [Timeout remaining time 647] (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: 15.281397224054672] Failed to read output from testmodel.py, exit status != 0: 12.654331199941225 12.67265509 12.294096809000001 Calling exit ...