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.001277/0.001277, allocations: 104.7 kB / 16.41 MB, free: 6.496 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.001315/0.001315, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09083/0.09083, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 54.95 MB / 492.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003105/0.1083, allocations: 1.802 MB / 494.5 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1096, allocations: 0.6196 MB / 495.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1097, allocations: 0 / 495.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000372/0.1101, allocations: 55.62 kB / 495.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.1104, allocations: 63.69 kB / 495.2 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.1108, allocations: 123.8 kB / 495.3 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.1112, allocations: 311.4 kB / 495.6 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1114, allocations: 53.83 kB / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.1116, allocations: 131.5 kB / 495.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.1119, allocations: 159.5 kB / 496 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.1119, allocations: 23.94 kB / 496 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.18e-05/0.112, allocations: 23.94 kB / 496 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.1121, allocations: 91.72 kB / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1123, allocations: 103.3 kB / 496.2 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.1125, allocations: 243.2 kB / 496.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1125, allocations: 4 kB / 496.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1126, allocations: 0 / 496.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1126, allocations: 0 / 496.4 MB, free: 0.9414 MB / 366.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.001678/0.1143, allocations: 0.6816 MB / 497.1 MB, free: 216 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1143, allocations: 8.031 kB / 497.1 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.792e-05/0.1144, allocations: 32.66 kB / 497.2 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008064/0.1152, allocations: 362.5 kB / 497.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.1152, allocations: 8.375 kB / 497.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.1153, allocations: 16.38 kB / 497.5 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.1156, allocations: 190.6 kB / 497.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1156, allocations: 0 / 497.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.1157, allocations: 11.98 kB / 497.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1157, allocations: 0 / 497.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.116, allocations: 167.9 kB / 497.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1171, allocations: 0.6524 MB / 498.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.1174, allocations: 226.3 kB / 498.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.1176, allocations: 112.8 kB / 498.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1177, allocations: 384 / 498.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.1177, allocations: 42.5 kB / 498.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.1177, allocations: 0 / 498.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001474/0.1192, allocations: 0.5757 MB / 499.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.1192, allocations: 51.41 kB / 499.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007458/0.12, allocations: 352.8 kB / 499.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.12, allocations: 29.7 kB / 499.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.1202, allocations: 140.3 kB / 0.4883 GB, free: 13.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1203, allocations: 82.89 kB / 0.4884 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1204, allocations: 45.7 kB / 0.4885 GB, free: 12.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1205, allocations: 342.8 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.1207, allocations: 92.11 kB / 0.4889 GB, free: 12.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.1209, allocations: 92.41 kB / 0.489 GB, free: 12.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.1228, allocations: 0.6331 MB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1228, allocations: 0 / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007714/0.1236, allocations: 411 kB / 0.49 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.1236, allocations: 8 kB / 0.49 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1236, allocations: 3.938 kB / 0.49 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003436/0.124, allocations: 112.7 kB / 0.4901 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1242, allocations: 31.92 kB / 0.4901 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.1262, allocations: 2.084 MB / 0.4922 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.1266, allocations: 55.84 kB / 0.4922 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.1266, allocations: 4 kB / 0.4922 GB, free: 8.957 MB / 382.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.0002154/0.1269, allocations: 172.4 kB / 0.4924 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.039e-05/0.1269, allocations: 27.66 kB / 0.4924 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.441e-05/0.127, allocations: 42.17 kB / 0.4925 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.127, allocations: 4 kB / 0.4925 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.127, allocations: 0 / 0.4925 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1271, allocations: 3.984 kB / 0.4925 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003673/0.1274, allocations: 329.5 kB / 0.4928 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.1274, allocations: 3.938 kB / 0.4928 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.1277, allocations: 27.98 kB / 0.4928 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002213/0.1279, allocations: 72.8 kB / 0.4929 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.1279, allocations: 7.984 kB / 0.4929 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001574/0.1295, allocations: 1.862 MB / 0.4947 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1295, allocations: 0 / 0.4947 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008384/0.1304, allocations: 0.5407 MB / 0.4952 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.768e-05/0.1304, allocations: 108.8 kB / 0.4953 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.1305, allocations: 4 kB / 0.4953 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.1308, allocations: 47.92 kB / 0.4954 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.002e-05/0.1309, allocations: 15.98 kB / 0.4954 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.1309, allocations: 4 kB / 0.4954 GB, free: 5.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005996/0.1315, allocations: 284.3 kB / 0.4957 GB, free: 5.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.444e-06/0.1316, allocations: 0 / 0.4957 GB, free: 5.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000377/0.1319, allocations: 51.94 kB / 0.4957 GB, free: 5.137 MB / 382.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.000127/0.1321, allocations: 111.2 kB / 0.4958 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.1328, allocations: 386.4 kB / 0.4962 GB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1328, allocations: 0 / 0.4962 GB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.1332, allocations: 254.5 kB / 0.4964 GB, free: 4.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.1336, allocations: 53.17 kB / 0.4965 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009938/0.1346, allocations: 0.6065 MB / 0.4971 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.1349, allocations: 0.7714 MB / 0.4978 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.731e-05/0.135, allocations: 19.44 kB / 0.4979 GB, free: 2.863 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.135, allocations: 4 kB / 0.4979 GB, free: 2.859 MB / 382.1 MB Notification: Performance of Templates: time 0.2005/0.3355, allocations: 3.867 MB / 0.5016 GB, free: 21.72 MB / 382.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)