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.001354/0.001354, allocations: 105.9 kB / 16.4 MB, free: 6.395 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.00132/0.00132, allocations: 194.9 kB / 17.34 MB, free: 5.691 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.448/1.448, 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.1012/0.1012, allocations: 22.34 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 63.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1083, allocations: 54.95 MB / 492.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004353/0.1127, allocations: 3.024 MB / 495.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1147, allocations: 1.04 MB / 496.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1149, allocations: 15.94 kB / 496.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.1152, allocations: 87 kB / 496.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.1154, allocations: 91.14 kB / 496.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006725/0.116, allocations: 314 kB / 497.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.1167, allocations: 0.5507 MB / 497.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003107/0.117, allocations: 171 kB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.1172, allocations: 195 kB / 498.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.1174, allocations: 202.8 kB / 498.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.1175, allocations: 51.94 kB / 498.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.282e-05/0.1176, allocations: 48 kB / 498.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.1177, allocations: 103.6 kB / 498.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.1179, allocations: 234.5 kB / 498.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.1185, allocations: 0.5443 MB / 499.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1185, allocations: 0 / 499.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1185, allocations: 0 / 499.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1185, allocations: 0 / 499.3 MB, free: 14.08 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.001264/0.1198, allocations: 0.8293 MB / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1198, allocations: 8.031 kB / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.1199, allocations: 68.52 kB / 0.4885 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006404/0.1205, allocations: 438.1 kB / 0.4889 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.1206, allocations: 29.31 kB / 0.4889 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.1206, allocations: 40.38 kB / 0.489 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.1214, allocations: 423.8 kB / 0.4894 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1214, allocations: 4 kB / 0.4894 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.1214, allocations: 16 kB / 0.4894 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1214, allocations: 8 kB / 0.4894 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006069/0.122, allocations: 282.4 kB / 0.4897 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.124, allocations: 1.527 MB / 0.4912 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008123/0.1248, allocations: 338.3 kB / 0.4915 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002799/0.1251, allocations: 125.2 kB / 0.4916 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.1251, allocations: 12.22 kB / 0.4916 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.1252, allocations: 38.73 kB / 0.4916 GB, free: 9.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.804e-06/0.1252, allocations: 0 / 0.4916 GB, free: 9.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009456/0.1261, allocations: 405.4 kB / 0.492 GB, free: 9.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.1262, allocations: 110.8 kB / 0.4921 GB, free: 9.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.1266, allocations: 406 kB / 0.4925 GB, free: 8.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.1267, allocations: 33.7 kB / 0.4926 GB, free: 8.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.1269, allocations: 264.4 kB / 0.4928 GB, free: 8.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.406e-05/0.127, allocations: 107.7 kB / 0.4929 GB, free: 8.379 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1271, allocations: 61.69 kB / 0.493 GB, free: 8.312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1272, allocations: 358.8 kB / 0.4933 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.1275, allocations: 109.1 kB / 0.4934 GB, free: 7.844 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003323/0.1278, allocations: 204.8 kB / 0.4936 GB, free: 7.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.1293, allocations: 0.5293 MB / 0.4941 GB, free: 7.059 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1293, allocations: 0 / 0.4941 GB, free: 7.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007378/0.13, allocations: 394.7 kB / 0.4945 GB, free: 6.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.13, allocations: 4 kB / 0.4945 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1301, allocations: 4 kB / 0.4945 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1301, allocations: 4 kB / 0.4945 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.1304, allocations: 75.83 kB / 0.4946 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1304, allocations: 4 kB / 0.4946 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1306, allocations: 39.77 kB / 0.4946 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.1307, allocations: 15.94 kB / 0.4946 GB, free: 6.523 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.0003514/0.131, allocations: 212.5 kB / 0.4948 GB, free: 6.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002286/0.1312, allocations: 161 kB / 0.495 GB, free: 6.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001102/0.1323, allocations: 463.4 kB / 0.4954 GB, free: 5.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.433e-06/0.1323, allocations: 0 / 0.4954 GB, free: 5.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005379/0.1329, allocations: 341 kB / 0.4958 GB, free: 5.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.1329, allocations: 10.19 kB / 0.4958 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-06/0.1329, allocations: 0 / 0.4958 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.66e-06/0.1329, allocations: 4 kB / 0.4958 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.1332, allocations: 63.91 kB / 0.4958 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1332, allocations: 4 kB / 0.4958 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.1334, allocations: 27.78 kB / 0.4959 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.1334, allocations: 12 kB / 0.4959 GB, free: 5.191 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.0001662/0.1336, allocations: 213.1 kB / 0.4961 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/0.1336, allocations: 63.55 kB / 0.4961 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.1338, allocations: 48.7 kB / 0.4962 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1338, allocations: 4 kB / 0.4962 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1338, allocations: 0 / 0.4962 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1338, allocations: 3.984 kB / 0.4962 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005495/0.1343, allocations: 461.2 kB / 0.4966 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1343, allocations: 4 kB / 0.4966 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.1347, allocations: 51.97 kB / 0.4967 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1347, allocations: 0 / 0.4967 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.1347, allocations: 8 kB / 0.4967 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1347, allocations: 0 / 0.4967 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1347, allocations: 3.938 kB / 0.4967 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.1356, allocations: 0.5507 MB / 0.4972 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.1358, allocations: 148.7 kB / 0.4974 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.1359, allocations: 8.125 kB / 0.4974 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1361, allocations: 19.98 kB / 0.4974 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.1361, allocations: 15.97 kB / 0.4974 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1362, allocations: 8 kB / 0.4974 GB, free: 3.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000304/0.1365, allocations: 291.1 kB / 0.4977 GB, free: 3.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1365, allocations: 0 / 0.4977 GB, free: 3.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005026/0.137, allocations: 143.6 kB / 0.4979 GB, free: 3.082 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.0001226/0.1371, allocations: 103.2 kB / 0.498 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008469/0.1379, allocations: 403.9 kB / 0.4983 GB, free: 2.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1379, allocations: 0 / 0.4983 GB, free: 2.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.1382, allocations: 123.9 kB / 0.4985 GB, free: 2.457 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006899/0.1389, allocations: 131.1 kB / 0.4986 GB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.1404, allocations: 0.83 MB / 0.4994 GB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.1409, allocations: 0.8389 MB / 0.5002 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001977/0.141, allocations: 43.27 kB / 0.5002 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.1411, allocations: 27.44 kB / 0.5003 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1411, allocations: 0 / 0.5003 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of Templates: time 0.2017/0.3428, allocations: 4.483 MB / 0.5047 GB, free: 21.57 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)