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.01551/0.01551, allocations: 101 kB / 15.73 MB, free: 6.043 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.002825/0.002826, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2309/0.2309, allocations: 22.37 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 62.59 kB / 437.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1333, allocations: 54.97 MB / 492 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003888/0.1372, allocations: 3.023 MB / 495 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.1392, allocations: 1.032 MB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.1395, allocations: 15.94 kB / 496.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.1398, allocations: 87.06 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.14, allocations: 87.08 kB / 496.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.1407, allocations: 316.1 kB / 496.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005388/0.1412, allocations: 0.5583 MB / 497.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.1416, allocations: 239 kB / 497.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.1418, allocations: 195 kB / 497.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.142, allocations: 198.8 kB / 497.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.365e-05/0.1421, allocations: 44 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.434e-05/0.1422, allocations: 48 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.1423, allocations: 111.5 kB / 498 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.1424, allocations: 230.6 kB / 498.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000524/0.143, allocations: 0.5447 MB / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.143, allocations: 0 / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.143, allocations: 0 / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.143, allocations: 4 kB / 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.001191/0.1442, allocations: 0.8063 MB / 499.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1442, allocations: 8.031 kB / 499.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1443, allocations: 68.17 kB / 499.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.145, allocations: 425.7 kB / 0.4883 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.145, allocations: 29.38 kB / 0.4883 GB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.1451, allocations: 32.38 kB / 0.4884 GB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/0.1458, allocations: 431.7 kB / 0.4888 GB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1458, allocations: 3.938 kB / 0.4888 GB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.1458, allocations: 12 kB / 0.4888 GB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.1458, allocations: 12 kB / 0.4888 GB, free: 8.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005504/0.1464, allocations: 286.4 kB / 0.4891 GB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1483, allocations: 1.523 MB / 0.4906 GB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006987/0.149, allocations: 345.1 kB / 0.4909 GB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.1493, allocations: 137.2 kB / 0.491 GB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.1493, allocations: 4.234 kB / 0.491 GB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.1493, allocations: 38.73 kB / 0.4911 GB, free: 6.152 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1494, allocations: 4 kB / 0.4911 GB, free: 6.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008734/0.1502, allocations: 412.2 kB / 0.4915 GB, free: 5.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.1503, allocations: 106.8 kB / 0.4916 GB, free: 5.613 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.1507, allocations: 413.8 kB / 0.492 GB, free: 5.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1508, allocations: 29.7 kB / 0.492 GB, free: 5.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1509, allocations: 264.2 kB / 0.4922 GB, free: 4.906 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/0.151, allocations: 103.1 kB / 0.4923 GB, free: 4.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.1511, allocations: 65.69 kB / 0.4924 GB, free: 4.734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1513, allocations: 354.8 kB / 0.4927 GB, free: 4.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.1516, allocations: 113.1 kB / 0.4928 GB, free: 4.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.1519, allocations: 196.9 kB / 0.493 GB, free: 4.043 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.1532, allocations: 0.5293 MB / 0.4935 GB, free: 3.488 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1532, allocations: 0 / 0.4935 GB, free: 3.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006637/0.1539, allocations: 390.3 kB / 0.4939 GB, free: 3.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1539, allocations: 4 kB / 0.4939 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1539, allocations: 4 kB / 0.4939 GB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.1539, allocations: 0 / 0.4939 GB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.1542, allocations: 72.12 kB / 0.494 GB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1543, allocations: 8 kB / 0.494 GB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.1545, allocations: 35.67 kB / 0.494 GB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.1545, allocations: 16 kB / 0.4941 GB, free: 2.965 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.0003572/0.1549, allocations: 213.1 kB / 0.4943 GB, free: 2.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002132/0.1551, allocations: 168.9 kB / 0.4944 GB, free: 2.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001036/0.1562, allocations: 467.3 kB / 0.4949 GB, free: 2.078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.355e-06/0.1562, allocations: 0 / 0.4949 GB, free: 2.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005559/0.1567, allocations: 332.8 kB / 0.4952 GB, free: 1.746 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.1568, allocations: 4 kB / 0.4952 GB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.1568, allocations: 4 kB / 0.4952 GB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.1568, allocations: 7.984 kB / 0.4952 GB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.157, allocations: 64.02 kB / 0.4953 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.157, allocations: 8 kB / 0.4953 GB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.1572, allocations: 31.83 kB / 0.4953 GB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1573, allocations: 8 kB / 0.4953 GB, free: 1.621 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.0001989/0.1575, allocations: 204.1 kB / 0.4955 GB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.1575, allocations: 47.38 kB / 0.4955 GB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.1576, allocations: 56.62 kB / 0.4956 GB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1577, allocations: 8 kB / 0.4956 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.1577, allocations: 0 / 0.4956 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1577, allocations: 0 / 0.4956 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006155/0.1583, allocations: 469 kB / 0.496 GB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1583, allocations: 0 / 0.496 GB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002922/0.1586, allocations: 59.91 kB / 0.4961 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1586, allocations: 0 / 0.4961 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.1587, allocations: 7.984 kB / 0.4961 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1587, allocations: 4 kB / 0.4961 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1587, allocations: 0 / 0.4961 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008441/0.1595, allocations: 0.5438 MB / 0.4966 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.1597, allocations: 144.5 kB / 0.4968 GB, free: 4 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.1598, allocations: 8.047 kB / 0.4968 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.16, allocations: 19.94 kB / 0.4968 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.16, allocations: 19.97 kB / 0.4968 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.16, allocations: 4 kB / 0.4968 GB, free: 15.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.1603, allocations: 283.1 kB / 0.4971 GB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1603, allocations: 0 / 0.4971 GB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004743/0.1608, allocations: 143.4 kB / 0.4972 GB, free: 15.54 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.0001406/0.161, allocations: 103.2 kB / 0.4973 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008017/0.1618, allocations: 428.6 kB / 0.4977 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1618, allocations: 0 / 0.4977 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.162, allocations: 132.8 kB / 0.4979 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/0.1628, allocations: 143.9 kB / 0.498 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.1643, allocations: 0.8042 MB / 0.4988 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.1646, allocations: 0.8234 MB / 0.4996 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001873/0.1648, allocations: 55.23 kB / 0.4997 GB, free: 13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.711e-05/0.1649, allocations: 31.44 kB / 0.4997 GB, free: 12.97 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1649, allocations: 4 kB / 0.4997 GB, free: 12.97 MB / 382.1 MB Notification: Performance of Templates: time 0.009004/0.1739, allocations: 4.471 MB / 0.5041 GB, free: 8.547 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)