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.001201/0.001201, allocations: 111.1 kB / 15.99 MB, free: 5.91 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.001188/0.001188, allocations: 193.1 kB / 16.91 MB, free: 5.754 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.231/1.231, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08525/0.08525, allocations: 22.31 MB / 313.1 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 65.45 kB / 380.9 MB, free: 41.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07487/0.0761, allocations: 54.96 MB / 435.9 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002845/0.07898, allocations: 1.858 MB / 437.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009837/0.07998, allocations: 0.6079 MB / 438.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.0801, allocations: 4 kB / 438.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.0804, allocations: 35.81 kB / 438.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.0806, allocations: 63.75 kB / 438.4 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.08091, allocations: 115.8 kB / 438.5 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.08124, allocations: 319.4 kB / 438.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.08137, allocations: 50.11 kB / 438.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.08155, allocations: 131.6 kB / 439 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.08177, allocations: 163.4 kB / 439.2 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.08182, allocations: 20 kB / 439.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.546e-05/0.08187, allocations: 20 kB / 439.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.08198, allocations: 99.7 kB / 439.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.664e-05/0.08208, allocations: 99.39 kB / 439.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.08226, allocations: 179.6 kB / 439.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.08227, allocations: 0 / 439.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08228, allocations: 0 / 439.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.08229, allocations: 0 / 439.6 MB, free: 9.586 MB / 318.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.001619/0.08391, allocations: 0.6855 MB / 440.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.08395, allocations: 12.03 kB / 440.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.08402, allocations: 28.56 kB / 440.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007501/0.08478, allocations: 362.6 kB / 440.7 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.08481, allocations: 8.375 kB / 440.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.08485, allocations: 12.38 kB / 440.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.08514, allocations: 186.4 kB / 440.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.08517, allocations: 0 / 440.9 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.08519, allocations: 4 kB / 440.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.0852, allocations: 4 kB / 440.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.0855, allocations: 171.9 kB / 441.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009921/0.0865, allocations: 0.6523 MB / 441.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.08682, allocations: 230.3 kB / 441.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.087, allocations: 112.8 kB / 442.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.08704, allocations: 4.375 kB / 442.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.08707, allocations: 42.5 kB / 442.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.08707, allocations: 0 / 442.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001398/0.08848, allocations: 0.5697 MB / 442.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.08852, allocations: 55.41 kB / 442.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007098/0.08924, allocations: 352.8 kB / 443.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.08928, allocations: 29.7 kB / 443.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.503e-05/0.08936, allocations: 144.4 kB / 443.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.08942, allocations: 66.92 kB / 443.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.0895, allocations: 45.7 kB / 443.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.08961, allocations: 334.8 kB / 443.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.08977, allocations: 96.11 kB / 443.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.08991, allocations: 93.72 kB / 443.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.0918, allocations: 0.6374 MB / 444.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.09182, allocations: 0 / 444.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007284/0.09255, allocations: 422.7 kB / 444.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.09257, allocations: 8 kB / 444.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.09258, allocations: 0 / 444.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003106/0.0929, allocations: 104.7 kB / 445 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.09306, allocations: 35.92 kB / 445.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.09495, allocations: 2.088 MB / 447.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.0953, allocations: 55.77 kB / 447.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.09532, allocations: 4 kB / 447.2 MB, free: 1.605 MB / 318.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.0001758/0.0955, allocations: 174 kB / 447.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.176e-05/0.09556, allocations: 35.58 kB / 447.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.612e-05/0.09564, allocations: 34.19 kB / 447.4 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.09565, allocations: 8 kB / 447.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.09566, allocations: 0 / 447.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.09567, allocations: 3.984 kB / 447.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003336/0.09601, allocations: 337.4 kB / 447.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.09602, allocations: 0 / 447.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.09622, allocations: 31.92 kB / 447.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.09643, allocations: 72.78 kB / 447.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.09646, allocations: 4 kB / 447.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.09787, allocations: 1.858 MB / 449.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.09788, allocations: 0 / 449.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.09867, allocations: 0.5426 MB / 450.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.747e-05/0.09876, allocations: 112.8 kB / 450.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.0988, allocations: 4.062 kB / 450.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003655/0.09917, allocations: 47.92 kB / 450.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.09923, allocations: 15.92 kB / 450.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.09925, allocations: 11.94 kB / 450.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005964/0.09985, allocations: 272.3 kB / 450.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09986, allocations: 0 / 450.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.1002, allocations: 56 kB / 450.8 MB, free: 13.77 MB / 334.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.0001015/0.1003, allocations: 107.2 kB / 450.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.101, allocations: 414.4 kB / 451.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.101, allocations: 0 / 451.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003612/0.1014, allocations: 254.5 kB / 451.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.1017, allocations: 37.78 kB / 451.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009075/0.1026, allocations: 0.6897 MB / 452.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1029, allocations: 0.7752 MB / 453.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.6e-05/0.103, allocations: 23.42 kB / 453.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.103, allocations: 0 / 453.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of Templates: time 0.005345/0.1084, allocations: 3.832 MB / 456.9 MB, free: 7.562 MB / 334.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)