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.001414/0.001414, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2292/0.2292, allocations: 22.36 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.91 kB / 380.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2945, allocations: 54.94 MB / 435.8 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.00233/0.2969, allocations: 1.809 MB / 437.6 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008328/0.2977, allocations: 0.6036 MB / 438.2 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.097e-05/0.2978, allocations: 2.875 kB / 438.2 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.2982, allocations: 60.55 kB / 438.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.2983, allocations: 62.59 kB / 438.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.2986, allocations: 122.1 kB / 438.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.2988, allocations: 310.2 kB / 438.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.299, allocations: 55.88 kB / 438.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.2991, allocations: 124.4 kB / 438.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.2993, allocations: 162.7 kB / 439.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.311e-05/0.2993, allocations: 23.97 kB / 439.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.477e-05/0.2994, allocations: 24.41 kB / 439.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.906e-05/0.2995, allocations: 93.02 kB / 439.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.961e-05/0.2996, allocations: 108.5 kB / 439.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.2997, allocations: 231.5 kB / 439.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2998, allocations: 0 / 439.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2998, allocations: 0 / 439.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2998, allocations: 0 / 439.5 MB, free: 37.46 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.001427/0.3012, allocations: 0.6926 MB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.3012, allocations: 11.5 kB / 440.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.597e-05/0.3013, allocations: 25.34 kB / 440.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.302, allocations: 368.7 kB / 440.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.302, allocations: 7.219 kB / 440.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.3021, allocations: 15.56 kB / 440.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.3023, allocations: 185 kB / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3023, allocations: 0 / 440.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.3024, allocations: 6.719 kB / 440.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3024, allocations: 2.938 kB / 440.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.3027, allocations: 175.8 kB / 441 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008829/0.3036, allocations: 0.6472 MB / 441.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.3039, allocations: 217.5 kB / 441.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3041, allocations: 122.2 kB / 442 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.3041, allocations: 3.281 kB / 442 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.832e-05/0.3041, allocations: 45.31 kB / 442 MB, free: 35.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.3041, allocations: 0 / 442 MB, free: 35.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001267/0.3054, allocations: 0.5708 MB / 442.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.3054, allocations: 54.28 kB / 442.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006448/0.3061, allocations: 353.5 kB / 443 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.3061, allocations: 29.7 kB / 443 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.3062, allocations: 146.6 kB / 443.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.3062, allocations: 74.47 kB / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.3063, allocations: 40.06 kB / 443.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.579e-05/0.3064, allocations: 345.5 kB / 443.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3065, allocations: 91.44 kB / 443.7 MB, free: 34.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.3067, allocations: 95.33 kB / 443.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.3084, allocations: 0.626 MB / 444.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3084, allocations: 7.219 kB / 444.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006413/0.309, allocations: 411.9 kB / 444.8 MB, free: 34.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.309, allocations: 9.266 kB / 444.8 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3091, allocations: 0 / 444.8 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003237/0.3094, allocations: 108.9 kB / 444.9 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.3096, allocations: 32.12 kB / 445 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.3117, allocations: 2.088 MB / 447.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.3121, allocations: 61.14 kB / 447.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.3121, allocations: 3.938 kB / 447.1 MB, free: 32.73 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.0002466/0.3123, allocations: 167.4 kB / 447.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.3124, allocations: 24 kB / 447.3 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.391e-05/0.3125, allocations: 42.19 kB / 447.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3125, allocations: 2.531 kB / 447.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3125, allocations: 0 / 447.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3125, allocations: 5.594 kB / 447.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003585/0.3129, allocations: 345.7 kB / 447.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3129, allocations: 0 / 447.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.3131, allocations: 35.14 kB / 447.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.3133, allocations: 69.31 kB / 447.8 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.3133, allocations: 6.844 kB / 447.8 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3146, allocations: 1.848 MB / 449.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3147, allocations: 128 / 449.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.3154, allocations: 0.5541 MB / 450.2 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/0.3154, allocations: 100.9 kB / 450.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.3154, allocations: 6.625 kB / 450.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.3158, allocations: 45.95 kB / 450.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.3159, allocations: 20.91 kB / 450.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3159, allocations: 13.88 kB / 450.4 MB, free: 30.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005763/0.3165, allocations: 267.6 kB / 450.7 MB, free: 30.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3165, allocations: 2.594 kB / 450.7 MB, free: 30.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.3169, allocations: 52.91 kB / 450.7 MB, free: 30.04 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.0001447/0.317, allocations: 118.1 kB / 450.8 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007485/0.3178, allocations: 409.9 kB / 451.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3178, allocations: 0 / 451.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.3182, allocations: 259.6 kB / 451.5 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.3186, allocations: 46.52 kB / 451.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008207/0.3194, allocations: 0.5752 MB / 452.1 MB, free: 29.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.3197, allocations: 0.7733 MB / 452.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.3198, allocations: 60.08 kB / 452.9 MB, free: 28.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.3198, allocations: 22.47 kB / 453 MB, free: 28.52 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3199, allocations: 0 / 453 MB, free: 28.52 MB / 350.1 MB Notification: Performance of Templates: time 0.006035/0.3259, allocations: 3.076 MB / 456 MB, free: 28.31 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)