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.001346/0.001346, allocations: 104.3 kB / 16.4 MB, free: 5.977 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.001271/0.001271, allocations: 188.8 kB / 17.34 MB, free: 5.586 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08848/0.08848, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1074, allocations: 54.96 MB / 492.7 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004503/0.112, allocations: 3.024 MB / 495.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.1142, allocations: 1.028 MB / 496.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005402/0.1147, allocations: 15.94 kB / 496.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.1152, allocations: 83.06 kB / 496.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.1155, allocations: 91.06 kB / 496.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008294/0.1164, allocations: 315.1 kB / 497.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007356/0.1171, allocations: 0.5545 MB / 497.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.1176, allocations: 227.1 kB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.1178, allocations: 195 kB / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.1181, allocations: 214.8 kB / 498.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.077e-05/0.1182, allocations: 44 kB / 498.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.706e-05/0.1183, allocations: 48 kB / 498.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1184, allocations: 103.6 kB / 498.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.1187, allocations: 230.5 kB / 498.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005552/0.1192, allocations: 0.5447 MB / 499.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1192, allocations: 4 kB / 499.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1192, allocations: 0 / 499.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.331e-05/0.1193, allocations: 0 / 499.3 MB, free: 14.05 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.00139/0.1207, allocations: 0.8102 MB / 0.4884 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1207, allocations: 11.97 kB / 0.4884 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.1208, allocations: 68.19 kB / 0.4885 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.1215, allocations: 433.6 kB / 0.4889 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.1216, allocations: 29.38 kB / 0.489 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.1217, allocations: 36.38 kB / 0.489 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.1224, allocations: 423.8 kB / 0.4894 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1224, allocations: 0 / 0.4894 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/0.1224, allocations: 19.98 kB / 0.4894 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1225, allocations: 12 kB / 0.4894 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005922/0.1231, allocations: 282.4 kB / 0.4897 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.125, allocations: 1.527 MB / 0.4912 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.1258, allocations: 339.3 kB / 0.4915 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.1261, allocations: 141.2 kB / 0.4916 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.1261, allocations: 4.234 kB / 0.4916 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.1261, allocations: 30.8 kB / 0.4917 GB, free: 9.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.843e-06/0.1261, allocations: 0 / 0.4917 GB, free: 9.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008948/0.127, allocations: 413.1 kB / 0.4921 GB, free: 9.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.1271, allocations: 106.8 kB / 0.4922 GB, free: 9.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.1275, allocations: 409.9 kB / 0.4926 GB, free: 8.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.1276, allocations: 29.7 kB / 0.4926 GB, free: 8.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.1278, allocations: 268 kB / 0.4928 GB, free: 8.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.1279, allocations: 95.19 kB / 0.4929 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.128, allocations: 65.7 kB / 0.493 GB, free: 8.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1281, allocations: 358.8 kB / 0.4933 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002434/0.1284, allocations: 113.1 kB / 0.4934 GB, free: 7.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1287, allocations: 200.8 kB / 0.4936 GB, free: 7.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.1301, allocations: 0.5255 MB / 0.4942 GB, free: 7.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1301, allocations: 0 / 0.4942 GB, free: 7.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006905/0.1308, allocations: 386.3 kB / 0.4945 GB, free: 6.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1308, allocations: 4 kB / 0.4945 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1308, allocations: 0 / 0.4945 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.1309, allocations: 7.984 kB / 0.4945 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003037/0.1312, allocations: 75.84 kB / 0.4946 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1312, allocations: 7.938 kB / 0.4946 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.1314, allocations: 39.8 kB / 0.4946 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.1315, allocations: 16 kB / 0.4947 GB, free: 6.52 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.0003647/0.1318, allocations: 212.4 kB / 0.4949 GB, free: 6.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002005/0.1321, allocations: 161 kB / 0.495 GB, free: 6.121 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/0.1331, allocations: 459.4 kB / 0.4955 GB, free: 5.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.023e-06/0.1331, allocations: 0 / 0.4955 GB, free: 5.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004982/0.1336, allocations: 344.7 kB / 0.4958 GB, free: 5.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.1336, allocations: 6.031 kB / 0.4958 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1336, allocations: 4 kB / 0.4958 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/0.1336, allocations: 3.984 kB / 0.4958 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.1339, allocations: 59.92 kB / 0.4959 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.1339, allocations: 4 kB / 0.4959 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.1341, allocations: 39.89 kB / 0.4959 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1341, allocations: 12 kB / 0.4959 GB, free: 5.18 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.000161/0.1343, allocations: 201 kB / 0.4961 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.667e-05/0.1344, allocations: 51.31 kB / 0.4962 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.1345, allocations: 52.69 kB / 0.4962 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1345, allocations: 7.984 kB / 0.4962 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1345, allocations: 0 / 0.4962 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1345, allocations: 0 / 0.4962 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005039/0.135, allocations: 469.1 kB / 0.4967 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1351, allocations: 0 / 0.4967 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.1354, allocations: 59.91 kB / 0.4967 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1354, allocations: 0 / 0.4967 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.1354, allocations: 4 kB / 0.4967 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1354, allocations: 4 kB / 0.4967 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1354, allocations: 0 / 0.4967 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008831/0.1363, allocations: 0.5504 MB / 0.4973 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.1365, allocations: 144.5 kB / 0.4974 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.1365, allocations: 4 kB / 0.4974 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.1368, allocations: 19.98 kB / 0.4974 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.1368, allocations: 19.97 kB / 0.4974 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.1369, allocations: 8 kB / 0.4974 GB, free: 3.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002862/0.1371, allocations: 283.1 kB / 0.4977 GB, free: 3.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1372, allocations: 3.938 kB / 0.4977 GB, free: 3.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005008/0.1377, allocations: 143.4 kB / 0.4979 GB, free: 3.09 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.0001173/0.1378, allocations: 103.2 kB / 0.498 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008551/0.1386, allocations: 423.8 kB / 0.4984 GB, free: 2.566 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1387, allocations: 0 / 0.4984 GB, free: 2.566 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.1389, allocations: 131.9 kB / 0.4985 GB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007015/0.1396, allocations: 139.2 kB / 0.4986 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.1411, allocations: 0.8448 MB / 0.4994 GB, free: 1.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.1415, allocations: 0.8273 MB / 0.5003 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.1416, allocations: 31.44 kB / 0.5003 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1416, allocations: 0 / 0.5003 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of Templates: time 0.2329/0.3746, allocations: 5.315 MB / 0.5055 GB, free: 21.07 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)