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.001286/0.001286, allocations: 97.88 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.001382/0.001382, allocations: 217.4 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.494/1.494, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1025/0.1025, allocations: 22.94 MB / 336.2 MB, free: 12.41 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.002015/0.002015, allocations: 71.84 kB / 472.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3413, allocations: 59.28 MB / 0.519 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002678/0.344, allocations: 1.077 MB / 0.5201 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3457, allocations: 1.326 MB / 0.5214 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.85e-05/0.3458, allocations: 6.531 kB / 0.5214 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003628/0.3461, allocations: 72.91 kB / 0.5214 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.3464, allocations: 84.64 kB / 0.5215 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.3467, allocations: 160.6 kB / 0.5217 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006429/0.3474, allocations: 476.5 kB / 0.5221 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.3475, allocations: 43.31 kB / 0.5222 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.3478, allocations: 183.1 kB / 0.5223 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002876/0.348, allocations: 203.1 kB / 0.5225 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.207e-05/0.3481, allocations: 23 kB / 0.5226 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.391e-05/0.3481, allocations: 26.12 kB / 0.5226 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.3483, allocations: 109.8 kB / 0.5227 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.976e-05/0.3484, allocations: 96.62 kB / 0.5228 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.3487, allocations: 277.9 kB / 0.523 GB, free: 8.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.3487, allocations: 0 / 0.523 GB, free: 8.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3487, allocations: 1.594 kB / 0.523 GB, free: 8.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3487, allocations: 0 / 0.523 GB, free: 8.352 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.001809/0.3505, allocations: 0.6848 MB / 0.5237 GB, free: 7.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3506, allocations: 10.64 kB / 0.5237 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.637e-05/0.3506, allocations: 4.281 kB / 0.5237 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.3506, allocations: 49.88 kB / 0.5238 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.3507, allocations: 30.72 kB / 0.5238 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009354/0.3516, allocations: 356.5 kB / 0.5241 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.3516, allocations: 10.41 kB / 0.5241 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.3517, allocations: 14.59 kB / 0.5242 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/0.352, allocations: 202.9 kB / 0.5244 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.352, allocations: 3.953 kB / 0.5244 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.352, allocations: 5.438 kB / 0.5244 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.352, allocations: 7.531 kB / 0.5244 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003576/0.3524, allocations: 198.2 kB / 0.5246 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.3535, allocations: 0.6194 MB / 0.5252 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.3541, allocations: 257.7 kB / 0.5254 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.3543, allocations: 136.5 kB / 0.5255 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3543, allocations: 1.406 kB / 0.5255 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.3543, allocations: 33.8 kB / 0.5256 GB, free: 6.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.3543, allocations: 0 / 0.5256 GB, free: 6.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001933/0.3562, allocations: 0.6157 MB / 0.5262 GB, free: 6.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.3563, allocations: 54.36 kB / 0.5262 GB, free: 6.719 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009711/0.3572, allocations: 415.9 kB / 0.5266 GB, free: 6.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3573, allocations: 32.89 kB / 0.5267 GB, free: 6.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.3573, allocations: 145.4 kB / 0.5268 GB, free: 6.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.133e-05/0.3574, allocations: 95.16 kB / 0.5269 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.497e-05/0.3575, allocations: 43.89 kB / 0.5269 GB, free: 6.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.668e-05/0.3576, allocations: 348.4 kB / 0.5273 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.3577, allocations: 99.39 kB / 0.5274 GB, free: 5.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.3579, allocations: 110 kB / 0.5275 GB, free: 5.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.3602, allocations: 0.713 MB / 0.5282 GB, free: 5.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3602, allocations: 0 / 0.5282 GB, free: 5.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00084/0.361, allocations: 443.1 kB / 0.5286 GB, free: 5.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.361, allocations: 8.547 kB / 0.5286 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.361, allocations: 5.125 kB / 0.5286 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.3614, allocations: 90.92 kB / 0.5287 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.3616, allocations: 39.88 kB / 0.5287 GB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.3631, allocations: 1.73 MB / 0.5304 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.3636, allocations: 73.58 kB / 0.5305 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.3636, allocations: 8.406 kB / 0.5305 GB, free: 4.027 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.0002015/0.3638, allocations: 173.1 kB / 0.5307 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.108e-05/0.3639, allocations: 28.25 kB / 0.5307 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.648e-05/0.364, allocations: 43.12 kB / 0.5307 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.364, allocations: 3.281 kB / 0.5307 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.364, allocations: 1.438 kB / 0.5307 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.364, allocations: 9.188 kB / 0.5307 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/0.3643, allocations: 294.8 kB / 0.531 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3644, allocations: 5 kB / 0.531 GB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.3646, allocations: 31.66 kB / 0.531 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.3649, allocations: 92.59 kB / 0.5311 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.3649, allocations: 11.56 kB / 0.5311 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.3664, allocations: 1.736 MB / 0.5328 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3664, allocations: 0 / 0.5328 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009749/0.3674, allocations: 0.6191 MB / 0.5334 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.3674, allocations: 33.83 kB / 0.5335 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.3675, allocations: 8.516 kB / 0.5335 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004513/0.3679, allocations: 60.53 kB / 0.5335 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.368, allocations: 23.55 kB / 0.5336 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.368, allocations: 4.531 kB / 0.5336 GB, free: 1.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007935/0.3688, allocations: 329 kB / 0.5339 GB, free: 1.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3688, allocations: 1.375 kB / 0.5339 GB, free: 1.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.3692, allocations: 59.78 kB / 0.5339 GB, free: 1.645 MB / 382.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.001142/0.3703, allocations: 1.166 MB / 0.5351 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008053/0.3711, allocations: 394 kB / 0.5355 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3711, allocations: 0.9688 kB / 0.5355 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004187/0.3716, allocations: 274.2 kB / 0.5357 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.372, allocations: 42.03 kB / 0.5358 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007192/0.3792, allocations: 3.585 MB / 0.5393 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.3795, allocations: 177.7 kB / 0.5394 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.3797, allocations: 70.66 kB / 0.5395 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.3798, allocations: 88.97 kB / 0.5396 GB, free: 14.35 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3798, allocations: 0 / 0.5396 GB, free: 14.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.4116, allocations: 6.979 MB / 0.5464 GB, free: 11.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.43, allocations: 2.156 kB / 0.5464 GB, free: 11.34 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 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: 15.25406935706269] Failed to read output from testmodel.py, exit status != 0: 12.59309116692748 12.609150687 12.257131057 Calling exit ...