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.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.001346/0.001346, allocations: 109.9 kB / 16.41 MB, free: 6.512 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.001298/0.001298, allocations: 191.7 kB / 19.35 MB, free: 3.734 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.403/1.403, 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.09977/0.09977, allocations: 22.33 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_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: Performance of FrontEnd - loaded program: time 0.002134/0.002135, allocations: 63.91 kB / 445.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.121, allocations: 54.95 MB / 0.4885 GB, free: 1.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002722/0.1237, allocations: 1.147 MB / 0.4896 GB, free: 472 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1259, allocations: 1.295 MB / 0.4909 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.1262, allocations: 4 kB / 0.4909 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004343/0.1266, allocations: 67.61 kB / 0.4909 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.127, allocations: 87.58 kB / 0.491 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003858/0.1274, allocations: 135.7 kB / 0.4911 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005794/0.128, allocations: 383.3 kB / 0.4915 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.1282, allocations: 56.33 kB / 0.4916 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.1285, allocations: 155.5 kB / 0.4917 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003845/0.1289, allocations: 195.3 kB / 0.4919 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.749e-05/0.129, allocations: 24 kB / 0.4919 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.01e-05/0.129, allocations: 20 kB / 0.4919 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.1292, allocations: 107.7 kB / 0.492 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.1294, allocations: 115.2 kB / 0.4922 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.1298, allocations: 278.8 kB / 0.4924 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1299, allocations: 0 / 0.4924 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1299, allocations: 0 / 0.4924 GB, free: 13.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1299, allocations: 0 / 0.4924 GB, free: 13.55 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.002119/0.132, allocations: 0.7617 MB / 0.4932 GB, free: 12.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1321, allocations: 8.031 kB / 0.4932 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.914e-05/0.1321, allocations: 46.73 kB / 0.4932 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.102e-05/0.1322, allocations: 32.75 kB / 0.4932 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.1334, allocations: 415.5 kB / 0.4936 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.1334, allocations: 16.64 kB / 0.4937 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.94e-05/0.1335, allocations: 16.38 kB / 0.4937 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000394/0.1339, allocations: 195.9 kB / 0.4939 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1339, allocations: 0 / 0.4939 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.1339, allocations: 4 kB / 0.4939 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.134, allocations: 4 kB / 0.4939 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.1344, allocations: 204.7 kB / 0.4941 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1358, allocations: 0.6995 MB / 0.4947 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.1364, allocations: 266.4 kB / 0.495 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.1366, allocations: 132.8 kB / 0.4951 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.1367, allocations: 8 kB / 0.4951 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1367, allocations: 30.56 kB / 0.4952 GB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.1367, allocations: 3.938 kB / 0.4952 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.002068/0.1388, allocations: 0.6855 MB / 0.4958 GB, free: 9.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.1389, allocations: 55.41 kB / 0.4959 GB, free: 9.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.14, allocations: 414.8 kB / 0.4963 GB, free: 9.371 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.1401, allocations: 29.7 kB / 0.4963 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.1402, allocations: 160.5 kB / 0.4965 GB, free: 9.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1404, allocations: 83.23 kB / 0.4965 GB, free: 9.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.1405, allocations: 45.7 kB / 0.4966 GB, free: 9.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.1407, allocations: 354.7 kB / 0.4969 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.1409, allocations: 99.88 kB / 0.497 GB, free: 8.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1411, allocations: 108.4 kB / 0.4971 GB, free: 8.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.1435, allocations: 0.7084 MB / 0.4978 GB, free: 7.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1436, allocations: 0 / 0.4978 GB, free: 7.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009588/0.1445, allocations: 442 kB / 0.4982 GB, free: 7.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.1446, allocations: 7.938 kB / 0.4982 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1446, allocations: 4 kB / 0.4983 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.1449, allocations: 96.75 kB / 0.4983 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.1451, allocations: 39.92 kB / 0.4984 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.1476, allocations: 1.845 MB / 0.5002 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.1481, allocations: 71.84 kB / 0.5003 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.1481, allocations: 11.94 kB / 0.5003 GB, free: 5.109 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.0002617/0.1484, allocations: 168.5 kB / 0.5004 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-05/0.1485, allocations: 27.81 kB / 0.5005 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1486, allocations: 46.25 kB / 0.5005 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1486, allocations: 3.938 kB / 0.5005 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1486, allocations: 4 kB / 0.5005 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1486, allocations: 3.984 kB / 0.5005 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.1491, allocations: 365.2 kB / 0.5009 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1491, allocations: 0 / 0.5009 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.1493, allocations: 27.98 kB / 0.5009 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002994/0.1497, allocations: 105 kB / 0.501 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.1497, allocations: 7.984 kB / 0.501 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002156/0.1518, allocations: 1.842 MB / 0.5028 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1519, allocations: 0 / 0.5028 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.153, allocations: 0.6153 MB / 0.5034 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1531, allocations: 120.8 kB / 0.5035 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.1532, allocations: 8 kB / 0.5035 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/0.1536, allocations: 55.91 kB / 0.5036 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.1537, allocations: 27.86 kB / 0.5036 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.1537, allocations: 7.984 kB / 0.5036 GB, free: 1.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008628/0.1546, allocations: 317.8 kB / 0.5039 GB, free: 1.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1546, allocations: 8 kB / 0.5039 GB, free: 1.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000349/0.155, allocations: 60 kB / 0.504 GB, free: 1.082 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.2118/0.3667, allocations: 1.153 MB / 0.5051 GB, free: 20.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008007/0.3676, allocations: 409.7 kB / 0.5055 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3676, allocations: 0 / 0.5055 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.368, allocations: 277 kB / 0.5057 GB, free: 20.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.3684, allocations: 44.75 kB / 0.5058 GB, free: 20.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/0.3741, allocations: 3.594 MB / 0.5093 GB, free: 18.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.3744, allocations: 0.787 MB / 0.5101 GB, free: 18.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.3745, allocations: 64.55 kB / 0.5101 GB, free: 18.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3746, allocations: 87.62 kB / 0.5102 GB, free: 18.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3747, allocations: 0 / 0.5102 GB, free: 18.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03564/0.4103, allocations: 6.528 MB / 0.5166 GB, free: 17.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.46, allocations: 5.188 kB / 0.5166 GB, free: 17.68 MB / 382.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.155747546930797] Failed to read output from testmodel.py, exit status != 0: 10.546690232935362 10.558327627 10.426103262 Calling exit ...