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.001048/0.001047, allocations: 98.41 kB / 16.02 MB, free: 76 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.001244/0.001244, allocations: 184.3 kB / 16.92 MB, free: 6.895 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.347/1.347, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2019/0.2019, allocations: 22.34 MB / 314.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003383, allocations: 11.98 kB / 383.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2481, allocations: 55.98 MB / 439.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.001405/0.2495, allocations: 1.514 MB / 440.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.2504, allocations: 0.6018 MB / 441.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.2504, allocations: 2.969 kB / 441.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.2507, allocations: 41.44 kB / 441.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.2509, allocations: 63.94 kB / 441.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2511, allocations: 113.4 kB / 441.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.2514, allocations: 302 kB / 441.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.2515, allocations: 51.88 kB / 441.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.2516, allocations: 102 kB / 442 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.2518, allocations: 144.8 kB / 442.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.2519, allocations: 8.875 kB / 442.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.551e-05/0.2519, allocations: 8.625 kB / 442.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.252, allocations: 94.52 kB / 442.3 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.107e-05/0.2521, allocations: 107.8 kB / 442.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.2522, allocations: 176.6 kB / 442.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2522, allocations: 0 / 442.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2522, allocations: 3.938 kB / 442.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2522, allocations: 0 / 442.5 MB, free: 37.4 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.001357/0.2536, allocations: 0.6492 MB / 443.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.2536, allocations: 13.75 kB / 443.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.2537, allocations: 26.09 kB / 443.2 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007006/0.2544, allocations: 372.7 kB / 443.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2544, allocations: 18.19 kB / 443.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.2545, allocations: 13.28 kB / 443.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.2547, allocations: 186.6 kB / 443.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2548, allocations: 0 / 443.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.2548, allocations: 6.719 kB / 443.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2548, allocations: 2.781 kB / 443.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.2551, allocations: 169.7 kB / 444 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009216/0.256, allocations: 0.659 MB / 444.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.2563, allocations: 212.2 kB / 444.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.2564, allocations: 118.5 kB / 445 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.2565, allocations: 8.297 kB / 445 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.2565, allocations: 37.5 kB / 445 MB, free: 35.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.2565, allocations: 4 kB / 445 MB, free: 35.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001262/0.2578, allocations: 0.5739 MB / 445.6 MB, free: 35.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.924e-05/0.2578, allocations: 54.25 kB / 445.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006614/0.2585, allocations: 355.4 kB / 446 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2585, allocations: 32.89 kB / 446 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.301e-05/0.2586, allocations: 143.6 kB / 446.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.2586, allocations: 76.77 kB / 446.2 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.2587, allocations: 26.44 kB / 446.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.2587, allocations: 337.2 kB / 446.6 MB, free: 34.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.2588, allocations: 94.62 kB / 446.7 MB, free: 34.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.259, allocations: 94.22 kB / 446.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.2608, allocations: 0.638 MB / 447.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2608, allocations: 0 / 447.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006652/0.2615, allocations: 415.7 kB / 447.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2615, allocations: 5.5 kB / 447.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2615, allocations: 0 / 447.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.2618, allocations: 114.4 kB / 447.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.262, allocations: 28.25 kB / 448 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.2634, allocations: 1.917 MB / 449.9 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.2638, allocations: 60.19 kB / 449.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2638, allocations: 5.562 kB / 449.9 MB, free: 32.86 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.0001636/0.264, allocations: 164.8 kB / 450.1 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.264, allocations: 31.16 kB / 450.1 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.006e-05/0.2641, allocations: 42.72 kB / 450.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2641, allocations: 7.406 kB / 450.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2641, allocations: 2.906 kB / 450.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2642, allocations: 0 / 450.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.2644, allocations: 334.9 kB / 450.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2644, allocations: 0 / 450.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.2646, allocations: 31.47 kB / 450.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.2648, allocations: 67.66 kB / 450.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.2649, allocations: 17.81 kB / 450.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.2659, allocations: 1.674 MB / 452.3 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2659, allocations: 0 / 452.3 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006921/0.2666, allocations: 0.5403 MB / 452.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.2667, allocations: 107.1 kB / 452.9 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.2667, allocations: 15.91 kB / 453 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.2671, allocations: 47.48 kB / 453 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.2672, allocations: 19.17 kB / 453 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2672, allocations: 13.34 kB / 453 MB, free: 30.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005746/0.2678, allocations: 271.2 kB / 453.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2678, allocations: 0 / 453.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.2681, allocations: 64.34 kB / 453.4 MB, free: 30.33 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 8.881e-05/0.2682, allocations: 107.3 kB / 453.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005686/0.2688, allocations: 389.1 kB / 453.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2688, allocations: 0 / 453.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.2692, allocations: 263.3 kB / 454.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.2695, allocations: 31.56 kB / 454.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007939/0.2703, allocations: 0.7055 MB / 454.8 MB, free: 29.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.2705, allocations: 0.7744 MB / 455.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.274e-05/0.2706, allocations: 22.44 kB / 455.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2706, allocations: 0 / 455.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of Templates: time 0.005151/0.2758, allocations: 3.788 MB / 459.4 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)