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.008406/0.008406, allocations: 99.97 kB / 15.73 MB, free: 6.047 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.001806/0.001806, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2311/0.2311, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 69.97 kB / 437.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 54.97 MB / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004028/0.1231, allocations: 3.007 MB / 495 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.1254, allocations: 1.029 MB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006107/0.126, allocations: 19.88 kB / 496.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003833/0.1264, allocations: 83.06 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004701/0.1269, allocations: 91.06 kB / 496.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.128, allocations: 319.9 kB / 496.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009761/0.129, allocations: 0.5544 MB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000535/0.1295, allocations: 231.1 kB / 497.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003237/0.1299, allocations: 195 kB / 497.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.1302, allocations: 202.8 kB / 497.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.51e-05/0.1303, allocations: 52 kB / 497.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.1304, allocations: 44 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.1305, allocations: 115.5 kB / 497.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.1307, allocations: 226.6 kB / 498.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.1313, allocations: 0.5409 MB / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1313, allocations: 3.938 kB / 498.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1313, allocations: 4 kB / 498.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.1314, allocations: 0 / 498.7 MB, free: 10.49 MB / 366.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.001454/0.1328, allocations: 0.8063 MB / 499.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.1329, allocations: 12.03 kB / 499.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.133, allocations: 64.19 kB / 499.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007816/0.1338, allocations: 429.7 kB / 0.4883 GB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.1339, allocations: 29.38 kB / 0.4883 GB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.102e-05/0.134, allocations: 36.38 kB / 0.4884 GB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.1348, allocations: 431.7 kB / 0.4888 GB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1348, allocations: 3.938 kB / 0.4888 GB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.1349, allocations: 16 kB / 0.4888 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1349, allocations: 8 kB / 0.4888 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006394/0.1355, allocations: 282.4 kB / 0.4891 GB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.1377, allocations: 1.519 MB / 0.4906 GB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007489/0.1385, allocations: 347.4 kB / 0.4909 GB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003422/0.1388, allocations: 141.2 kB / 0.491 GB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.1389, allocations: 4.234 kB / 0.491 GB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1389, allocations: 38.78 kB / 0.4911 GB, free: 6.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1389, allocations: 3.938 kB / 0.4911 GB, free: 6.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009732/0.1399, allocations: 412.2 kB / 0.4915 GB, free: 5.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.14, allocations: 106.8 kB / 0.4916 GB, free: 5.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.1404, allocations: 413.8 kB / 0.492 GB, free: 5.191 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.1405, allocations: 33.7 kB / 0.492 GB, free: 5.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.1406, allocations: 260.2 kB / 0.4922 GB, free: 4.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.002e-05/0.1407, allocations: 103.1 kB / 0.4923 GB, free: 4.793 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.1409, allocations: 65.69 kB / 0.4924 GB, free: 4.723 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.141, allocations: 358.8 kB / 0.4927 GB, free: 4.363 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.1413, allocations: 109.1 kB / 0.4928 GB, free: 4.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/0.1416, allocations: 196.9 kB / 0.493 GB, free: 4.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.143, allocations: 0.5332 MB / 0.4935 GB, free: 3.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.143, allocations: 0 / 0.4935 GB, free: 3.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006881/0.1437, allocations: 386.4 kB / 0.4939 GB, free: 3.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1438, allocations: 4 kB / 0.4939 GB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1438, allocations: 4 kB / 0.4939 GB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.1438, allocations: 4 kB / 0.4939 GB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.1441, allocations: 67.91 kB / 0.494 GB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1441, allocations: 7.984 kB / 0.494 GB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.1444, allocations: 39.67 kB / 0.494 GB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.1444, allocations: 12 kB / 0.494 GB, free: 2.953 MB / 366.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.000358/0.1448, allocations: 217.2 kB / 0.4943 GB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002179/0.145, allocations: 164.9 kB / 0.4944 GB, free: 2.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001104/0.1461, allocations: 471.3 kB / 0.4949 GB, free: 2.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.1461, allocations: 0 / 0.4949 GB, free: 2.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005399/0.1467, allocations: 332.8 kB / 0.4952 GB, free: 1.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.1467, allocations: 8 kB / 0.4952 GB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-06/0.1467, allocations: 0 / 0.4952 GB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.051e-06/0.1467, allocations: 4 kB / 0.4952 GB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.147, allocations: 67.78 kB / 0.4953 GB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.147, allocations: 4 kB / 0.4953 GB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.1472, allocations: 23.84 kB / 0.4953 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.1472, allocations: 8 kB / 0.4953 GB, free: 1.617 MB / 366.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.0001962/0.1474, allocations: 212.3 kB / 0.4955 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.1475, allocations: 51.38 kB / 0.4955 GB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.1476, allocations: 48.7 kB / 0.4956 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1477, allocations: 7.938 kB / 0.4956 GB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.1477, allocations: 4 kB / 0.4956 GB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1477, allocations: 3.984 kB / 0.4956 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005449/0.1482, allocations: 465 kB / 0.496 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1482, allocations: 4 kB / 0.4961 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.1485, allocations: 55.91 kB / 0.4961 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1486, allocations: 0 / 0.4961 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.1486, allocations: 8 kB / 0.4961 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1486, allocations: 0 / 0.4961 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1486, allocations: 0 / 0.4961 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009375/0.1495, allocations: 0.5477 MB / 0.4966 GB, free: 156 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.1497, allocations: 148.5 kB / 0.4968 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/0.1498, allocations: 8 kB / 0.4968 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.15, allocations: 15.98 kB / 0.4968 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.1501, allocations: 15.98 kB / 0.4968 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1501, allocations: 4 kB / 0.4968 GB, free: 15.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002988/0.1504, allocations: 287.1 kB / 0.4971 GB, free: 15.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1504, allocations: 0 / 0.4971 GB, free: 15.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006171/0.151, allocations: 143.4 kB / 0.4972 GB, free: 15.52 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.0001557/0.1512, allocations: 107.2 kB / 0.4973 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.1525, allocations: 425 kB / 0.4977 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.1525, allocations: 0 / 0.4977 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.1529, allocations: 139.8 kB / 0.4979 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009738/0.1539, allocations: 133.6 kB / 0.498 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.1562, allocations: 0.8042 MB / 0.4988 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.1569, allocations: 0.8351 MB / 0.4996 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003197/0.1572, allocations: 47.27 kB / 0.4997 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.1574, allocations: 27.44 kB / 0.4997 GB, free: 12.96 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1574, allocations: 0 / 0.4997 GB, free: 12.96 MB / 382.1 MB Notification: Performance of Templates: time 0.01511/0.1725, allocations: 4.576 MB / 0.5042 GB, free: 8.438 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)