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.001164/0.001164, allocations: 107.7 kB / 16.37 MB, free: 6.477 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.001479/0.001479, allocations: 193.1 kB / 17.31 MB, free: 5.824 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: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09389/0.09389, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 61.5 kB / 382.2 MB, free: 41.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09593, allocations: 54.97 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.0033/0.09927, allocations: 1.8 MB / 439 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1004, allocations: 0.6195 MB / 439.6 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1006, allocations: 4 kB / 439.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.1009, allocations: 43.64 kB / 439.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.1011, allocations: 75.66 kB / 439.7 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1015, allocations: 119.8 kB / 439.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.1018, allocations: 315.4 kB / 440.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.102, allocations: 45.84 kB / 440.2 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1021, allocations: 127.6 kB / 440.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.1024, allocations: 167.4 kB / 440.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.1024, allocations: 20 kB / 440.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.333e-05/0.1025, allocations: 20 kB / 440.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1026, allocations: 91.77 kB / 440.6 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1027, allocations: 111.3 kB / 440.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000271/0.103, allocations: 239.1 kB / 441 MB, free: 8.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.103, allocations: 0 / 441 MB, free: 8.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.103, allocations: 0 / 441 MB, free: 8.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.103, allocations: 0 / 441 MB, free: 8.574 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.001719/0.1047, allocations: 0.6816 MB / 441.7 MB, free: 7.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1048, allocations: 12.03 kB / 441.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.169e-05/0.1049, allocations: 36.56 kB / 441.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008318/0.1057, allocations: 366.6 kB / 442.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1057, allocations: 8.375 kB / 442.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.1058, allocations: 20.38 kB / 442.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.1063, allocations: 182.7 kB / 442.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1063, allocations: 0 / 442.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.1063, allocations: 8 kB / 442.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1064, allocations: 0 / 442.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.1067, allocations: 175.8 kB / 442.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.1078, allocations: 0.6562 MB / 443.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.1082, allocations: 214.5 kB / 443.3 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.1084, allocations: 112.8 kB / 443.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/0.1084, allocations: 4.375 kB / 443.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.1084, allocations: 46.44 kB / 443.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1085, allocations: 0 / 443.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001506/0.11, allocations: 0.5699 MB / 444 MB, free: 5.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.11, allocations: 59.34 kB / 444.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.1108, allocations: 348.8 kB / 444.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1108, allocations: 37.64 kB / 444.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.1109, allocations: 140.4 kB / 444.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.111, allocations: 74.92 kB / 444.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.1111, allocations: 45.7 kB / 444.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1113, allocations: 334.8 kB / 445.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.1114, allocations: 88.17 kB / 445.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.1116, allocations: 95.41 kB / 445.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002064/0.1137, allocations: 0.6329 MB / 445.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1137, allocations: 0 / 445.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007745/0.1145, allocations: 419.2 kB / 446.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1145, allocations: 8 kB / 446.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1145, allocations: 7.922 kB / 446.3 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003459/0.1149, allocations: 104.8 kB / 446.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.115, allocations: 27.98 kB / 446.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.1174, allocations: 2.084 MB / 448.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.1178, allocations: 55.83 kB / 448.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.1178, allocations: 8 kB / 448.6 MB, free: 0.5898 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.0001863/0.118, allocations: 174.9 kB / 448.7 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.467e-05/0.118, allocations: 27.66 kB / 448.8 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.47e-05/0.1181, allocations: 34.19 kB / 448.8 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1181, allocations: 4 kB / 448.8 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1181, allocations: 0 / 448.8 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1182, allocations: 3.984 kB / 448.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004257/0.1186, allocations: 329.5 kB / 449.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.1186, allocations: 3.938 kB / 449.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.1188, allocations: 35.86 kB / 449.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/0.1191, allocations: 76.78 kB / 449.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.1191, allocations: 4 kB / 449.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.1207, allocations: 1.85 MB / 451.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1208, allocations: 0 / 451.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008722/0.1216, allocations: 0.5465 MB / 451.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.542e-05/0.1217, allocations: 104.8 kB / 451.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.1218, allocations: 11.98 kB / 451.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.1222, allocations: 43.94 kB / 451.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.1223, allocations: 23.94 kB / 451.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.1223, allocations: 8 kB / 451.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006366/0.1229, allocations: 276.3 kB / 452.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.123, allocations: 0 / 452.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003969/0.1234, 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.0001278/0.1235, allocations: 107.2 kB / 452.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000715/0.1242, allocations: 387.9 kB / 452.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1242, allocations: 0 / 452.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.1247, allocations: 258.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.0003866/0.1251, allocations: 42.55 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.001025/0.1261, allocations: 0.5773 MB / 453.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1264, allocations: 0.7714 MB / 454.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.1266, 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.684e-05/0.1267, allocations: 19.44 kB / 454.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1267, allocations: 0 / 454.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Templates: time 0.006808/0.1335, allocations: 3.045 MB / 457.4 MB, free: 7.43 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 gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1)