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.001087/0.001087, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001265/0.001265, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 239.9 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.221/0.221, allocations: 22.34 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004726/0.000473, allocations: 15.98 kB / 381.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3832, allocations: 55.96 MB / 437.8 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.001775/0.385, allocations: 1.49 MB / 439.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008387/0.3858, allocations: 0.5789 MB / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.703e-05/0.3859, allocations: 4 kB / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.3863, allocations: 42.33 kB / 439.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.3865, allocations: 63.83 kB / 440 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.3867, allocations: 94.64 kB / 440.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.3869, allocations: 178.5 kB / 440.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.3871, allocations: 39.61 kB / 440.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.3873, allocations: 137.9 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.3875, allocations: 144.7 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.3875, allocations: 8.125 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.744e-05/0.3875, allocations: 8.438 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.452e-05/0.3876, allocations: 77.97 kB / 440.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.3877, allocations: 54.36 kB / 440.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.3878, allocations: 165.3 kB / 440.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.3879, allocations: 0 / 440.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3879, allocations: 0 / 440.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.3879, allocations: 0 / 440.9 MB, free: 37.5 MB / 350.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.001412/0.3893, allocations: 0.6619 MB / 441.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.3893, allocations: 6.281 kB / 441.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.3894, allocations: 25.56 kB / 441.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.3901, allocations: 363.6 kB / 441.9 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.3901, allocations: 9.188 kB / 441.9 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.3902, allocations: 15.28 kB / 441.9 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.3904, allocations: 176.7 kB / 442.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.3905, allocations: 3.984 kB / 442.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.3905, allocations: 11.14 kB / 442.1 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.3905, allocations: 6.969 kB / 442.1 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.3908, allocations: 170 kB / 442.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009829/0.3918, allocations: 0.655 MB / 442.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.3921, allocations: 221.6 kB / 443.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.3922, allocations: 11.19 kB / 443.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.3922, allocations: 33.72 kB / 443.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.3922, allocations: 0 / 443.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001251/0.3934, allocations: 0.5758 MB / 443.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.3935, allocations: 55.16 kB / 443.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.3941, allocations: 349.2 kB / 444.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.3941, allocations: 29.7 kB / 444.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.3942, allocations: 138.2 kB / 444.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.3943, allocations: 86.78 kB / 444.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.3943, allocations: 3.781 kB / 444.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.3943, allocations: 342.7 kB / 444.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.3945, allocations: 90.98 kB / 444.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3946, allocations: 87.2 kB / 444.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.3948, allocations: 112.7 kB / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3948, allocations: 0 / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006391/0.3954, allocations: 418.2 kB / 445.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3955, allocations: 12.09 kB / 445.5 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.3955, allocations: 3.125 kB / 445.5 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003283/0.3958, allocations: 106.1 kB / 445.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.396, allocations: 25.86 kB / 445.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.3975, allocations: 1.922 MB / 447.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.3979, allocations: 58 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.3979, allocations: 9.781 kB / 447.6 MB, free: 33.16 MB / 350.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] Pr.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] Mr.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.3982, allocations: 163.2 kB / 447.7 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.3982, allocations: 30.17 kB / 447.8 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.516e-05/0.3983, allocations: 39.31 kB / 447.8 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3983, allocations: 2.906 kB / 447.8 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.3983, allocations: 0 / 447.8 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3983, allocations: 0 / 447.8 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.3986, allocations: 336.1 kB / 448.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3987, allocations: 256 / 448.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.3989, allocations: 42.7 kB / 448.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.3991, allocations: 71.22 kB / 448.3 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.3991, allocations: 10.95 kB / 448.3 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.4002, allocations: 1.695 MB / 450 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4002, allocations: 0 / 450 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006906/0.4009, allocations: 0.5372 MB / 450.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.565e-05/0.401, allocations: 107.7 kB / 450.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.4011, allocations: 2.625 kB / 450.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.4015, allocations: 45.05 kB / 450.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.4015, allocations: 18.14 kB / 450.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.4016, allocations: 9.094 kB / 450.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006449/0.4022, allocations: 280 kB / 451 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4022, allocations: 0 / 451 MB, free: 30.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.4026, allocations: 57.38 kB / 451 MB, free: 30.63 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001049/0.4027, allocations: 108.7 kB / 451.1 MB, free: 30.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.4033, allocations: 384.8 kB / 451.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4034, allocations: 0 / 451.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.4037, allocations: 263.8 kB / 451.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.404, allocations: 32.78 kB / 451.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008579/0.4048, allocations: 0.6426 MB / 452.4 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.405, allocations: 0.7772 MB / 453.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.4051, allocations: 55.91 kB / 453.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.4052, allocations: 24.78 kB / 453.3 MB, free: 29.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4052, allocations: 0 / 453.3 MB, free: 29.08 MB / 350.1 MB Notification: Performance of Templates: time 0.005095/0.4103, allocations: 2.673 MB / 456 MB, free: 28.91 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: