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.001506/0.001506, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001833/0.001833, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.335/1.335, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1897/0.1897, allocations: 22.36 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.91 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2958, allocations: 54.94 MB / 435.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002827/0.2987, allocations: 1.862 MB / 436.9 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008576/0.2996, allocations: 0.6143 MB / 437.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.46e-05/0.2997, allocations: 2.75 kB / 437.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.3, allocations: 41.31 kB / 437.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.3001, allocations: 64.05 kB / 437.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.3004, allocations: 107.8 kB / 437.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.3006, allocations: 301.3 kB / 438 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.3007, allocations: 50.64 kB / 438.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.3009, allocations: 114.7 kB / 438.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.3011, allocations: 154.4 kB / 438.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.3011, allocations: 11.47 kB / 438.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.475e-05/0.3012, allocations: 10.84 kB / 438.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3013, allocations: 91.08 kB / 438.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.824e-05/0.3014, allocations: 97.88 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.3016, allocations: 232.6 kB / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3016, allocations: 0 / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.3016, allocations: 4 kB / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3016, allocations: 0 / 438.8 MB, free: 37.21 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.001487/0.3031, allocations: 0.6755 MB / 439.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3031, allocations: 21.47 kB / 439.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.646e-05/0.3032, allocations: 28.91 kB / 439.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006908/0.3039, allocations: 365.3 kB / 439.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.3039, allocations: 9.906 kB / 439.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.304, allocations: 12.16 kB / 439.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.3042, allocations: 181 kB / 440.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3043, allocations: 0 / 440.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.3043, allocations: 10.78 kB / 440.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3043, allocations: 2.812 kB / 440.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.3046, allocations: 173.7 kB / 440.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000895/0.3055, allocations: 0.6516 MB / 440.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.3058, allocations: 212.9 kB / 441.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.3059, allocations: 115.3 kB / 441.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.306, allocations: 6.547 kB / 441.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.306, allocations: 41.06 kB / 441.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.306, allocations: 0 / 441.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001292/0.3073, allocations: 0.573 MB / 441.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.3073, allocations: 54.41 kB / 441.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006187/0.3079, allocations: 351 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.308, allocations: 29.7 kB / 442.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/0.308, allocations: 150.6 kB / 442.4 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.3081, allocations: 75.34 kB / 442.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.3082, allocations: 42.36 kB / 442.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.3082, allocations: 338.5 kB / 442.9 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3084, allocations: 90.69 kB / 442.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.3085, allocations: 100.2 kB / 443 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.3103, allocations: 0.6379 MB / 443.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3103, allocations: 0 / 443.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006579/0.311, allocations: 412.3 kB / 444.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.311, allocations: 9.562 kB / 444.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.311, allocations: 0 / 444.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003064/0.3113, allocations: 103.8 kB / 444.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3115, allocations: 36.8 kB / 444.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.313, allocations: 1.902 MB / 446.1 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3134, allocations: 57.98 kB / 446.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.3134, allocations: 5.75 kB / 446.2 MB, free: 32.67 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.0001808/0.3136, allocations: 185.2 kB / 446.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.3136, allocations: 23.41 kB / 446.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.884e-05/0.3137, allocations: 39 kB / 446.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3137, allocations: 2.969 kB / 446.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3137, allocations: 2.938 kB / 446.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3137, allocations: 3.188 kB / 446.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.314, allocations: 337.7 kB / 446.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.314, allocations: 3.531 kB / 446.8 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.3142, allocations: 28.36 kB / 446.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/0.3144, allocations: 78.84 kB / 446.9 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.3145, allocations: 10.66 kB / 446.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.3156, allocations: 1.673 MB / 448.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3156, allocations: 0 / 448.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/0.3163, allocations: 0.5488 MB / 449.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.3163, allocations: 110.7 kB / 449.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3164, allocations: 6.906 kB / 449.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.3167, allocations: 46.55 kB / 449.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.3168, allocations: 16.94 kB / 449.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.3168, allocations: 6.125 kB / 449.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005568/0.3174, allocations: 274.1 kB / 449.6 MB, free: 30.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3174, allocations: 0 / 449.6 MB, free: 30.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003701/0.3178, allocations: 59.22 kB / 449.6 MB, free: 30.13 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.358e-05/0.3179, allocations: 104.8 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005922/0.3185, allocations: 396.7 kB / 450.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3185, allocations: 0 / 450.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.3188, allocations: 256.2 kB / 450.4 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3192, allocations: 38.56 kB / 450.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008384/0.3201, allocations: 0.6493 MB / 451 MB, free: 29.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.3203, allocations: 0.7763 MB / 451.8 MB, free: 28.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.3204, allocations: 56.81 kB / 451.9 MB, free: 28.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.3205, allocations: 21.94 kB / 451.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3205, allocations: 0 / 451.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of Templates: time 0.0053/0.3258, allocations: 2.894 MB / 454.8 MB, free: 28.35 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)