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.001355/0.001355, allocations: 111.6 kB / 17.14 MB, free: 6 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.001383/0.001383, allocations: 217.1 kB / 20.12 MB, free: 3.047 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.481/1.481, allocations: 230.6 MB / 253.5 MB, free: 15.28 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.1052/0.1052, allocations: 24.03 MB / 333.6 MB, free: 1.621 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="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: 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.002054/0.002054, allocations: 70.48 kB / 468.4 MB, free: 31.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1054, allocations: 59.55 MB / 0.5156 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003368/0.1088, allocations: 1.827 MB / 0.5174 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.1101, allocations: 0.6624 MB / 0.518 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.809e-05/0.1102, allocations: 3.938 kB / 0.518 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.1106, allocations: 43.7 kB / 0.518 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.1108, allocations: 75.59 kB / 0.5181 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.1111, allocations: 135.6 kB / 0.5182 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.1114, allocations: 307.5 kB / 0.5185 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.1116, allocations: 37.89 kB / 0.5186 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.1118, allocations: 135.5 kB / 0.5187 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.1121, allocations: 183.3 kB / 0.5189 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-05/0.1121, allocations: 20 kB / 0.5189 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.81e-05/0.1121, allocations: 20 kB / 0.5189 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1123, allocations: 99.72 kB / 0.519 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1124, allocations: 99.38 kB / 0.5191 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.1127, allocations: 250.9 kB / 0.5193 GB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.1128, allocations: 0 / 0.5193 GB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1128, allocations: 0 / 0.5193 GB, free: 8.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1128, allocations: 0 / 0.5193 GB, free: 8.449 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.001831/0.1146, allocations: 0.6814 MB / 0.52 GB, free: 7.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1146, allocations: 8.625 kB / 0.52 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.412e-05/0.1147, allocations: 50.73 kB / 0.5201 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.076e-05/0.1148, allocations: 28.75 kB / 0.5201 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008705/0.1156, allocations: 366.8 kB / 0.5204 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.1157, allocations: 12.38 kB / 0.5205 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/0.1157, allocations: 16.33 kB / 0.5205 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.1161, allocations: 190.4 kB / 0.5207 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1161, allocations: 0 / 0.5207 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1161, allocations: 4 kB / 0.5207 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1161, allocations: 4 kB / 0.5207 GB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.1164, allocations: 171.9 kB / 0.5208 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1176, allocations: 0.6525 MB / 0.5215 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.118, allocations: 214.4 kB / 0.5217 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.1181, allocations: 112.8 kB / 0.5218 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1182, allocations: 12.36 kB / 0.5218 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.1182, allocations: 42.44 kB / 0.5218 GB, free: 5.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1182, allocations: 0 / 0.5218 GB, free: 5.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001516/0.1197, allocations: 0.571 MB / 0.5224 GB, free: 5.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.1198, allocations: 55.41 kB / 0.5224 GB, free: 5.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007723/0.1205, allocations: 348.8 kB / 0.5228 GB, free: 4.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.1206, allocations: 33.7 kB / 0.5228 GB, free: 4.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1207, allocations: 136.5 kB / 0.5229 GB, free: 4.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.355e-05/0.1208, allocations: 91.27 kB / 0.523 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.304e-05/0.1208, allocations: 41.7 kB / 0.5231 GB, free: 4.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.121, allocations: 334.8 kB / 0.5234 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1212, allocations: 92.17 kB / 0.5235 GB, free: 3.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.1213, allocations: 92.41 kB / 0.5236 GB, free: 3.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.1234, allocations: 0.6272 MB / 0.5242 GB, free: 3.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1234, allocations: 0 / 0.5242 GB, free: 3.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00083/0.1242, allocations: 419.1 kB / 0.5246 GB, free: 2.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.1242, allocations: 7.984 kB / 0.5246 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1242, allocations: 4 kB / 0.5246 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003411/0.1246, allocations: 100.8 kB / 0.5247 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1247, allocations: 27.98 kB / 0.5247 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002324/0.127, allocations: 2.084 MB / 0.5267 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1274, allocations: 59.91 kB / 0.5268 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.1274, allocations: 11.98 kB / 0.5268 GB, free: 416 kB / 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.0002185/0.1277, allocations: 164 kB / 0.527 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.1277, allocations: 27.8 kB / 0.527 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.279e-05/0.1278, allocations: 38.19 kB / 0.527 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1278, allocations: 3.984 kB / 0.527 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1278, allocations: 8.047 kB / 0.527 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1278, allocations: 0 / 0.527 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004263/0.1282, allocations: 345.3 kB / 0.5274 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1282, allocations: 3.938 kB / 0.5274 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.1285, allocations: 31.92 kB / 0.5274 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002214/0.1287, allocations: 72.78 kB / 0.5275 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.1287, allocations: 8 kB / 0.5275 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.1305, allocations: 1.853 MB / 0.5293 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1305, allocations: 0 / 0.5293 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009132/0.1314, allocations: 0.5494 MB / 0.5298 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.1315, allocations: 101.2 kB / 0.5299 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.1315, allocations: 8.047 kB / 0.5299 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003784/0.1319, allocations: 47.94 kB / 0.53 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.132, allocations: 23.97 kB / 0.53 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.132, allocations: 7.938 kB / 0.53 GB, free: 12.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006744/0.1327, allocations: 272.3 kB / 0.5303 GB, free: 12.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1327, allocations: 0 / 0.5303 GB, free: 12.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003969/0.1331, allocations: 55.94 kB / 0.5303 GB, free: 12.57 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.001297/0.1344, allocations: 1.088 MB / 0.5314 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007663/0.1351, allocations: 385.8 kB / 0.5317 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1351, allocations: 0 / 0.5317 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.1356, allocations: 270.4 kB / 0.532 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003614/0.1359, allocations: 30.44 kB / 0.532 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005621/0.1415, allocations: 3.2 MB / 0.5352 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.142, allocations: 0.7713 MB / 0.5359 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.1421, allocations: 61.89 kB / 0.536 GB, free: 6.621 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.1422, allocations: 71.42 kB / 0.536 GB, free: 6.551 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1422, allocations: 0 / 0.536 GB, free: 6.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.1745, allocations: 5.893 MB / 0.5418 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.31, allocations: 7.438 kB / 0.5418 GB, free: 0.7695 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 & 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.439020407851785] Failed to read output from testmodel.py, exit status != 0: 10.392168658785522 10.414344707 10.297431607 Calling exit ...