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: translateModel(AES.Coursework.Typical_control_structures.Smith_predictor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Smith_predictor") translateModel(AES.Coursework.Typical_control_structures.Smith_predictor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Smith_predictor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005927/0.005927, allocations: 107.5 kB / 15.74 MB, free: 6.035 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.001284/0.001284, allocations: 195.6 kB / 16.67 MB, free: 5.969 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2079/0.2079, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 58.56 kB / 437.1 MB, free: 33.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.09907, allocations: 54.98 MB / 492 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003034/0.1022, allocations: 1.809 MB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1034, allocations: 0.6118 MB / 494.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1036, allocations: 4 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.1039, allocations: 51.62 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.1041, allocations: 67.67 kB / 494.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.1045, allocations: 123.8 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003493/0.1048, allocations: 311.4 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.105, allocations: 53.88 kB / 495 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1052, allocations: 135.6 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.1054, allocations: 155.5 kB / 495.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.922e-05/0.1055, allocations: 20 kB / 495.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.173e-05/0.1055, allocations: 20 kB / 495.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.1057, allocations: 95.72 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.1058, allocations: 111.3 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.106, allocations: 239.1 kB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.106, allocations: 4 kB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1061, allocations: 0 / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1061, allocations: 0 / 495.8 MB, free: 13.39 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.001587/0.1077, allocations: 0.6777 MB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1077, allocations: 12.03 kB / 496.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.1078, allocations: 24.66 kB / 496.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008323/0.1086, allocations: 358.6 kB / 496.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.1086, allocations: 20.38 kB / 496.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.1087, allocations: 12.38 kB / 496.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.109, allocations: 186.6 kB / 497.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1091, allocations: 4 kB / 497.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1091, allocations: 7.938 kB / 497.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1091, allocations: 4 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.1094, allocations: 171.8 kB / 497.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1105, allocations: 0.6524 MB / 497.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.1109, allocations: 215.8 kB / 498.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.111, allocations: 116.8 kB / 498.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.1111, allocations: 4.375 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1111, allocations: 42.48 kB / 498.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.1111, allocations: 0 / 498.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001382/0.1125, allocations: 0.5705 MB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.1126, allocations: 59.41 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000718/0.1133, allocations: 344.8 kB / 499.3 MB, free: 9.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.1133, allocations: 29.7 kB / 499.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1134, allocations: 144.4 kB / 499.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.1135, allocations: 86.77 kB / 499.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/0.1136, allocations: 45.7 kB / 499.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1137, allocations: 334.8 kB / 499.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.1139, allocations: 96.17 kB / 500 MB, free: 8.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.114, allocations: 92.41 kB / 0.4883 GB, free: 8.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.1159, allocations: 0.6272 MB / 0.489 GB, free: 8.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1159, allocations: 0 / 0.489 GB, free: 8.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007195/0.1166, allocations: 419.2 kB / 0.4894 GB, free: 7.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1166, allocations: 6.344 kB / 0.4894 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1166, allocations: 4 kB / 0.4894 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.117, allocations: 108.7 kB / 0.4895 GB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.1171, allocations: 27.98 kB / 0.4895 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.1191, allocations: 2.088 MB / 0.4915 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.1195, allocations: 51.88 kB / 0.4916 GB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1195, allocations: 8 kB / 0.4916 GB, free: 5.414 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.0002077/0.1197, allocations: 171.1 kB / 0.4918 GB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.1198, allocations: 23.66 kB / 0.4918 GB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.778e-05/0.1199, allocations: 38.17 kB / 0.4918 GB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1199, allocations: 4 kB / 0.4918 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1199, allocations: 0 / 0.4918 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1199, allocations: 3.938 kB / 0.4918 GB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.1203, allocations: 341.4 kB / 0.4922 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1203, allocations: 4 kB / 0.4922 GB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.1205, allocations: 35.97 kB / 0.4922 GB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001951/0.1207, allocations: 76.73 kB / 0.4923 GB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.1207, allocations: 11.98 kB / 0.4923 GB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/0.1222, allocations: 1.846 MB / 0.4941 GB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1222, allocations: 0 / 0.4941 GB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008013/0.1231, allocations: 0.5452 MB / 0.4946 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.942e-05/0.1231, allocations: 108.9 kB / 0.4947 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.1232, allocations: 4 kB / 0.4947 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/0.1235, allocations: 39.94 kB / 0.4948 GB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.703e-05/0.1236, allocations: 23.97 kB / 0.4948 GB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.1236, allocations: 8.25 kB / 0.4948 GB, free: 1.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006051/0.1242, allocations: 272.3 kB / 0.495 GB, free: 1.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1242, allocations: 0 / 0.495 GB, free: 1.645 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000383/0.1246, allocations: 59.94 kB / 0.4951 GB, free: 1.586 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.0001176/0.1248, allocations: 107.2 kB / 0.4952 GB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006755/0.1254, allocations: 386.4 kB / 0.4956 GB, free: 1.082 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1255, allocations: 3.938 kB / 0.4956 GB, free: 1.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.1258, allocations: 258.5 kB / 0.4958 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.1262, allocations: 58.66 kB / 0.4959 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/0.1271, allocations: 0.5579 MB / 0.4964 GB, free: 176 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1275, allocations: 0.7791 MB / 0.4972 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.1276, allocations: 53.91 kB / 0.4972 GB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.606e-05/0.1277, allocations: 23.42 kB / 0.4973 GB, free: 15.29 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.1277, allocations: 0 / 0.4973 GB, free: 15.29 MB / 382.1 MB Notification: Performance of Templates: time 0.006473/0.1342, allocations: 3.184 MB / 0.5004 GB, free: 12.11 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Smith_predictor -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1)