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.001153/0.001153, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001194/0.001194, allocations: 193 kB / 16.25 MB, free: 6.621 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.325/1.325, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1982/0.1982, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2741, allocations: 54.95 MB / 435.2 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002709/0.2768, allocations: 1.863 MB / 437.1 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009419/0.2778, allocations: 0.6018 MB / 437.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.842e-05/0.2779, allocations: 2.719 kB / 437.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003315/0.2782, allocations: 49.5 kB / 437.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.2784, allocations: 57.3 kB / 437.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.2787, allocations: 112.1 kB / 437.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.279, allocations: 315.7 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.2792, allocations: 50.38 kB / 438.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.2793, allocations: 133.4 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.2795, allocations: 166 kB / 438.6 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.2796, allocations: 20.41 kB / 438.6 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.207e-05/0.2796, allocations: 21.09 kB / 438.6 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.638e-05/0.2797, allocations: 92.45 kB / 438.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.846e-05/0.2798, allocations: 107.8 kB / 438.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.28, allocations: 239.4 kB / 439 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.28, allocations: 0 / 439 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.28, allocations: 0 / 439 MB, free: 37.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.28, allocations: 6.594 kB / 439 MB, free: 37.35 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.001499/0.2815, allocations: 0.6804 MB / 439.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2816, allocations: 11.88 kB / 439.7 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.2816, allocations: 26.88 kB / 439.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000715/0.2824, allocations: 371.9 kB / 440.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.2824, allocations: 9.938 kB / 440.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.2824, allocations: 16.53 kB / 440.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.2827, allocations: 179.4 kB / 440.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.2828, allocations: 0 / 440.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.2828, allocations: 10.81 kB / 440.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2828, allocations: 6.562 kB / 440.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.2831, allocations: 167.9 kB / 440.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009647/0.2841, allocations: 0.648 MB / 441.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.2844, allocations: 216.1 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.2845, allocations: 121.7 kB / 441.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2846, allocations: 384 / 441.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.2846, allocations: 41.44 kB / 441.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.022e-06/0.2846, allocations: 0 / 441.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001285/0.2859, allocations: 0.5679 MB / 442.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.261e-05/0.2859, allocations: 62.25 kB / 442.1 MB, free: 35.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.2866, allocations: 349.2 kB / 442.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.2866, allocations: 29.7 kB / 442.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.2867, allocations: 150.5 kB / 442.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.257e-05/0.2867, allocations: 74.12 kB / 442.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.2868, allocations: 46.84 kB / 442.8 MB, free: 35.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.985e-05/0.2869, allocations: 331.7 kB / 443.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.287, allocations: 91.11 kB / 443.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.2872, allocations: 100.4 kB / 443.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.2891, allocations: 0.6342 MB / 443.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2891, allocations: 0 / 443.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007475/0.2899, allocations: 417.4 kB / 444.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.2899, allocations: 13.72 kB / 444.3 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2899, allocations: 3.984 kB / 444.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003296/0.2902, allocations: 99.95 kB / 444.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.2904, allocations: 31.88 kB / 444.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/0.2922, allocations: 2.088 MB / 446.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.2926, allocations: 56.08 kB / 446.6 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.2926, allocations: 2.938 kB / 446.6 MB, free: 32.63 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.0001847/0.2928, allocations: 177.2 kB / 446.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.2929, allocations: 25.38 kB / 446.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.406e-05/0.2929, allocations: 39.17 kB / 446.9 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2929, allocations: 3.438 kB / 446.9 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.293, allocations: 0 / 446.9 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.293, allocations: 7.281 kB / 446.9 MB, free: 32.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.2933, allocations: 343.4 kB / 447.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2933, allocations: 0 / 447.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.2935, allocations: 31.33 kB / 447.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.2937, allocations: 66.45 kB / 447.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.2937, allocations: 12.17 kB / 447.3 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.2949, allocations: 1.853 MB / 449.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2949, allocations: 6.312 kB / 449.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007219/0.2956, allocations: 0.5357 MB / 449.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.2957, allocations: 104.4 kB / 449.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.2957, allocations: 6.688 kB / 449.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/0.2961, allocations: 52.8 kB / 449.9 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/0.2962, allocations: 22.52 kB / 449.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.2962, allocations: 6.562 kB / 449.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005607/0.2968, allocations: 273.9 kB / 450.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2968, allocations: 0 / 450.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000382/0.2972, allocations: 57.22 kB / 450.2 MB, free: 29.93 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 9.598e-05/0.2973, allocations: 107.8 kB / 450.3 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006439/0.2979, allocations: 418.9 kB / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2979, allocations: 0 / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.2983, allocations: 255.6 kB / 451 MB, free: 29.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.2987, allocations: 47.7 kB / 451 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008392/0.2995, allocations: 0.6425 MB / 451.7 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.2997, allocations: 0.7758 MB / 452.5 MB, free: 28.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.2999, allocations: 55.88 kB / 452.5 MB, free: 28.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.2999, allocations: 18.84 kB / 452.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2999, allocations: 0 / 452.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of Templates: time 0.006015/0.306, allocations: 3.071 MB / 455.6 MB, free: 28.12 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)