Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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.001711/0.001711, allocations: 108.1 kB / 16.4 MB, free: 6.5 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.001275/0.001275, 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.384/1.384, 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.09818/0.09818, allocations: 22.33 MB / 319.6 MB, free: 6.777 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.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 63.89 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1285, allocations: 54.94 MB / 0.4885 GB, free: 1.645 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003027/0.1315, allocations: 1.816 MB / 0.4902 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.1328, allocations: 0.6156 MB / 0.4908 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.199e-05/0.1329, allocations: 7.938 kB / 0.4909 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.1332, allocations: 47.7 kB / 0.4909 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.1334, allocations: 63.66 kB / 0.491 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.1338, allocations: 123.8 kB / 0.4911 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.1342, allocations: 319.3 kB / 0.4914 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.1343, allocations: 53.91 kB / 0.4914 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.1345, allocations: 123.6 kB / 0.4916 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.1348, allocations: 159.4 kB / 0.4917 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.157e-05/0.1348, allocations: 23.98 kB / 0.4917 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.23e-05/0.1349, allocations: 20 kB / 0.4917 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.135, allocations: 91.78 kB / 0.4918 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.1351, allocations: 107.3 kB / 0.4919 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.1354, allocations: 234.9 kB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1354, allocations: 4 kB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1354, allocations: 0 / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1354, allocations: 4 kB / 0.4922 GB, free: 13.83 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001753/0.1372, allocations: 0.6853 MB / 0.4928 GB, free: 13.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1372, allocations: 12.03 kB / 0.4928 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.684e-05/0.1373, allocations: 50.67 kB / 0.4929 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.626e-05/0.1374, allocations: 24.8 kB / 0.4929 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009504/0.1383, allocations: 358.9 kB / 0.4933 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.1383, allocations: 16.31 kB / 0.4933 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.1384, allocations: 12.38 kB / 0.4933 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.1388, allocations: 190.5 kB / 0.4935 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.1388, allocations: 7.938 kB / 0.4935 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.1388, allocations: 4 kB / 0.4935 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1388, allocations: 4 kB / 0.4935 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.1392, allocations: 171.9 kB / 0.4937 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1404, allocations: 0.6563 MB / 0.4943 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1408, allocations: 229.2 kB / 0.4945 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.141, allocations: 112.8 kB / 0.4946 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-05/0.1411, allocations: 4.375 kB / 0.4946 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.1411, allocations: 42.5 kB / 0.4947 GB, free: 11.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.1411, allocations: 0 / 0.4947 GB, free: 11.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001534/0.1427, allocations: 0.5693 MB / 0.4952 GB, free: 10.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.1427, allocations: 55.41 kB / 0.4953 GB, free: 10.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009522/0.1437, allocations: 352.8 kB / 0.4956 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.1437, allocations: 29.7 kB / 0.4956 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.1439, allocations: 144.5 kB / 0.4958 GB, free: 9.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.562e-05/0.144, allocations: 75.28 kB / 0.4958 GB, free: 9.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-05/0.1441, allocations: 41.7 kB / 0.4959 GB, free: 9.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002801/0.1444, allocations: 342.8 kB / 0.4962 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.1446, allocations: 92.17 kB / 0.4963 GB, free: 9.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.1448, allocations: 96.34 kB / 0.4964 GB, free: 9.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.1468, allocations: 0.6346 MB / 0.497 GB, free: 8.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1469, allocations: 0 / 0.497 GB, free: 8.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008509/0.1477, allocations: 411.2 kB / 0.4974 GB, free: 8.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1477, allocations: 7.438 kB / 0.4974 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1478, allocations: 3.984 kB / 0.4974 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003593/0.1481, allocations: 112.7 kB / 0.4975 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.1484, allocations: 39.92 kB / 0.4976 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/0.1508, allocations: 2.084 MB / 0.4996 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1512, allocations: 51.86 kB / 0.4996 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.1512, allocations: 20.05 kB / 0.4997 GB, free: 5.758 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.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 (20): * Single equations (assignments): 19 * 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,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002167/0.1515, allocations: 147.1 kB / 0.4998 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.857e-05/0.1515, allocations: 31.75 kB / 0.4998 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.456e-05/0.1516, allocations: 50.16 kB / 0.4999 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1516, allocations: 0 / 0.4999 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1516, allocations: 7.875 kB / 0.4999 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1516, allocations: 7.984 kB / 0.4999 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/0.1521, allocations: 333.4 kB / 0.5002 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1521, allocations: 0 / 0.5002 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.1523, allocations: 27.98 kB / 0.5002 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.1525, allocations: 64.8 kB / 0.5003 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.1525, allocations: 15.98 kB / 0.5003 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.1544, allocations: 1.854 MB / 0.5021 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1544, allocations: 0 / 0.5021 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008994/0.1553, allocations: 0.5368 MB / 0.5027 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.1554, allocations: 113 kB / 0.5028 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.1554, allocations: 8 kB / 0.5028 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/0.1558, allocations: 47.92 kB / 0.5028 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.1559, allocations: 15.98 kB / 0.5028 GB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.1559, allocations: 11.92 kB / 0.5028 GB, free: 2.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006781/0.1566, allocations: 280.3 kB / 0.5031 GB, free: 1.996 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1566, allocations: 0 / 0.5031 GB, free: 1.996 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.157, allocations: 55.94 kB / 0.5032 GB, free: 1.941 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.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 (17): * Single equations (assignments): 16 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001272/0.1583, allocations: 1.09 MB / 0.5042 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007681/0.1591, allocations: 386.7 kB / 0.5046 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1591, allocations: 0 / 0.5046 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.1595, allocations: 262.5 kB / 0.5048 GB, free: 168 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.1599, allocations: 40.53 kB / 0.5049 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.3686, allocations: 3.193 MB / 0.508 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/0.3689, allocations: 0.7758 MB / 0.5088 GB, free: 18.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.369, allocations: 54.31 kB / 0.5088 GB, free: 18.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3691, allocations: 80.8 kB / 0.5089 GB, free: 18.63 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3691, allocations: 0 / 0.5089 GB, free: 18.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.4037, allocations: 5.811 MB / 0.5146 GB, free: 18.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.927/10.33, allocations: 5.891 kB / 0.5146 GB, free: 18.12 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Smith_predictor_res.csv --start-time 0 --stop-time 500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Typical_control_structures_Smith_predictor.fmu > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.226124099106528] Failed to read output from testmodel.py, exit status != 0: 10.415450918953866 10.432344624 10.293804787000001 Calling exit ...