Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.001258/0.001258, allocations: 109 kB / 16.4 MB, free: 6.504 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.001285/0.001285, allocations: 192.5 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.4/1.4, allocations: 222.9 MB / 245.1 MB, free: 15 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.1019/0.1019, allocations: 22.33 MB / 319.6 MB, free: 6.773 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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002918/0.002918, allocations: 67.91 kB / 445.3 MB, free: 8.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1448, allocations: 54.95 MB / 0.4885 GB, free: 1.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002612/0.1474, allocations: 1.314 MB / 0.4898 GB, free: 320 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.1495, allocations: 1.393 MB / 0.4911 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1496, allocations: 8 kB / 0.4911 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.15, allocations: 103.4 kB / 0.4912 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.1504, allocations: 119.4 kB / 0.4913 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.1508, allocations: 203.6 kB / 0.4915 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007444/0.1516, allocations: 0.5107 MB / 0.492 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.1517, allocations: 60.72 kB / 0.4921 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.1521, allocations: 215.3 kB / 0.4923 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004501/0.1525, allocations: 247.1 kB / 0.4925 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.891e-05/0.1526, allocations: 24 kB / 0.4926 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.081e-05/0.1527, allocations: 32 kB / 0.4926 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.1529, allocations: 123.6 kB / 0.4927 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.1531, allocations: 147 kB / 0.4928 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.1535, allocations: 330.4 kB / 0.4932 GB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1535, allocations: 0 / 0.4932 GB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1535, allocations: 0 / 0.4932 GB, free: 12.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1535, allocations: 0 / 0.4932 GB, free: 12.8 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002511/0.156, allocations: 0.8801 MB / 0.494 GB, free: 11.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1561, allocations: 8.031 kB / 0.494 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/0.1562, allocations: 54.73 kB / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.435e-05/0.1562, allocations: 36.7 kB / 0.4941 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.1576, allocations: 494.3 kB / 0.4946 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1576, allocations: 16.7 kB / 0.4946 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.1577, allocations: 20.38 kB / 0.4946 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004133/0.1581, allocations: 216.2 kB / 0.4948 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.1581, allocations: 3.984 kB / 0.4948 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.1581, allocations: 4 kB / 0.4948 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1582, allocations: 4 kB / 0.4948 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.1586, allocations: 232.4 kB / 0.4951 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.1602, allocations: 0.7578 MB / 0.4958 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007526/0.1609, allocations: 334.3 kB / 0.4961 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.1612, allocations: 133.4 kB / 0.4962 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.1612, allocations: 7.938 kB / 0.4963 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1613, allocations: 34.56 kB / 0.4963 GB, free: 9.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.793e-06/0.1613, allocations: 4 kB / 0.4963 GB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002103/0.1634, allocations: 0.7839 MB / 0.4971 GB, free: 8.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.1635, allocations: 55.34 kB / 0.4971 GB, free: 8.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.1648, allocations: 0.5053 MB / 0.4976 GB, free: 8.012 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1648, allocations: 29.7 kB / 0.4976 GB, free: 7.977 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.165, allocations: 184.5 kB / 0.4978 GB, free: 7.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.1651, allocations: 103.1 kB / 0.4979 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/0.1652, allocations: 49.64 kB / 0.498 GB, free: 7.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.1654, allocations: 354.7 kB / 0.4983 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.1656, allocations: 112.1 kB / 0.4984 GB, free: 7.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.1658, allocations: 113.3 kB / 0.4985 GB, free: 7.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002329/0.1681, allocations: 0.7178 MB / 0.4992 GB, free: 6.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.1681, allocations: 4 kB / 0.4992 GB, free: 6.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009823/0.1691, allocations: 487.7 kB / 0.4997 GB, free: 5.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1692, allocations: 4 kB / 0.4997 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1692, allocations: 0 / 0.4997 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003764/0.1696, allocations: 105.6 kB / 0.4998 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1698, allocations: 43.91 kB / 0.4998 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00357/0.1733, allocations: 3.197 MB / 0.5029 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.1739, allocations: 79.89 kB / 0.503 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.174, allocations: 11.94 kB / 0.503 GB, free: 2.121 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000301/0.1743, allocations: 180.7 kB / 0.5032 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.786e-05/0.1744, allocations: 35.77 kB / 0.5032 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.1745, allocations: 47.31 kB / 0.5033 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1745, allocations: 4 kB / 0.5033 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.1745, allocations: 4 kB / 0.5033 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1745, allocations: 4 kB / 0.5033 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.1751, allocations: 397.2 kB / 0.5037 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1752, allocations: 0 / 0.5037 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.1754, allocations: 35.98 kB / 0.5037 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003442/0.1757, allocations: 101.6 kB / 0.5038 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.1758, allocations: 12 kB / 0.5038 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2332/0.409, allocations: 3.198 MB / 0.5069 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4091, allocations: 0 / 0.5069 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.4102, allocations: 0.6649 MB / 0.5076 GB, free: 18.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.861e-05/0.4103, allocations: 121.1 kB / 0.5077 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.4103, allocations: 14.67 kB / 0.5077 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.4108, allocations: 64.3 kB / 0.5078 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/0.411, allocations: 22.36 kB / 0.5078 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.411, allocations: 12.52 kB / 0.5078 GB, free: 18.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009541/0.4119, allocations: 406.2 kB / 0.5082 GB, free: 18.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.412, allocations: 1.844 kB / 0.5082 GB, free: 18.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.4124, allocations: 75.19 kB / 0.5083 GB, free: 18.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001191/0.4136, allocations: 1.211 MB / 0.5095 GB, free: 17.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008161/0.4144, allocations: 0.5381 MB / 0.51 GB, free: 17.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4144, allocations: 0 / 0.51 GB, free: 17.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.4148, allocations: 398.8 kB / 0.5104 GB, free: 17.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.4153, allocations: 63.06 kB / 0.5104 GB, free: 17.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.4224, allocations: 4.01 MB / 0.5143 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.4227, allocations: 0.8214 MB / 0.5151 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.4229, allocations: 70.62 kB / 0.5152 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.4231, allocations: 112.1 kB / 0.5153 GB, free: 15.01 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4231, allocations: 1.188 kB / 0.5153 GB, free: 15.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03827/0.4614, allocations: 7.7 MB / 0.5228 GB, free: 13.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.53, allocations: 16.53 kB / 0.5229 GB, free: 13.94 MB / 382.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.213313107029535] Failed to read output from testmodel.py, exit status != 0: 10.619439688976854 10.640209749 10.482987151 Calling exit ...