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.0009633/0.0009635, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001306/0.001306, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2369/0.2369, allocations: 22.35 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 8 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3708, allocations: 55.97 MB / 437.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002634/0.3736, allocations: 1.479 MB / 439.4 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.375, allocations: 0.586 MB / 440 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.3751, allocations: 0 / 440 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004253/0.3756, allocations: 43.52 kB / 440 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.3758, allocations: 55.47 kB / 440.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3762, allocations: 104.8 kB / 440.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.3766, allocations: 269.9 kB / 440.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.3768, allocations: 35.5 kB / 440.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.3771, allocations: 137 kB / 440.6 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.3774, allocations: 150.2 kB / 440.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.942e-05/0.3774, allocations: 12.03 kB / 440.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.769e-05/0.3775, allocations: 10.47 kB / 440.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.3776, allocations: 75.06 kB / 440.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.684e-05/0.3777, allocations: 55.98 kB / 440.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.3779, allocations: 166.7 kB / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3779, allocations: 0 / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.378, allocations: 0 / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.378, allocations: 0 / 441.1 MB, free: 37.2 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.001767/0.3797, allocations: 0.6556 MB / 441.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3798, allocations: 11.75 kB / 441.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.281e-05/0.3799, allocations: 22.12 kB / 441.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009164/0.3808, allocations: 372.8 kB / 442.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.3809, allocations: 13.28 kB / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.3809, allocations: 12.5 kB / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.3813, allocations: 176.8 kB / 442.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3814, allocations: 6.594 kB / 442.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.3814, allocations: 7.953 kB / 442.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3814, allocations: 5.219 kB / 442.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004161/0.3818, allocations: 172.1 kB / 442.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.3831, allocations: 0.6464 MB / 443.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.3835, allocations: 220.3 kB / 443.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.3838, allocations: 117.5 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.972e-05/0.3838, allocations: 3.719 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.3839, allocations: 34.62 kB / 443.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/0.3839, allocations: 0 / 443.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001427/0.3853, allocations: 0.5842 MB / 444.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.3853, allocations: 58.16 kB / 444.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006091/0.386, allocations: 344.5 kB / 444.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.386, allocations: 25.7 kB / 444.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/0.3861, allocations: 147.3 kB / 444.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.3861, allocations: 82.42 kB / 444.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.3862, allocations: 0 / 444.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.3862, allocations: 341.4 kB / 445.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.3864, allocations: 93.88 kB / 445.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.3865, allocations: 90.94 kB / 445.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.3867, allocations: 110.8 kB / 445.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3867, allocations: 2.875 kB / 445.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006329/0.3873, allocations: 421 kB / 445.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3873, allocations: 8.625 kB / 445.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3874, allocations: 3.938 kB / 445.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.3878, allocations: 101.2 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.388, allocations: 33.16 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.3901, allocations: 1.921 MB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.3906, allocations: 52.36 kB / 447.9 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.3906, allocations: 11 kB / 447.9 MB, free: 32.8 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] Pr.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] Mr.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002366/0.3909, allocations: 162 kB / 448.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/0.391, allocations: 27.3 kB / 448.1 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.3911, allocations: 39.23 kB / 448.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3911, allocations: 0 / 448.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3911, allocations: 10.72 kB / 448.1 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3911, allocations: 0 / 448.1 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004319/0.3916, allocations: 340 kB / 448.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3916, allocations: 0 / 448.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.3918, allocations: 35.7 kB / 448.5 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/0.3921, allocations: 65.95 kB / 448.6 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.3922, allocations: 11.02 kB / 448.6 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.3938, allocations: 1.679 MB / 450.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3938, allocations: 0 / 450.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3948, allocations: 0.5412 MB / 450.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.3949, allocations: 105 kB / 450.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.395, allocations: 7.531 kB / 450.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.3954, allocations: 48.2 kB / 451 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.3955, allocations: 15.27 kB / 451 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.3955, allocations: 10.05 kB / 451 MB, free: 30.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007286/0.3963, allocations: 274.9 kB / 451.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3963, allocations: 3.938 kB / 451.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000603/0.3969, allocations: 63.16 kB / 451.3 MB, free: 30.28 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001304/0.397, allocations: 104.2 kB / 451.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008224/0.3979, allocations: 391.6 kB / 451.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3979, allocations: 0 / 451.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.3983, allocations: 255.1 kB / 452.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.3989, allocations: 39.64 kB / 452.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.4001, allocations: 0.6403 MB / 452.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.4003, allocations: 0.773 MB / 453.5 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.4005, allocations: 55.34 kB / 453.6 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.891e-05/0.4006, allocations: 18.5 kB / 453.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4006, allocations: 0 / 453.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of Templates: time 0.007705/0.4083, allocations: 2.692 MB / 456.3 MB, free: 28.55 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)