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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007678/0.007679, allocations: 100.5 kB / 15.73 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 189.6 kB / 16.67 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09569/0.09569, allocations: 22.33 MB / 312.9 MB, free: 8.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.89 kB / 436.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 54.95 MB / 491.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003095/0.1076, allocations: 1.809 MB / 493.3 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.1089, allocations: 0.6157 MB / 493.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.1091, allocations: 4 kB / 493.9 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004123/0.1096, allocations: 55.62 kB / 494 MB, free: 2.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.1098, allocations: 67.67 kB / 494 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.1103, allocations: 123.8 kB / 494.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004788/0.1107, allocations: 311.4 kB / 494.5 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1109, allocations: 45.91 kB / 494.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.1112, allocations: 131.5 kB / 494.6 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.1115, allocations: 163.5 kB / 494.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.872e-05/0.1115, allocations: 23.94 kB / 494.8 MB, free: 1.867 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.291e-05/0.1116, allocations: 20 kB / 494.8 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.1117, allocations: 91.7 kB / 494.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1119, allocations: 107.3 kB / 495 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002745/0.1121, allocations: 238.9 kB / 495.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.1122, allocations: 0 / 495.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1122, allocations: 3.938 kB / 495.3 MB, free: 1.414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1122, allocations: 0 / 495.3 MB, free: 1.414 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.001745/0.1139, allocations: 0.6854 MB / 496 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.114, allocations: 12.03 kB / 496 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.298e-05/0.1141, allocations: 50.73 kB / 496 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.325e-05/0.1141, allocations: 24.8 kB / 496 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009383/0.1151, allocations: 362.8 kB / 496.4 MB, free: 200 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1151, allocations: 12.38 kB / 496.4 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.1152, allocations: 20.38 kB / 496.4 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.1155, allocations: 186.5 kB / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1156, allocations: 0 / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.1156, allocations: 8 kB / 496.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1156, allocations: 4 kB / 496.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.1159, allocations: 167.8 kB / 496.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.1171, allocations: 0.6602 MB / 497.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.1175, allocations: 218.5 kB / 497.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.1177, allocations: 116.8 kB / 497.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.1178, allocations: 4.375 kB / 497.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.1178, allocations: 38.5 kB / 497.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.1178, allocations: 0 / 497.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001708/0.1195, allocations: 0.5721 MB / 498.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1196, allocations: 55.41 kB / 498.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009117/0.1205, allocations: 352.8 kB / 498.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1206, allocations: 29.7 kB / 498.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.1207, allocations: 148.3 kB / 499 MB, free: 13.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.725e-05/0.1208, allocations: 87.22 kB / 499.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.1209, allocations: 41.7 kB / 499.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.121, allocations: 338.8 kB / 499.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1212, allocations: 88.17 kB / 499.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.1213, allocations: 92.41 kB / 499.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.1233, allocations: 0.6293 MB / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1233, allocations: 0 / 0.4885 GB, free: 12.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007853/0.1241, allocations: 415.2 kB / 0.4889 GB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1241, allocations: 4 kB / 0.4889 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1241, allocations: 4 kB / 0.4889 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.1245, allocations: 112.7 kB / 0.489 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.1246, allocations: 27.98 kB / 0.489 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.1268, allocations: 2.096 MB / 0.4911 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00036/0.1271, allocations: 59.91 kB / 0.4911 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.1272, allocations: 8 kB / 0.4912 GB, free: 9.352 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.0002129/0.1274, allocations: 164.3 kB / 0.4913 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.1274, allocations: 31.73 kB / 0.4913 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.537e-05/0.1275, allocations: 38.19 kB / 0.4914 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1275, allocations: 4 kB / 0.4914 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1275, allocations: 0 / 0.4914 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1276, allocations: 7.922 kB / 0.4914 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.1279, allocations: 333.4 kB / 0.4917 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1279, allocations: 4 kB / 0.4917 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.1282, allocations: 27.98 kB / 0.4917 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.1284, allocations: 80.72 kB / 0.4918 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.1284, allocations: 8 kB / 0.4918 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/0.1302, allocations: 1.854 MB / 0.4936 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1302, allocations: 0 / 0.4936 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009752/0.1312, allocations: 0.5484 MB / 0.4942 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.1313, allocations: 112.9 kB / 0.4943 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.1313, allocations: 4 kB / 0.4943 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.1317, allocations: 43.92 kB / 0.4943 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.1318, allocations: 19.97 kB / 0.4943 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1318, allocations: 7.938 kB / 0.4943 GB, free: 5.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006445/0.1325, allocations: 280.3 kB / 0.4946 GB, free: 5.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1325, allocations: 0 / 0.4946 GB, free: 5.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003929/0.1329, allocations: 56 kB / 0.4947 GB, free: 5.516 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.001151/0.134, allocations: 1.086 MB / 0.4957 GB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007162/0.1348, allocations: 398.7 kB / 0.4961 GB, free: 4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1348, allocations: 0 / 0.4961 GB, free: 4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.1352, allocations: 250.5 kB / 0.4963 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.1356, allocations: 38.56 kB / 0.4964 GB, free: 3.703 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.1409, allocations: 3.198 MB / 0.4995 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2392/0.3801, allocations: 0.7684 MB / 0.5003 GB, free: 21.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.3803, allocations: 55.66 kB / 0.5003 GB, free: 21.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.3805, allocations: 76.06 kB / 0.5004 GB, free: 21.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3805, allocations: 0 / 0.5004 GB, free: 21.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.409, allocations: 5.804 MB / 0.5061 GB, free: 21.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.41/9.819, allocations: 14.08 kB / 0.5061 GB, free: 21.21 MB / 382.1 MB (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)