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.001121/0.001121, allocations: 107.7 kB / 16.36 MB, free: 6.285 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.001086/0.001086, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09169/0.09169, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 66 kB / 382.2 MB, free: 41.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 54.96 MB / 437.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002751/0.109, allocations: 1.804 MB / 439 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009384/0.1099, allocations: 0.604 MB / 439.6 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.762e-05/0.11, allocations: 3.938 kB / 439.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.1103, allocations: 51.69 kB / 439.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.1105, allocations: 67.67 kB / 439.7 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.1108, allocations: 123.8 kB / 439.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.1111, allocations: 319.4 kB / 440.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1113, allocations: 49.84 kB / 440.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1114, allocations: 127.6 kB / 440.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1117, allocations: 163.4 kB / 440.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.1117, allocations: 20 kB / 440.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.135e-05/0.1118, allocations: 20 kB / 440.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.1119, allocations: 99.7 kB / 440.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.56e-05/0.112, allocations: 99.39 kB / 440.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.1122, allocations: 247 kB / 441 MB, free: 8.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1122, allocations: 0 / 441 MB, free: 8.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1122, allocations: 4 kB / 441 MB, free: 8.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1123, allocations: 0 / 441 MB, free: 8.566 MB / 318.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.001578/0.1138, allocations: 0.6739 MB / 441.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1139, allocations: 8.031 kB / 441.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.105e-05/0.1139, allocations: 32.5 kB / 441.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008212/0.1148, allocations: 366.6 kB / 442 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.1148, allocations: 8.375 kB / 442.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.1148, allocations: 20.31 kB / 442.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.1151, allocations: 186.7 kB / 442.3 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1152, allocations: 0 / 442.3 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.1152, allocations: 8 kB / 442.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1152, allocations: 0 / 442.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002995/0.1155, allocations: 171.9 kB / 442.4 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1166, allocations: 0.6562 MB / 443.1 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.117, allocations: 214.4 kB / 443.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.1172, allocations: 118.9 kB / 443.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.1172, allocations: 384 / 443.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1172, allocations: 46.44 kB / 443.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.1172, allocations: 0 / 443.5 MB, free: 5.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001435/0.1187, allocations: 0.5731 MB / 444 MB, free: 5.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.1187, allocations: 51.41 kB / 444.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.1194, allocations: 352.8 kB / 444.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.1195, allocations: 29.7 kB / 444.5 MB, free: 4.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.1196, allocations: 144.4 kB / 444.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.01e-05/0.1196, allocations: 78.91 kB / 444.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/0.1197, allocations: 41.7 kB / 444.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1198, allocations: 338.8 kB / 445 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.12, allocations: 96.17 kB / 445.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.1202, allocations: 89.73 kB / 445.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.1222, allocations: 0.6328 MB / 445.9 MB, free: 3.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1222, allocations: 3.938 kB / 445.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007707/0.123, allocations: 423.2 kB / 446.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.123, allocations: 8 kB / 446.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.123, allocations: 3.984 kB / 446.3 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003413/0.1234, allocations: 108.8 kB / 446.4 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.1235, allocations: 31.92 kB / 446.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002342/0.1259, allocations: 2.08 MB / 448.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.1262, allocations: 55.81 kB / 448.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1263, allocations: 8.062 kB / 448.6 MB, free: 0.5859 MB / 318.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.0002149/0.1265, allocations: 162.9 kB / 448.7 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.1266, allocations: 27.66 kB / 448.8 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.578e-05/0.1267, allocations: 46.17 kB / 448.8 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1267, allocations: 4 kB / 448.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1267, allocations: 0 / 448.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1267, allocations: 0 / 448.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003909/0.1271, allocations: 333.4 kB / 449.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1271, allocations: 4 kB / 449.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.1273, allocations: 35.92 kB / 449.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002128/0.1275, allocations: 68.8 kB / 449.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.1276, allocations: 8 kB / 449.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.1292, allocations: 1.85 MB / 451.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1292, allocations: 7.969 kB / 451.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008219/0.1301, allocations: 0.5416 MB / 451.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.199e-05/0.1302, allocations: 108.9 kB / 451.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.1302, allocations: 7.984 kB / 451.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.1306, allocations: 43.94 kB / 451.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.1306, allocations: 19.97 kB / 451.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.1307, allocations: 4.25 kB / 451.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006261/0.1313, allocations: 280.3 kB / 452.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1313, allocations: 3.938 kB / 452.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.1317, allocations: 56 kB / 452.2 MB, free: 12.75 MB / 334.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.0001459/0.1319, allocations: 95.25 kB / 452.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007559/0.1326, allocations: 398.4 kB / 452.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1326, allocations: 0 / 452.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.1331, allocations: 262.5 kB / 452.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.1334, allocations: 38.83 kB / 452.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009511/0.1344, allocations: 0.5827 MB / 453.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1348, allocations: 0.7675 MB / 454.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1349, allocations: 53.91 kB / 454.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.645e-05/0.135, allocations: 19.44 kB / 454.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.135, allocations: 0 / 454.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Templates: time 0.006289/0.1413, allocations: 3.053 MB / 457.4 MB, free: 7.422 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1)