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.00132/0.00132, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.001416/0.001416, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.549/1.549, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1475/0.1475, allocations: 24.03 MB / 333.6 MB, free: 1.566 MB / 254.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.003418/0.003418, allocations: 69.42 kB / 468.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1129, allocations: 59.54 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002792/0.1157, allocations: 1.132 MB / 0.5167 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1176, allocations: 1.358 MB / 0.518 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.307e-05/0.1177, allocations: 3.938 kB / 0.518 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.1181, allocations: 75.55 kB / 0.5181 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.1183, allocations: 91.59 kB / 0.5182 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.1186, allocations: 135.7 kB / 0.5183 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.119, allocations: 383.3 kB / 0.5187 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1191, allocations: 40.39 kB / 0.5187 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.1193, allocations: 159.5 kB / 0.5189 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.1196, allocations: 207.4 kB / 0.5191 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/0.1197, allocations: 20 kB / 0.5191 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.29e-05/0.1197, allocations: 24 kB / 0.5191 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1199, allocations: 119.6 kB / 0.5192 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.12, allocations: 123.2 kB / 0.5193 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.1203, allocations: 274.8 kB / 0.5196 GB, free: 8.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1203, allocations: 0 / 0.5196 GB, free: 8.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1203, allocations: 0 / 0.5196 GB, free: 8.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1204, allocations: 4 kB / 0.5196 GB, free: 8.168 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.002035/0.1224, allocations: 0.7557 MB / 0.5203 GB, free: 7.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1224, allocations: 12.56 kB / 0.5203 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.954e-05/0.1225, allocations: 46.73 kB / 0.5204 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.48e-05/0.1225, allocations: 32.75 kB / 0.5204 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.1237, allocations: 419.5 kB / 0.5208 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.1237, allocations: 16.59 kB / 0.5208 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.1237, allocations: 12.38 kB / 0.5208 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.1241, allocations: 203.9 kB / 0.521 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.1241, allocations: 3.953 kB / 0.521 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.1241, allocations: 4 kB / 0.521 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-06/0.1241, allocations: 4 kB / 0.5211 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.1245, allocations: 196.7 kB / 0.5212 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.1258, allocations: 0.6918 MB / 0.5219 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005923/0.1264, allocations: 264.8 kB / 0.5222 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.1266, allocations: 128.7 kB / 0.5223 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.1267, allocations: 4 kB / 0.5223 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.1267, allocations: 38.56 kB / 0.5223 GB, free: 5.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.232e-06/0.1267, allocations: 0 / 0.5223 GB, free: 5.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.002012/0.1287, allocations: 0.6866 MB / 0.523 GB, free: 4.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.1287, allocations: 55.41 kB / 0.5231 GB, free: 4.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009993/0.1297, allocations: 410.8 kB / 0.5234 GB, free: 3.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.1298, allocations: 29.7 kB / 0.5235 GB, free: 3.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1299, allocations: 148.6 kB / 0.5236 GB, free: 3.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.13, allocations: 95.2 kB / 0.5237 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-05/0.1301, allocations: 45.7 kB / 0.5237 GB, free: 3.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1303, allocations: 342.8 kB / 0.5241 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1305, allocations: 111.9 kB / 0.5242 GB, free: 3.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.1307, allocations: 105.7 kB / 0.5243 GB, free: 3.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002407/0.1331, allocations: 0.7163 MB / 0.525 GB, free: 2.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1331, allocations: 0 / 0.525 GB, free: 2.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009216/0.134, allocations: 438 kB / 0.5254 GB, free: 1.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.134, allocations: 7.938 kB / 0.5254 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.134, allocations: 4 kB / 0.5254 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.1344, allocations: 92.77 kB / 0.5255 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.1346, allocations: 43.97 kB / 0.5255 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.1368, allocations: 1.841 MB / 0.5273 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.1372, allocations: 75.84 kB / 0.5274 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.1373, allocations: 7.938 kB / 0.5274 GB, free: 15.74 MB / 398.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.0002715/0.1375, allocations: 168.5 kB / 0.5276 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.1376, allocations: 31.81 kB / 0.5276 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.1377, allocations: 46.25 kB / 0.5277 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1377, allocations: 4 kB / 0.5277 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1377, allocations: 0 / 0.5277 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1377, allocations: 0 / 0.5277 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004855/0.1382, allocations: 357.2 kB / 0.528 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.1382, allocations: 4 kB / 0.528 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.1385, allocations: 39.91 kB / 0.528 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003244/0.1388, allocations: 96.95 kB / 0.5281 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.1388, allocations: 8 kB / 0.5281 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.1409, allocations: 1.86 MB / 0.53 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1409, allocations: 0 / 0.53 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.142, allocations: 0.6123 MB / 0.5306 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.1421, allocations: 112.9 kB / 0.5307 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.1422, allocations: 11.98 kB / 0.5307 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004888/0.1427, allocations: 51.92 kB / 0.5307 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.918e-05/0.1428, allocations: 19.91 kB / 0.5307 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.1428, allocations: 16 kB / 0.5308 GB, free: 12.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009137/0.1437, allocations: 317.8 kB / 0.5311 GB, free: 11.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1437, allocations: 0 / 0.5311 GB, free: 11.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000379/0.1441, allocations: 71.94 kB / 0.5311 GB, free: 11.7 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.001545/0.1456, allocations: 1.162 MB / 0.5323 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000868/0.1465, allocations: 405.5 kB / 0.5327 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1465, allocations: 0 / 0.5327 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.1469, allocations: 266.5 kB / 0.5329 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.1474, allocations: 41.06 kB / 0.5329 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00712/0.1545, allocations: 3.602 MB / 0.5365 GB, free: 6.102 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.155, allocations: 0.7909 MB / 0.5372 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001683/0.1552, allocations: 62.23 kB / 0.5373 GB, free: 5.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.1553, allocations: 87.41 kB / 0.5374 GB, free: 5.137 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1553, allocations: 0 / 0.5374 GB, free: 5.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.1923, allocations: 6.613 MB / 0.5438 GB, free: 14.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.29, allocations: 4 kB / 0.5438 GB, free: 14.61 MB / 414.1 MB " [Timeout remaining time 650] (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.260631277924404] Failed to read output from testmodel.py, exit status != 0: 10.379089700058103 10.400776443 10.276299819 Calling exit ...