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.001049/0.001049, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007391/0.007391, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.447/1.447, allocations: 223.2 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2225/0.2225, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003946, allocations: 8 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3895, allocations: 55.99 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002296/0.3919, allocations: 1.51 MB / 440.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3929, allocations: 0.6003 MB / 440.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.977e-05/0.393, allocations: 0 / 440.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.3933, allocations: 42.38 kB / 440.7 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000177/0.3935, allocations: 60.59 kB / 440.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002788/0.3938, allocations: 118.4 kB / 440.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.3941, allocations: 297.9 kB / 441.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3942, allocations: 45.2 kB / 441.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.3944, allocations: 108.2 kB / 441.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.3946, allocations: 141.9 kB / 441.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.3946, allocations: 18.81 kB / 441.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.555e-05/0.3946, allocations: 8.562 kB / 441.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.943e-05/0.3948, allocations: 81.14 kB / 441.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.885e-05/0.3948, allocations: 112.1 kB / 441.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.395, allocations: 228.4 kB / 441.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3951, allocations: 0 / 441.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3951, allocations: 2.969 kB / 441.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3951, allocations: 0 / 441.9 MB, free: 37.3 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.001566/0.3966, allocations: 0.6447 MB / 442.6 MB, free: 36.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3967, allocations: 17.09 kB / 442.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.3968, allocations: 30.06 kB / 442.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007374/0.3975, allocations: 374.1 kB / 443 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.3975, allocations: 7.094 kB / 443 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.3976, allocations: 13.5 kB / 443 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.3979, allocations: 188 kB / 443.2 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3979, allocations: 3.984 kB / 443.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.398, allocations: 4 kB / 443.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.398, allocations: 9.156 kB / 443.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.3983, allocations: 170.1 kB / 443.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009589/0.3992, allocations: 0.6531 MB / 444 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.3995, allocations: 210.7 kB / 444.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.3997, allocations: 124.3 kB / 444.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.3998, allocations: 7 kB / 444.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.3998, allocations: 37.5 kB / 444.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.3998, allocations: 3.938 kB / 444.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001356/0.4011, allocations: 0.5728 MB / 445 MB, free: 35.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.4012, allocations: 54.25 kB / 445 MB, free: 35.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006958/0.4019, allocations: 357.6 kB / 445.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4019, allocations: 25.7 kB / 445.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.402, allocations: 144.2 kB / 445.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.4021, allocations: 85.09 kB / 445.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.4021, allocations: 26.89 kB / 445.6 MB, free: 35.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.223e-05/0.4022, allocations: 335.8 kB / 446 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.4023, allocations: 90.81 kB / 446.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.4025, allocations: 95.88 kB / 446.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.4043, allocations: 0.6431 MB / 446.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4043, allocations: 0 / 446.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007295/0.4051, allocations: 415.4 kB / 447.2 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.4051, allocations: 9.906 kB / 447.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4051, allocations: 0 / 447.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000325/0.4054, allocations: 98.77 kB / 447.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.4056, allocations: 32.86 kB / 447.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.4073, allocations: 1.917 MB / 449.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003484/0.4076, allocations: 61.69 kB / 449.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.4076, allocations: 4 kB / 449.3 MB, free: 32.77 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] 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.0001989/0.4079, allocations: 170.8 kB / 449.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.136e-05/0.4079, allocations: 21.94 kB / 449.5 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.675e-05/0.408, allocations: 37.5 kB / 449.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.408, allocations: 6.75 kB / 449.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.408, allocations: 0 / 449.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.408, allocations: 0 / 449.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.4084, allocations: 341.2 kB / 449.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4084, allocations: 0 / 449.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.4086, allocations: 35.06 kB / 449.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001895/0.4088, allocations: 69.16 kB / 450 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.4088, allocations: 10.94 kB / 450 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.4099, allocations: 1.685 MB / 451.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4099, allocations: 0 / 451.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007338/0.4107, allocations: 0.546 MB / 452.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.4108, allocations: 106.9 kB / 452.3 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.4108, allocations: 9.938 kB / 452.3 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.4112, allocations: 47 kB / 452.4 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.154e-05/0.4112, allocations: 15.31 kB / 452.4 MB, free: 30.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.4113, allocations: 13.44 kB / 452.4 MB, free: 30.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006036/0.4119, allocations: 271.1 kB / 452.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4119, allocations: 0 / 452.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003792/0.4123, allocations: 62.06 kB / 452.7 MB, free: 30.23 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 (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.0001229/0.4124, allocations: 110.1 kB / 452.8 MB, free: 30.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006678/0.4131, allocations: 392.8 kB / 453.2 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4131, allocations: 0 / 453.2 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003387/0.4134, allocations: 262.9 kB / 453.5 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.4138, allocations: 40.95 kB / 453.5 MB, free: 29.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008716/0.4147, allocations: 0.6631 MB / 454.2 MB, free: 29.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.4149, allocations: 0.7711 MB / 455 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.4151, allocations: 57.14 kB / 455 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.4152, allocations: 22.25 kB / 455 MB, free: 28.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4152, allocations: 0 / 455 MB, free: 28.66 MB / 350.1 MB Notification: Performance of Templates: time 0.006019/0.4212, allocations: 2.83 MB / 457.9 MB, free: 28.48 MB / 350.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)