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.004754/0.004754, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.0012/0.0012, allocations: 197.5 kB / 16.67 MB, free: 5.922 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1932/0.1932, allocations: 22.35 MB / 312.9 MB, free: 12.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 64.44 kB / 436.6 MB, free: 34.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09201, allocations: 54.95 MB / 491.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002283/0.09433, allocations: 1.814 MB / 493.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.09542, allocations: 0.6082 MB / 493.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.341e-05/0.09551, allocations: 7.938 kB / 494 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003173/0.09584, allocations: 51.69 kB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.09604, allocations: 59.69 kB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.09639, allocations: 131.7 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.09674, allocations: 311.4 kB / 494.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.0969, allocations: 61.75 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.09707, allocations: 123.6 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.09733, allocations: 163.4 kB / 494.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.09739, allocations: 20 kB / 494.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.051e-05/0.09744, allocations: 20 kB / 494.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.09757, allocations: 91.78 kB / 495 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.09769, allocations: 107.3 kB / 495.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000271/0.09796, allocations: 242.9 kB / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09798, allocations: 4 kB / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09798, allocations: 0 / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.098, allocations: 0 / 495.3 MB, free: 13.89 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.001652/0.09965, allocations: 0.6815 MB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.09969, allocations: 8.031 kB / 496 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.722e-05/0.09976, allocations: 54.69 kB / 496.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.09982, allocations: 36.73 kB / 496.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000832/0.1007, allocations: 350.9 kB / 496.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.1007, allocations: 16.31 kB / 496.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.1007, allocations: 24.34 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1011, allocations: 182.5 kB / 496.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1011, allocations: 3.938 kB / 496.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1011, allocations: 8 kB / 496.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1011, allocations: 4 kB / 496.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003223/0.1014, allocations: 167.9 kB / 496.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1025, allocations: 0.6564 MB / 497.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.1029, allocations: 218.4 kB / 497.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.1031, allocations: 114.1 kB / 497.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1031, allocations: 8.375 kB / 497.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.1032, allocations: 38.48 kB / 497.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.1032, allocations: 0 / 497.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001435/0.1046, allocations: 0.5784 MB / 498.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1047, allocations: 59.41 kB / 498.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007384/0.1054, allocations: 344.8 kB / 498.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1054, allocations: 25.7 kB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.617e-05/0.1055, allocations: 140.5 kB / 499 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.055e-05/0.1056, allocations: 91.2 kB / 499.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.593e-05/0.1057, allocations: 45.7 kB / 499.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1059, allocations: 338.8 kB / 499.5 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.106, allocations: 88.17 kB / 499.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1062, allocations: 96.41 kB / 499.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/0.1081, allocations: 0.6258 MB / 0.4885 GB, free: 8.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1081, allocations: 0 / 0.4885 GB, free: 8.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007972/0.1089, allocations: 423.4 kB / 0.4889 GB, free: 8.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1089, allocations: 5.875 kB / 0.4889 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1089, allocations: 0 / 0.4889 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003273/0.1093, allocations: 108.8 kB / 0.489 GB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1094, allocations: 31.92 kB / 0.4891 GB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.1116, allocations: 2.092 MB / 0.4911 GB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003401/0.1119, allocations: 55.92 kB / 0.4912 GB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.112, allocations: 4 kB / 0.4912 GB, free: 5.836 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.000197/0.1122, allocations: 168.7 kB / 0.4913 GB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.1122, allocations: 23.8 kB / 0.4914 GB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.753e-05/0.1123, allocations: 42.17 kB / 0.4914 GB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.1123, allocations: 4 kB / 0.4914 GB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1123, allocations: 7.875 kB / 0.4914 GB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1124, allocations: 0 / 0.4914 GB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.1127, allocations: 345.3 kB / 0.4917 GB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1127, allocations: 3.984 kB / 0.4917 GB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.1129, allocations: 23.98 kB / 0.4918 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.1132, allocations: 72.8 kB / 0.4918 GB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.1132, allocations: 11.98 kB / 0.4919 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.115, allocations: 1.85 MB / 0.4937 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.115, allocations: 0 / 0.4937 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000849/0.1159, allocations: 0.539 MB / 0.4942 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.242e-05/0.116, allocations: 112.8 kB / 0.4943 GB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.116, allocations: 4.062 kB / 0.4943 GB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.1164, allocations: 43.94 kB / 0.4943 GB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.355e-05/0.1165, allocations: 19.97 kB / 0.4944 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.1165, allocations: 11.94 kB / 0.4944 GB, free: 2.332 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006393/0.1171, allocations: 276.3 kB / 0.4946 GB, free: 2.062 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1171, allocations: 0 / 0.4946 GB, free: 2.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.1175, allocations: 59.94 kB / 0.4947 GB, free: 2.004 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.001156/0.1187, allocations: 1.09 MB / 0.4958 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006868/0.1194, allocations: 394.7 kB / 0.4961 GB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1194, allocations: 0 / 0.4961 GB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003955/0.1198, allocations: 261.1 kB / 0.4964 GB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.1201, allocations: 36.48 kB / 0.4964 GB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005318/0.1255, allocations: 3.214 MB / 0.4996 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.1259, allocations: 0.7675 MB / 0.5003 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.126, allocations: 58.16 kB / 0.5004 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1261, allocations: 75.41 kB / 0.5004 GB, free: 11.96 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1261, allocations: 0 / 0.5004 GB, free: 11.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5372/0.6634, allocations: 5.805 MB / 0.5061 GB, free: 6.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.952/10.62, allocations: 20.33 kB / 0.5061 GB, free: 6.246 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)