Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.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.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 105.5 kB / 16.41 MB, free: 6.5 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.001251/0.001251, allocations: 185.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.318/1.318, 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.09039/0.09039, allocations: 22.32 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.89 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09807, allocations: 54.96 MB / 492.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004436/0.1026, allocations: 3.023 MB / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.1047, allocations: 1.029 MB / 496.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005006/0.1052, allocations: 19.88 kB / 496.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.1056, allocations: 87.06 kB / 496.8 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003768/0.106, allocations: 87.08 kB / 496.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008338/0.1069, allocations: 315 kB / 497.2 MB, free: 180 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008141/0.1077, allocations: 0.5506 MB / 497.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1081, allocations: 231 kB / 498 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.1084, allocations: 199 kB / 498.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.1087, allocations: 206.8 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1088, allocations: 44 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.1089, allocations: 48 kB / 498.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.19e-05/0.109, allocations: 107.5 kB / 498.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.1092, allocations: 222.6 kB / 498.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000617/0.1099, allocations: 0.5487 MB / 499.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1099, allocations: 3.938 kB / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1099, allocations: 0 / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.203e-05/0.1099, allocations: 0 / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001447/0.1114, allocations: 0.818 MB / 0.4884 GB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1114, allocations: 8.031 kB / 0.4884 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.1116, allocations: 68.12 kB / 0.4885 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.1123, allocations: 429.7 kB / 0.4889 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.1123, allocations: 25.38 kB / 0.4889 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-05/0.1124, allocations: 36.38 kB / 0.489 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.1132, allocations: 427.7 kB / 0.4894 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1132, allocations: 0 / 0.4894 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.871e-05/0.1132, allocations: 16 kB / 0.4894 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1133, allocations: 11.94 kB / 0.4894 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006/0.1139, allocations: 290.4 kB / 0.4897 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1159, allocations: 1.519 MB / 0.4912 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/0.1166, allocations: 343.4 kB / 0.4915 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.1169, allocations: 141.2 kB / 0.4916 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.1169, allocations: 240 / 0.4916 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.117, allocations: 38.8 kB / 0.4917 GB, free: 9.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.342e-06/0.117, allocations: 0 / 0.4917 GB, free: 9.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008795/0.1179, allocations: 409.1 kB / 0.4921 GB, free: 9.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.1179, allocations: 106.8 kB / 0.4922 GB, free: 9.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000424/0.1184, allocations: 413.9 kB / 0.4926 GB, free: 8.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.1184, allocations: 29.7 kB / 0.4926 GB, free: 8.695 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.1186, allocations: 268 kB / 0.4928 GB, free: 8.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/0.1187, allocations: 99.17 kB / 0.4929 GB, free: 8.332 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1188, allocations: 61.69 kB / 0.493 GB, free: 8.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1189, allocations: 354.8 kB / 0.4933 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.1192, allocations: 117.1 kB / 0.4934 GB, free: 7.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.1194, allocations: 192.9 kB / 0.4936 GB, free: 7.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.1208, allocations: 0.5332 MB / 0.4942 GB, free: 7.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1208, allocations: 4 kB / 0.4942 GB, free: 7.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006969/0.1215, allocations: 386.3 kB / 0.4945 GB, free: 6.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1216, allocations: 8 kB / 0.4945 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1216, allocations: 0 / 0.4945 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1216, allocations: 4.219 kB / 0.4945 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1219, allocations: 71.91 kB / 0.4946 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1219, allocations: 7.938 kB / 0.4946 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.1222, allocations: 43.58 kB / 0.4947 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.1222, allocations: 12 kB / 0.4947 GB, free: 6.484 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003488/0.1226, allocations: 212.4 kB / 0.4949 GB, free: 6.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002077/0.1228, allocations: 168.9 kB / 0.495 GB, free: 6.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001062/0.1239, allocations: 459.4 kB / 0.4955 GB, free: 5.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.1239, allocations: 0 / 0.4955 GB, free: 5.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.000525/0.1244, allocations: 336.8 kB / 0.4958 GB, free: 5.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1244, allocations: 8 kB / 0.4958 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.1245, allocations: 224 / 0.4958 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.603e-06/0.1245, allocations: 8 kB / 0.4958 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.1247, allocations: 59.86 kB / 0.4959 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1247, allocations: 4 kB / 0.4959 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.1249, allocations: 39.61 kB / 0.4959 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.125, allocations: 12 kB / 0.4959 GB, free: 5.141 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001764/0.1252, allocations: 200.9 kB / 0.4961 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.115e-05/0.1253, allocations: 55.38 kB / 0.4962 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.1254, allocations: 52.69 kB / 0.4962 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1254, allocations: 4 kB / 0.4962 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1254, allocations: 0 / 0.4962 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1254, allocations: 0 / 0.4962 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005555/0.126, allocations: 461.1 kB / 0.4967 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.126, allocations: 0 / 0.4967 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/0.1263, allocations: 55.91 kB / 0.4967 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.1263, allocations: 4 kB / 0.4967 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.1263, allocations: 7.984 kB / 0.4967 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.1264, allocations: 4 kB / 0.4967 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1264, allocations: 4 kB / 0.4967 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008674/0.1272, allocations: 0.5427 MB / 0.4973 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1274, allocations: 148.5 kB / 0.4974 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.1275, allocations: 8 kB / 0.4974 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.1277, allocations: 15.98 kB / 0.4974 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.1277, allocations: 19.97 kB / 0.4974 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.1278, allocations: 8 kB / 0.4974 GB, free: 3.477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002787/0.1281, allocations: 279.1 kB / 0.4977 GB, free: 3.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.1281, allocations: 0 / 0.4977 GB, free: 3.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005174/0.1286, allocations: 147.4 kB / 0.4979 GB, free: 3.059 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.y) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001321/0.1287, allocations: 107.2 kB / 0.498 GB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000859/0.1296, allocations: 419.5 kB / 0.4984 GB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.1296, allocations: 4.875 kB / 0.4984 GB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.1299, allocations: 139.8 kB / 0.4985 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/0.1306, allocations: 124.4 kB / 0.4986 GB, free: 2.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.1321, allocations: 0.8528 MB / 0.4994 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.1325, allocations: 0.8234 MB / 0.5002 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1327, allocations: 39.42 kB / 0.5003 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1327, allocations: 0 / 0.5003 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of Templates: time 0.2114/0.344, allocations: 5.375 MB / 0.5055 GB, free: 21.03 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & ./AES_AES.Coursework.ElecSys_generator_models.TurbineFollows -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)