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.008453/0.008453, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.001896/0.001896, allocations: 197 kB / 16.67 MB, free: 5.949 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2427/0.2427, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 60.27 kB / 437.1 MB, free: 33.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1204, allocations: 54.96 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.005863/0.1263, allocations: 3.023 MB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003032/0.1293, allocations: 1.025 MB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007019/0.1301, allocations: 15.94 kB / 496.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004622/0.1306, allocations: 87 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004594/0.1311, allocations: 91.12 kB / 496.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1323, allocations: 313.5 kB / 496.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1333, allocations: 0.5544 MB / 497.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006575/0.134, allocations: 231.1 kB / 497.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003814/0.1344, allocations: 191 kB / 497.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003713/0.1348, allocations: 206.8 kB / 497.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.1349, allocations: 44 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.135, allocations: 48 kB / 497.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.1352, allocations: 107.6 kB / 497.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.1355, allocations: 238.5 kB / 498.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008605/0.1364, allocations: 0.5405 MB / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1364, allocations: 0 / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1364, allocations: 0 / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.483e-05/0.1365, allocations: 0 / 498.7 MB, free: 10.5 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.001855/0.1383, allocations: 0.8254 MB / 499.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/0.1384, allocations: 12.03 kB / 499.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.1387, allocations: 68.5 kB / 499.6 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.1398, allocations: 442.1 kB / 0.4883 GB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.1398, allocations: 25.38 kB / 0.4884 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.895e-05/0.1399, allocations: 36.38 kB / 0.4884 GB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.141, allocations: 427.7 kB / 0.4888 GB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.141, allocations: 4 kB / 0.4888 GB, free: 8.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/0.1411, allocations: 12 kB / 0.4888 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1411, allocations: 16 kB / 0.4888 GB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008347/0.142, allocations: 286.3 kB / 0.4891 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002591/0.1446, allocations: 1.516 MB / 0.4906 GB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1456, allocations: 347.4 kB / 0.4909 GB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.146, allocations: 141.2 kB / 0.491 GB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.146, allocations: 4.859 kB / 0.4911 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.1461, allocations: 38.73 kB / 0.4911 GB, free: 6.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.495e-06/0.1461, allocations: 3.938 kB / 0.4911 GB, free: 6.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.001253/0.1474, allocations: 412.5 kB / 0.4915 GB, free: 5.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.1474, allocations: 106.8 kB / 0.4916 GB, free: 5.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005908/0.148, allocations: 410 kB / 0.492 GB, free: 5.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.1481, allocations: 29.7 kB / 0.492 GB, free: 5.145 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.1483, allocations: 268.4 kB / 0.4923 GB, free: 4.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.36e-05/0.1484, allocations: 103.1 kB / 0.4924 GB, free: 4.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1485, allocations: 61.69 kB / 0.4924 GB, free: 4.711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1486, allocations: 354.8 kB / 0.4928 GB, free: 4.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.149, allocations: 117.1 kB / 0.4929 GB, free: 4.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.1494, allocations: 204.8 kB / 0.4931 GB, free: 4.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/0.1516, allocations: 0.5332 MB / 0.4936 GB, free: 3.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1516, allocations: 0 / 0.4936 GB, free: 3.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009276/0.1526, allocations: 390.8 kB / 0.494 GB, free: 3.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1526, allocations: 8.031 kB / 0.494 GB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1526, allocations: 4 kB / 0.494 GB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1526, allocations: 4 kB / 0.494 GB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003941/0.153, allocations: 67.84 kB / 0.494 GB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.1531, allocations: 4 kB / 0.494 GB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.1534, allocations: 35.83 kB / 0.4941 GB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.1535, allocations: 12 kB / 0.4941 GB, free: 2.93 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.0005051/0.154, allocations: 223.9 kB / 0.4943 GB, free: 2.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003385/0.1543, allocations: 161 kB / 0.4945 GB, free: 2.523 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001583/0.1559, allocations: 467.2 kB / 0.4949 GB, free: 2.043 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.749e-06/0.1559, allocations: 4 kB / 0.4949 GB, free: 2.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0007771/0.1567, allocations: 341.2 kB / 0.4952 GB, free: 1.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1568, allocations: 4 kB / 0.4952 GB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1568, allocations: 4 kB / 0.4952 GB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.1568, allocations: 7.938 kB / 0.4952 GB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.1571, allocations: 59.92 kB / 0.4953 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1572, allocations: 0 / 0.4953 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.1575, allocations: 31.83 kB / 0.4953 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.1575, allocations: 12 kB / 0.4953 GB, free: 1.582 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.0001992/0.1577, allocations: 204.2 kB / 0.4955 GB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1578, allocations: 55.55 kB / 0.4956 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.158, allocations: 56.69 kB / 0.4956 GB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.158, allocations: 7.938 kB / 0.4957 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.158, allocations: 0 / 0.4957 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1581, allocations: 0 / 0.4957 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.1588, allocations: 465.1 kB / 0.4961 GB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1589, allocations: 0 / 0.4961 GB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.1593, allocations: 55.97 kB / 0.4961 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1593, allocations: 0 / 0.4961 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.1593, allocations: 11.98 kB / 0.4962 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1594, allocations: 0 / 0.4962 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.1594, allocations: 7.938 kB / 0.4962 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.1607, allocations: 0.548 MB / 0.4967 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.1609, allocations: 145 kB / 0.4968 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.165e-05/0.161, allocations: 11.98 kB / 0.4969 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.1613, allocations: 15.98 kB / 0.4969 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.1613, allocations: 15.97 kB / 0.4969 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.1614, allocations: 8 kB / 0.4969 GB, free: 15.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003934/0.1618, allocations: 283.1 kB / 0.4972 GB, free: 15.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1618, allocations: 0 / 0.4972 GB, free: 15.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008633/0.1627, allocations: 147.6 kB / 0.4973 GB, free: 15.48 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.0001462/0.1628, allocations: 103.2 kB / 0.4974 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.164, allocations: 429.4 kB / 0.4978 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.164, allocations: 0 / 0.4978 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003716/0.1644, allocations: 135.9 kB / 0.4979 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009945/0.1654, allocations: 128.6 kB / 0.4981 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.1674, allocations: 0.8304 MB / 0.4989 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005085/0.1679, allocations: 0.8312 MB / 0.4997 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003271/0.1682, allocations: 47.25 kB / 0.4997 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.1684, allocations: 31.44 kB / 0.4998 GB, free: 12.9 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1684, allocations: 0 / 0.4998 GB, free: 12.9 MB / 382.1 MB Notification: Performance of Templates: time 0.01128/0.1797, allocations: 4.48 MB / 0.5041 GB, free: 8.473 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)