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.004663/0.004663, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001177/0.001177, allocations: 197.4 kB / 16.67 MB, free: 5.977 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2213/0.2213, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 64.41 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1113, allocations: 54.96 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002763/0.1141, allocations: 1.816 MB / 493.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1152, allocations: 0.6079 MB / 494 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.577e-05/0.1153, allocations: 3.938 kB / 494 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002532/0.1156, allocations: 51.69 kB / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.1158, allocations: 71.67 kB / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.1161, allocations: 115.8 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.1165, allocations: 319.4 kB / 494.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1167, allocations: 53.88 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1168, allocations: 123.6 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002783/0.1171, allocations: 163.4 kB / 494.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.1172, allocations: 20 kB / 494.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.742e-05/0.1172, allocations: 20 kB / 494.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1174, allocations: 95.78 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.1175, allocations: 107.3 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003346/0.1179, allocations: 243.9 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1179, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1179, allocations: 0 / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1179, allocations: 0 / 495.3 MB, free: 13.92 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.001854/0.1198, allocations: 0.6816 MB / 496 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.942e-05/0.1198, allocations: 15.97 kB / 496 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.672e-05/0.1199, allocations: 46.73 kB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.401e-05/0.12, allocations: 24.66 kB / 496.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009728/0.121, allocations: 366.5 kB / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.121, allocations: 12.38 kB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.121, allocations: 12.38 kB / 496.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003925/0.1214, allocations: 194.3 kB / 496.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1215, allocations: 4 kB / 496.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.1215, allocations: 4 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1215, allocations: 4 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.1219, allocations: 171.9 kB / 496.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.123, allocations: 0.6485 MB / 497.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.1234, allocations: 226.3 kB / 497.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.1236, allocations: 112.8 kB / 497.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1237, allocations: 4.375 kB / 497.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.1237, allocations: 38.5 kB / 497.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.216e-06/0.1237, allocations: 3.984 kB / 497.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.00146/0.1252, allocations: 0.5744 MB / 498.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.1252, allocations: 55.41 kB / 498.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006925/0.1259, allocations: 348.8 kB / 498.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.126, allocations: 33.7 kB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1261, allocations: 148.3 kB / 499 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.1262, allocations: 74.89 kB / 499.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.181e-05/0.1262, allocations: 41.7 kB / 499.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1264, allocations: 338.8 kB / 499.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1265, allocations: 88.19 kB / 499.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.1267, allocations: 92.97 kB / 499.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001941/0.1287, allocations: 0.627 MB / 0.4885 GB, free: 8.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1287, allocations: 0 / 0.4885 GB, free: 8.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007921/0.1295, allocations: 427.2 kB / 0.4889 GB, free: 8.305 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1295, allocations: 4 kB / 0.4889 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.1295, allocations: 0 / 0.4889 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.1298, allocations: 104.8 kB / 0.489 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.13, allocations: 31.92 kB / 0.4891 GB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.132, allocations: 2.092 MB / 0.4911 GB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.1323, allocations: 51.81 kB / 0.4912 GB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.1324, allocations: 8 kB / 0.4912 GB, free: 5.875 MB / 366.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.0001998/0.1326, allocations: 167 kB / 0.4913 GB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.1326, allocations: 27.59 kB / 0.4914 GB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.809e-05/0.1327, allocations: 42.17 kB / 0.4914 GB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1327, allocations: 7.938 kB / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1328, allocations: 0 / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1328, allocations: 0 / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.1332, allocations: 337.4 kB / 0.4917 GB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1332, allocations: 7.984 kB / 0.4917 GB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.1334, allocations: 31.97 kB / 0.4918 GB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.1336, allocations: 68.8 kB / 0.4918 GB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.1337, allocations: 4 kB / 0.4918 GB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/0.1352, allocations: 1.858 MB / 0.4937 GB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1352, allocations: 0 / 0.4937 GB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000837/0.1361, allocations: 0.5452 MB / 0.4942 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.344e-05/0.1362, allocations: 104.9 kB / 0.4943 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.1362, allocations: 7.984 kB / 0.4943 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.1366, allocations: 39.94 kB / 0.4943 GB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.1366, allocations: 31.91 kB / 0.4944 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.1367, allocations: 7.938 kB / 0.4944 GB, free: 2.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006055/0.1373, allocations: 268.3 kB / 0.4946 GB, free: 2.105 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1373, allocations: 0 / 0.4946 GB, free: 2.105 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.1377, allocations: 63.94 kB / 0.4947 GB, free: 2.043 MB / 366.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.001118/0.1388, allocations: 1.08 MB / 0.4957 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.1395, allocations: 393 kB / 0.4961 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1395, allocations: 0 / 0.4961 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003849/0.1399, allocations: 262.4 kB / 0.4964 GB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.1402, allocations: 40.61 kB / 0.4964 GB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.1453, allocations: 3.18 MB / 0.4995 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1456, allocations: 0.7907 MB / 0.5003 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.1458, allocations: 58.28 kB / 0.5003 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.1459, allocations: 75.41 kB / 0.5004 GB, free: 12.01 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1459, allocations: 4 kB / 0.5004 GB, free: 12.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.1707, allocations: 5.798 MB / 0.5061 GB, free: 6.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.167/9.338, allocations: 20.55 kB / 0.5061 GB, free: 6.305 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --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)