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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 106.7 kB / 16.4 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 192.6 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.09828/0.09828, allocations: 22.34 MB / 319.6 MB, free: 6.766 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002609/0.002609, allocations: 75.88 kB / 445.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.13, allocations: 54.95 MB / 0.4885 GB, free: 1.621 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002337/0.1324, allocations: 1.063 MB / 0.4895 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.1341, allocations: 1.26 MB / 0.4908 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.1341, allocations: 4 kB / 0.4908 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.1345, allocations: 59.69 kB / 0.4908 GB, free: 15.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.1347, allocations: 59.62 kB / 0.4909 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.1349, allocations: 103.8 kB / 0.491 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.1353, allocations: 295.5 kB / 0.4913 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1354, allocations: 45.66 kB / 0.4913 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.1356, allocations: 123.6 kB / 0.4914 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1358, allocations: 155.5 kB / 0.4916 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.1359, allocations: 23.94 kB / 0.4916 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.823e-05/0.1359, allocations: 20 kB / 0.4916 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.1361, allocations: 87.78 kB / 0.4917 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1362, allocations: 95.39 kB / 0.4918 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.1365, allocations: 226.9 kB / 0.492 GB, free: 14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1365, allocations: 0 / 0.492 GB, free: 14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1365, allocations: 0 / 0.492 GB, free: 14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1365, allocations: 0 / 0.492 GB, free: 14 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.001693/0.1382, allocations: 0.6737 MB / 0.4927 GB, free: 13.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1383, allocations: 8.031 kB / 0.4927 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.409e-05/0.1383, allocations: 46.73 kB / 0.4927 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.81e-05/0.1384, allocations: 28.75 kB / 0.4927 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008795/0.1393, allocations: 362.9 kB / 0.4931 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1393, allocations: 12.38 kB / 0.4931 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/0.1394, allocations: 16.31 kB / 0.4931 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.1397, allocations: 171 kB / 0.4933 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1397, allocations: 3.953 kB / 0.4933 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.1398, allocations: 8 kB / 0.4933 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1398, allocations: 0 / 0.4933 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003556/0.1401, allocations: 171.8 kB / 0.4934 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.1413, allocations: 0.6253 MB / 0.4941 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.1417, allocations: 214.4 kB / 0.4943 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.1419, allocations: 112.8 kB / 0.4944 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1419, allocations: 4 kB / 0.4944 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.142, allocations: 34.55 kB / 0.4944 GB, free: 11.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.142, allocations: 0 / 0.4944 GB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001865/0.1438, allocations: 0.6417 MB / 0.495 GB, free: 10.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.1439, allocations: 55.34 kB / 0.4951 GB, free: 10.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007978/0.1447, allocations: 348.8 kB / 0.4954 GB, free: 10.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1447, allocations: 29.7 kB / 0.4954 GB, free: 10.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1449, allocations: 136.5 kB / 0.4956 GB, free: 10.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.145, allocations: 79.33 kB / 0.4957 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/0.1451, allocations: 41.7 kB / 0.4957 GB, free: 9.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1452, allocations: 338.8 kB / 0.496 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.1454, allocations: 91.94 kB / 0.4961 GB, free: 9.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1456, allocations: 91.94 kB / 0.4962 GB, free: 9.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.1477, allocations: 0.61 MB / 0.4968 GB, free: 8.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1477, allocations: 0 / 0.4968 GB, free: 8.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008207/0.1485, allocations: 398 kB / 0.4972 GB, free: 8.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1485, allocations: 11.92 kB / 0.4972 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1485, allocations: 0 / 0.4972 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003238/0.1489, allocations: 92.77 kB / 0.4973 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.1491, allocations: 35.92 kB / 0.4973 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.1511, allocations: 1.845 MB / 0.4991 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.1515, allocations: 59.84 kB / 0.4992 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1515, allocations: 8 kB / 0.4992 GB, free: 6.25 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.0002256/0.1517, allocations: 163.8 kB / 0.4993 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.1518, allocations: 23.8 kB / 0.4993 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.872e-05/0.1519, allocations: 42.17 kB / 0.4994 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1519, allocations: 11.94 kB / 0.4994 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1519, allocations: 0 / 0.4994 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1519, allocations: 0 / 0.4994 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004174/0.1523, allocations: 333.3 kB / 0.4997 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1523, allocations: 4 kB / 0.4997 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.1525, allocations: 23.98 kB / 0.4997 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000283/0.1528, allocations: 92.77 kB / 0.4998 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.1528, allocations: 4 kB / 0.4998 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.1548, allocations: 1.858 MB / 0.5016 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1548, allocations: 0 / 0.5016 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.1558, allocations: 0.556 MB / 0.5022 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.084e-05/0.1559, allocations: 105 kB / 0.5023 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.1559, allocations: 16.05 kB / 0.5023 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/0.1563, allocations: 47.88 kB / 0.5024 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.1564, allocations: 23.86 kB / 0.5024 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.1564, allocations: 8 kB / 0.5024 GB, free: 2.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006835/0.1571, allocations: 272.3 kB / 0.5026 GB, free: 2.461 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1571, allocations: 0 / 0.5026 GB, free: 2.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003319/0.1575, allocations: 56 kB / 0.5027 GB, free: 2.406 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.00132/0.1588, allocations: 1.093 MB / 0.5038 GB, free: 1.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007133/0.1595, allocations: 372 kB / 0.5041 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1595, allocations: 8 kB / 0.5041 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004067/0.1599, allocations: 250.5 kB / 0.5044 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.1603, allocations: 40.41 kB / 0.5044 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2036/0.3639, allocations: 3.121 MB / 0.5075 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3642, allocations: 0.7727 MB / 0.5082 GB, free: 19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.3643, allocations: 51.06 kB / 0.5083 GB, free: 19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.3644, allocations: 70.5 kB / 0.5083 GB, free: 18.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3644, allocations: 4.594 kB / 0.5083 GB, free: 18.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.3977, allocations: 5.671 MB / 0.5139 GB, free: 18.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.812/10.21, allocations: 12.45 kB / 0.5139 GB, free: 18.47 MB / 382.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: 12.975690164952539] Failed to read output from testmodel.py, exit status != 0: 10.293161025037989 10.314826494 10.174230792 Calling exit ...