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.001811/0.001811, allocations: 112.9 kB / 17.15 MB, free: 5.949 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.002219/0.002219, allocations: 212 kB / 20.11 MB, free: 2.992 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.564/1.564, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1058/0.1058, allocations: 24.04 MB / 333.6 MB, free: 1.562 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_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.003175/0.003175, allocations: 68.27 kB / 468.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1422, allocations: 59.54 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.003316/0.1455, allocations: 1.068 MB / 0.5166 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00271/0.1482, allocations: 1.315 MB / 0.5179 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1483, allocations: 0 / 0.5179 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003704/0.1487, allocations: 55.62 kB / 0.518 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.149, allocations: 59.69 kB / 0.518 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.1493, allocations: 115.8 kB / 0.5181 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005271/0.1499, allocations: 299.4 kB / 0.5184 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.15, allocations: 29.67 kB / 0.5184 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.1503, allocations: 131.5 kB / 0.5186 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.1507, allocations: 171.5 kB / 0.5187 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.41e-05/0.1508, allocations: 16 kB / 0.5187 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.1508, allocations: 20 kB / 0.5188 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.151, allocations: 91.72 kB / 0.5188 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.1512, allocations: 95.39 kB / 0.5189 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004307/0.1516, allocations: 234.9 kB / 0.5192 GB, free: 8.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1516, allocations: 0 / 0.5192 GB, free: 8.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1516, allocations: 4 kB / 0.5192 GB, free: 8.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1516, allocations: 0 / 0.5192 GB, free: 8.613 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.00258/0.1542, allocations: 0.6698 MB / 0.5198 GB, free: 7.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.1543, allocations: 12.62 kB / 0.5198 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.711e-05/0.1544, allocations: 46.73 kB / 0.5199 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.532e-05/0.1545, allocations: 32.75 kB / 0.5199 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.1558, allocations: 354.9 kB / 0.5202 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.1558, allocations: 8.375 kB / 0.5202 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/0.1558, allocations: 16.33 kB / 0.5203 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004829/0.1563, allocations: 178.6 kB / 0.5204 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.1563, allocations: 0 / 0.5204 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.1564, allocations: 4 kB / 0.5204 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1564, allocations: 4 kB / 0.5204 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005573/0.1569, allocations: 171.9 kB / 0.5206 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.1587, allocations: 0.6252 MB / 0.5212 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006229/0.1593, allocations: 210.5 kB / 0.5214 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.1596, allocations: 104.8 kB / 0.5215 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.1597, allocations: 4 kB / 0.5215 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.1597, allocations: 42.5 kB / 0.5216 GB, free: 5.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.885e-06/0.1597, allocations: 0 / 0.5216 GB, free: 5.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.002943/0.1626, allocations: 0.6409 MB / 0.5222 GB, free: 5.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.1627, allocations: 55.41 kB / 0.5222 GB, free: 5.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.164, allocations: 340.9 kB / 0.5226 GB, free: 4.902 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.1641, allocations: 33.7 kB / 0.5226 GB, free: 4.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1642, allocations: 136.4 kB / 0.5227 GB, free: 4.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.1643, allocations: 71.34 kB / 0.5228 GB, free: 4.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.1645, allocations: 41.7 kB / 0.5228 GB, free: 4.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000275/0.1647, allocations: 342.8 kB / 0.5232 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.165, allocations: 91.94 kB / 0.5233 GB, free: 4.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.1653, allocations: 87.88 kB / 0.5233 GB, free: 4.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003357/0.1687, allocations: 0.6232 MB / 0.5239 GB, free: 3.457 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1687, allocations: 0 / 0.5239 GB, free: 3.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001347/0.17, allocations: 394.2 kB / 0.5243 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.1701, allocations: 7.938 kB / 0.5243 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1701, allocations: 0 / 0.5243 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/0.1706, allocations: 100.7 kB / 0.5244 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.1708, allocations: 31.98 kB / 0.5245 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003075/0.1739, allocations: 1.845 MB / 0.5263 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/0.1745, allocations: 55.86 kB / 0.5263 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.1745, allocations: 4 kB / 0.5263 GB, free: 0.8789 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.000334/0.1748, allocations: 172 kB / 0.5265 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/0.1749, allocations: 23.86 kB / 0.5265 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.1751, allocations: 38.17 kB / 0.5265 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1751, allocations: 0 / 0.5265 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1751, allocations: 0 / 0.5265 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1751, allocations: 4 kB / 0.5265 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006217/0.1757, allocations: 333.3 kB / 0.5269 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1757, allocations: 4 kB / 0.5269 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.176, allocations: 24.17 kB / 0.5269 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004823/0.1765, allocations: 92.77 kB / 0.527 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.1765, allocations: 8 kB / 0.527 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.1795, allocations: 1.856 MB / 0.5288 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1795, allocations: 0 / 0.5288 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.1811, allocations: 0.567 MB / 0.5293 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.1812, allocations: 109 kB / 0.5295 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.139e-05/0.1813, allocations: 4 kB / 0.5295 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000611/0.1819, allocations: 51.88 kB / 0.5295 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.6e-05/0.182, allocations: 23.91 kB / 0.5295 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.182, allocations: 4 kB / 0.5295 GB, free: 13.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.1831, allocations: 264.3 kB / 0.5298 GB, free: 13.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1831, allocations: 4 kB / 0.5298 GB, free: 13.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006102/0.1837, allocations: 56 kB / 0.5298 GB, free: 13.03 MB / 398.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.002085/0.1858, allocations: 1.093 MB / 0.5309 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.187, allocations: 367.8 kB / 0.5313 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.187, allocations: 0 / 0.5313 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.1876, allocations: 246.5 kB / 0.5315 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006087/0.1882, allocations: 46.56 kB / 0.5315 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008757/0.1969, allocations: 3.135 MB / 0.5346 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006017/0.1975, allocations: 0.7675 MB / 0.5353 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002247/0.1978, allocations: 53.84 kB / 0.5354 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.1979, allocations: 75.41 kB / 0.5355 GB, free: 7.102 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1979, allocations: 0 / 0.5355 GB, free: 7.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04352/0.2415, allocations: 5.74 MB / 0.5411 GB, free: 1.449 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.37, allocations: 2.25 kB / 0.5411 GB, free: 1.449 MB / 398.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_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_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.281517161987722] Failed to read output from testmodel.py, exit status != 0: 10.459115516161546 10.472583869 10.31790023 Calling exit ...