Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.001836/0.001836, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.002301/0.002301, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.522/1.522, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.1472/0.1472, allocations: 24.11 MB / 333 MB, free: 12.63 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_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.00212/0.00212, allocations: 68.08 kB / 467.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3531, allocations: 59.57 MB / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002276/0.3553, allocations: 1.14 MB / 0.5162 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.357, allocations: 1.356 MB / 0.5175 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.612e-05/0.3571, allocations: 7.062 kB / 0.5175 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003383/0.3574, allocations: 71.23 kB / 0.5176 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.3577, allocations: 92.56 kB / 0.5177 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.3579, allocations: 133 kB / 0.5178 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.3583, allocations: 395.4 kB / 0.5182 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3584, allocations: 34.48 kB / 0.5182 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.3586, allocations: 161.2 kB / 0.5184 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.3589, allocations: 211.8 kB / 0.5186 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.918e-05/0.3589, allocations: 21.16 kB / 0.5186 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.029e-05/0.359, allocations: 22.97 kB / 0.5186 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.3591, allocations: 115.2 kB / 0.5187 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.815e-05/0.3592, allocations: 117.4 kB / 0.5188 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.3595, allocations: 270.9 kB / 0.5191 GB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3595, allocations: 0 / 0.5191 GB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3595, allocations: 0 / 0.5191 GB, free: 7.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3595, allocations: 1.094 kB / 0.5191 GB, free: 7.328 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00178/0.3613, allocations: 0.7611 MB / 0.5198 GB, free: 6.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3614, allocations: 10.69 kB / 0.5198 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.012e-05/0.3614, allocations: 47.69 kB / 0.5199 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.3615, allocations: 30.94 kB / 0.5199 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009689/0.3624, allocations: 426.8 kB / 0.5203 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.3625, allocations: 9.781 kB / 0.5203 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.3625, allocations: 15.16 kB / 0.5203 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.3629, allocations: 197 kB / 0.5205 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3629, allocations: 9.234 kB / 0.5205 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.3629, allocations: 9.312 kB / 0.5205 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3629, allocations: 2.75 kB / 0.5205 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.3633, allocations: 196.5 kB / 0.5207 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.3644, allocations: 0.692 MB / 0.5214 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000542/0.365, allocations: 259.4 kB / 0.5217 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.3652, allocations: 121.4 kB / 0.5218 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.3652, allocations: 2.438 kB / 0.5218 GB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.3652, allocations: 43.45 kB / 0.5218 GB, free: 5.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.272e-06/0.3652, allocations: 0 / 0.5218 GB, free: 5.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001805/0.367, allocations: 0.6873 MB / 0.5225 GB, free: 5.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.3671, allocations: 57.84 kB / 0.5225 GB, free: 5.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000892/0.368, allocations: 414.8 kB / 0.5229 GB, free: 5.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.368, allocations: 30.8 kB / 0.523 GB, free: 5.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.368, allocations: 150.4 kB / 0.5231 GB, free: 5.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.3681, allocations: 92.16 kB / 0.5232 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.3682, allocations: 47.31 kB / 0.5232 GB, free: 4.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.3683, allocations: 345.1 kB / 0.5236 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.3684, allocations: 103 kB / 0.5237 GB, free: 4.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.3686, allocations: 112.7 kB / 0.5238 GB, free: 4.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.3708, allocations: 0.7134 MB / 0.5245 GB, free: 4.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3708, allocations: 5 kB / 0.5245 GB, free: 4.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008062/0.3716, allocations: 438.5 kB / 0.5249 GB, free: 4.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3717, allocations: 9.781 kB / 0.5249 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3717, allocations: 0 / 0.5249 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003148/0.372, allocations: 94.7 kB / 0.525 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.3722, allocations: 37.16 kB / 0.525 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.3736, allocations: 1.841 MB / 0.5268 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/0.3741, allocations: 69.31 kB / 0.5269 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3741, allocations: 17.69 kB / 0.5269 GB, free: 2.555 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0001996/0.3743, allocations: 164.7 kB / 0.5271 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.004e-05/0.3743, allocations: 35.52 kB / 0.5271 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.3744, allocations: 43.11 kB / 0.5271 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3744, allocations: 1.969 kB / 0.5271 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3745, allocations: 1.734 kB / 0.5271 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.3745, allocations: 2.266 kB / 0.5272 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00038/0.3748, allocations: 363 kB / 0.5275 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3748, allocations: 0.6562 kB / 0.5275 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.3751, allocations: 32.23 kB / 0.5275 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000272/0.3753, allocations: 98.48 kB / 0.5276 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.3753, allocations: 9.688 kB / 0.5276 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.3769, allocations: 1.852 MB / 0.5294 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3769, allocations: 1.578 kB / 0.5294 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.378, allocations: 0.6146 MB / 0.53 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.896e-05/0.3781, allocations: 113.9 kB / 0.5302 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.3782, allocations: 6.016 kB / 0.5302 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.3786, allocations: 58.62 kB / 0.5302 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.3787, allocations: 22.64 kB / 0.5302 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.3788, allocations: 4.75 kB / 0.5302 GB, free: 40 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.3798, allocations: 328.2 kB / 0.5306 GB, free: 15.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3798, allocations: 0 / 0.5306 GB, free: 15.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.3802, allocations: 65.72 kB / 0.5306 GB, free: 15.9 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.001472/0.3817, allocations: 1.173 MB / 0.5318 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007659/0.3824, allocations: 397.4 kB / 0.5321 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3824, allocations: 0 / 0.5321 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004577/0.3829, allocations: 272.5 kB / 0.5324 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.3833, allocations: 46.66 kB / 0.5324 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007357/0.3907, allocations: 3.582 MB / 0.5359 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.3913, allocations: 0.7914 MB / 0.5367 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002248/0.3915, allocations: 68.44 kB / 0.5368 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.3917, allocations: 83.84 kB / 0.5369 GB, free: 11.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3917, allocations: 1.156 kB / 0.5369 GB, free: 11.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.4337, allocations: 6.613 MB / 0.5433 GB, free: 9.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.71, allocations: 4.141 kB / 0.5433 GB, free: 9.266 MB / 398.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof_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_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.653872927185148] Failed to read output from testmodel.py, exit status != 0: 10.799088472034782 10.822950791 10.458932824 Calling exit ...