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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 119 kB / 17.17 MB, free: 5.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 211 kB / 20.13 MB, free: 2.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1002/0.1002, allocations: 22.93 MB / 332.5 MB, free: 2.641 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 66.33 kB / 466.7 MB, free: 32.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1091, allocations: 59.26 MB / 0.5137 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003196/0.1123, allocations: 1.838 MB / 0.5155 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1135, allocations: 0.6468 MB / 0.5161 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.475e-05/0.1136, allocations: 11.94 kB / 0.5161 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000314/0.1139, allocations: 55.62 kB / 0.5162 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.1141, allocations: 63.67 kB / 0.5162 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.1144, allocations: 127.7 kB / 0.5163 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.1148, allocations: 303.5 kB / 0.5166 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1149, allocations: 49.86 kB / 0.5167 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.1151, allocations: 131.6 kB / 0.5168 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.1154, allocations: 187.3 kB / 0.517 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.367e-05/0.1154, allocations: 20 kB / 0.517 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.459e-05/0.1155, allocations: 20 kB / 0.517 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.1156, allocations: 99.7 kB / 0.5171 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1157, allocations: 103.4 kB / 0.5172 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002817/0.116, allocations: 238.9 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.116, allocations: 0 / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.116, allocations: 0 / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.116, allocations: 0 / 0.5174 GB, free: 10.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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001792/0.1178, allocations: 0.6893 MB / 0.5181 GB, free: 9.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.1178, allocations: 8.625 kB / 0.5181 GB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.735e-05/0.1178, allocations: 4.188 kB / 0.5181 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.954e-05/0.1179, allocations: 50.67 kB / 0.5182 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.118, allocations: 28.75 kB / 0.5182 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009079/0.1189, allocations: 366.9 kB / 0.5186 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1189, allocations: 12.31 kB / 0.5186 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.1189, allocations: 16.33 kB / 0.5186 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.1193, allocations: 190.3 kB / 0.5188 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1193, allocations: 0 / 0.5188 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.1193, allocations: 4 kB / 0.5188 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1193, allocations: 4 kB / 0.5188 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003573/0.1197, allocations: 179.8 kB / 0.5189 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.1209, allocations: 0.6525 MB / 0.5196 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.1213, allocations: 210.4 kB / 0.5198 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.1216, allocations: 113.2 kB / 0.5199 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.1216, allocations: 7.938 kB / 0.5199 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.1216, allocations: 34.56 kB / 0.5199 GB, free: 7.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.1216, allocations: 0 / 0.5199 GB, free: 7.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001598/0.1232, allocations: 0.5751 MB / 0.5205 GB, free: 6.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.1233, allocations: 55.34 kB / 0.5205 GB, free: 6.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008328/0.1241, allocations: 348.9 kB / 0.5209 GB, free: 6.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1241, allocations: 29.7 kB / 0.5209 GB, free: 6.367 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1242, allocations: 140.5 kB / 0.521 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.1243, allocations: 87.27 kB / 0.5211 GB, free: 6.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.1244, allocations: 41.7 kB / 0.5212 GB, free: 6.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1246, allocations: 338.8 kB / 0.5215 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.1247, allocations: 92.17 kB / 0.5216 GB, free: 5.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.1249, allocations: 92.41 kB / 0.5217 GB, free: 5.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/0.127, allocations: 0.634 MB / 0.5223 GB, free: 4.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.127, allocations: 3.938 kB / 0.5223 GB, free: 4.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008641/0.1279, allocations: 419.1 kB / 0.5227 GB, free: 4.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.1279, allocations: 4 kB / 0.5227 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1279, allocations: 0 / 0.5227 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003612/0.1283, allocations: 108.7 kB / 0.5228 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.1284, allocations: 35.92 kB / 0.5228 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.1308, allocations: 2.084 MB / 0.5249 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.1312, allocations: 51.86 kB / 0.5249 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.1312, allocations: 16 kB / 0.5249 GB, free: 2.074 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.0002246/0.1314, allocations: 163 kB / 0.5251 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.1315, allocations: 27.8 kB / 0.5251 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.327e-05/0.1316, allocations: 42.17 kB / 0.5251 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1316, allocations: 0 / 0.5251 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1316, allocations: 3.938 kB / 0.5252 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1316, allocations: 0 / 0.5252 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004191/0.132, allocations: 345.4 kB / 0.5255 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.132, allocations: 0 / 0.5255 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.1322, allocations: 32.03 kB / 0.5255 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.1324, allocations: 68.8 kB / 0.5256 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.1325, allocations: 12 kB / 0.5256 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.1343, allocations: 1.849 MB / 0.5274 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1343, allocations: 0 / 0.5274 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009521/0.1353, allocations: 0.5466 MB / 0.5279 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.827e-05/0.1354, allocations: 105 kB / 0.528 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.1354, allocations: 8.062 kB / 0.528 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003945/0.1358, allocations: 43.94 kB / 0.5281 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.138e-05/0.1359, allocations: 23.91 kB / 0.5281 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.1359, allocations: 8 kB / 0.5281 GB, free: 14.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000735/0.1366, allocations: 272.3 kB / 0.5284 GB, free: 14.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1366, allocations: 0 / 0.5284 GB, free: 14.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000456/0.1371, allocations: 59.94 kB / 0.5284 GB, free: 14.25 MB / 398.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.001282/0.1384, allocations: 1.083 MB / 0.5295 GB, free: 13.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000818/0.1392, allocations: 386.6 kB / 0.5299 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1392, allocations: 0 / 0.5299 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.1397, allocations: 270.4 kB / 0.5301 GB, free: 12.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.1401, allocations: 42.48 kB / 0.5302 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005874/0.1459, allocations: 3.202 MB / 0.5333 GB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.1463, allocations: 0.7792 MB / 0.534 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.1465, allocations: 53.91 kB / 0.5341 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.1466, allocations: 75.41 kB / 0.5342 GB, free: 8.219 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1466, allocations: 0 / 0.5342 GB, free: 8.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.1744, allocations: 5.912 MB / 0.5399 GB, free: 2.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.7, allocations: 19.81 kB / 0.54 GB, free: 2.422 MB / 398.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.598367342026904] Failed to read output from testmodel.py, exit status != 0: 10.844370767998043 10.869897873 10.749528907 Calling exit ...