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.001235/0.001235, allocations: 102.7 kB / 16.45 MB, free: 6.445 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.001199/0.001199, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.379/1.379, allocations: 225.6 MB / 247.8 MB, free: 3.738 MB / 190.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.09453/0.09453, allocations: 22.68 MB / 325.4 MB, free: 7.906 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.001928/0.001928, allocations: 66.06 kB / 457.1 MB, free: 41.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1097, allocations: 58.03 MB / 0.5031 GB, free: 8.238 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002353/0.112, allocations: 1.814 MB / 0.5049 GB, free: 6.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000866/0.1129, allocations: 0.6078 MB / 0.5055 GB, free: 5.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.964e-05/0.113, allocations: 4 kB / 0.5055 GB, free: 5.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003194/0.1133, allocations: 63.61 kB / 0.5055 GB, free: 5.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1135, allocations: 63.69 kB / 0.5056 GB, free: 5.672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.1137, allocations: 131.7 kB / 0.5057 GB, free: 5.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000237/0.114, allocations: 307.4 kB / 0.506 GB, free: 5.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.1141, allocations: 45.83 kB / 0.5061 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1142, allocations: 135.5 kB / 0.5062 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.1144, allocations: 183.4 kB / 0.5064 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.404e-05/0.1145, allocations: 20 kB / 0.5064 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.672e-05/0.1145, allocations: 20 kB / 0.5064 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.735e-05/0.1146, allocations: 91.72 kB / 0.5065 GB, free: 4.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.896e-05/0.1146, allocations: 107.3 kB / 0.5066 GB, free: 4.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.1148, allocations: 238.9 kB / 0.5068 GB, free: 4.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1148, allocations: 0 / 0.5068 GB, free: 4.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1148, allocations: 0 / 0.5068 GB, free: 4.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1148, allocations: 0 / 0.5068 GB, free: 4.41 MB / 366.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.001382/0.1162, allocations: 0.6893 MB / 0.5075 GB, free: 3.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1162, allocations: 12.03 kB / 0.5075 GB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.274e-05/0.1163, allocations: 46.73 kB / 0.5075 GB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.1163, allocations: 28.75 kB / 0.5076 GB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006968/0.117, allocations: 362.8 kB / 0.5079 GB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.117, allocations: 12.38 kB / 0.5079 GB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.1171, allocations: 16.36 kB / 0.5079 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.1173, allocations: 186.4 kB / 0.5081 GB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1173, allocations: 4 kB / 0.5081 GB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.1174, allocations: 8 kB / 0.5081 GB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1174, allocations: 7.984 kB / 0.5081 GB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.1176, allocations: 163.9 kB / 0.5083 GB, free: 2.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008888/0.1185, allocations: 0.6563 MB / 0.5089 GB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.1188, allocations: 214.4 kB / 0.5091 GB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.1189, allocations: 112.8 kB / 0.5092 GB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.1189, allocations: 8.359 kB / 0.5093 GB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.68e-05/0.119, allocations: 38.44 kB / 0.5093 GB, free: 1.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.119, allocations: 8 kB / 0.5093 GB, free: 1.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001185/0.1202, allocations: 0.5758 MB / 0.5099 GB, free: 1.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.1202, allocations: 55.41 kB / 0.5099 GB, free: 1.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005809/0.1208, allocations: 348.8 kB / 0.5102 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1208, allocations: 25.7 kB / 0.5103 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.1208, allocations: 140.5 kB / 0.5104 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.1209, allocations: 87.22 kB / 0.5105 GB, free: 420 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/0.1209, allocations: 41.7 kB / 0.5105 GB, free: 372 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.989e-05/0.121, allocations: 338.8 kB / 0.5109 GB, free: 24 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.1212, allocations: 92.25 kB / 0.5109 GB, free: 15.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.1213, allocations: 92.41 kB / 0.511 GB, free: 15.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/0.1233, allocations: 0.6242 MB / 0.5116 GB, free: 15.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1233, allocations: 3.938 kB / 0.5116 GB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007779/0.124, allocations: 423.3 kB / 0.512 GB, free: 14.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1241, allocations: 8 kB / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1241, allocations: 0 / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003447/0.1244, allocations: 108.6 kB / 0.5122 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.1246, allocations: 31.98 kB / 0.5122 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.1269, allocations: 2.092 MB / 0.5142 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.1273, allocations: 51.83 kB / 0.5143 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.1273, allocations: 4 kB / 0.5143 GB, free: 12.36 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.0002099/0.1275, allocations: 159.1 kB / 0.5144 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.1275, allocations: 27.8 kB / 0.5145 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.899e-05/0.1276, allocations: 38.17 kB / 0.5145 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1276, allocations: 8 kB / 0.5145 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1276, allocations: 4.062 kB / 0.5145 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1276, allocations: 0 / 0.5145 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.1281, allocations: 341.3 kB / 0.5148 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1281, allocations: 0 / 0.5148 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.1283, allocations: 35.92 kB / 0.5149 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002092/0.1285, allocations: 72.78 kB / 0.5149 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1285, allocations: 11.92 kB / 0.515 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.1302, allocations: 1.85 MB / 0.5168 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1302, allocations: 3.984 kB / 0.5168 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008665/0.1311, allocations: 0.5399 MB / 0.5173 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1312, allocations: 109 kB / 0.5174 GB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.1313, allocations: 8.25 kB / 0.5174 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.1316, allocations: 48 kB / 0.5174 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.1317, allocations: 19.97 kB / 0.5175 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.1317, allocations: 11.94 kB / 0.5175 GB, free: 8.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006508/0.1323, allocations: 272.3 kB / 0.5177 GB, free: 8.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1323, allocations: 0 / 0.5177 GB, free: 8.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.1327, allocations: 59.94 kB / 0.5178 GB, free: 8.531 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.001224/0.1339, allocations: 1.085 MB / 0.5189 GB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007082/0.1346, allocations: 386.6 kB / 0.5192 GB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1346, allocations: 0 / 0.5192 GB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00041/0.1351, allocations: 261.6 kB / 0.5195 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.1354, allocations: 40.27 kB / 0.5195 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.1408, allocations: 3.192 MB / 0.5226 GB, free: 3.438 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.1412, allocations: 0.7792 MB / 0.5234 GB, free: 2.633 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.1414, allocations: 49.91 kB / 0.5234 GB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.1415, allocations: 79.41 kB / 0.5235 GB, free: 2.504 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1415, allocations: 0 / 0.5235 GB, free: 2.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.1743, allocations: 5.886 MB / 0.5293 GB, free: 12.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.589/9.763, allocations: 9.938 kB / 0.5293 GB, free: 12.73 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --stepSize=1 --timeout=50 --tolerance=1e-06 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: 12.45901186298579] Failed to read output from testmodel.py, exit status != 0: 9.8422845560126 9.856466241 9.738963789 Calling exit ...