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.001378/0.001378, allocations: 118.4 kB / 16.37 MB, free: 6 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.001949/0.001949, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09088/0.09088, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 58.09 kB / 382.2 MB, free: 41.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1309, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.00443/0.1354, allocations: 3.018 MB / 440.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.1375, allocations: 1.032 MB / 441.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004777/0.138, allocations: 19.88 kB / 441.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003149/0.1384, allocations: 83.06 kB / 441.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000333/0.1388, allocations: 83.14 kB / 441.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007453/0.1395, allocations: 322.7 kB / 441.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.1401, allocations: 0.5466 MB / 442.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.1405, allocations: 235.1 kB / 442.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1406, allocations: 187.1 kB / 442.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.1408, allocations: 214.7 kB / 442.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.909e-05/0.1409, allocations: 44 kB / 443 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.127e-05/0.141, allocations: 48 kB / 443 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.033e-05/0.1411, allocations: 99.62 kB / 443.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.1412, allocations: 238.5 kB / 443.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.1417, allocations: 0.5369 MB / 443.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1417, allocations: 0 / 443.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1417, allocations: 0 / 443.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1417, allocations: 4 kB / 443.9 MB, free: 5.539 MB / 318.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.001088/0.1428, allocations: 0.8102 MB / 444.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.1429, allocations: 15.97 kB / 444.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.356e-05/0.143, allocations: 60.19 kB / 444.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.1435, allocations: 433.7 kB / 445.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.1435, allocations: 29.38 kB / 445.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.1436, allocations: 36.38 kB / 445.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006296/0.1442, allocations: 427.8 kB / 445.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1443, allocations: 0 / 445.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.1443, allocations: 12 kB / 445.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1443, allocations: 8 kB / 445.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005348/0.1449, allocations: 290.4 kB / 446 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.1466, allocations: 1.519 MB / 447.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.1473, allocations: 351.8 kB / 447.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.1476, allocations: 137.1 kB / 448 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.1476, allocations: 8.391 kB / 448 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1477, allocations: 42.73 kB / 448 MB, free: 1.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.854e-06/0.1477, allocations: 0 / 448 MB, free: 1.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008143/0.1485, allocations: 405.1 kB / 448.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1486, allocations: 110.8 kB / 448.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/0.1489, allocations: 406 kB / 448.9 MB, free: 252 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.149, allocations: 33.7 kB / 449 MB, free: 212 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.1492, allocations: 264.1 kB / 449.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.1493, allocations: 98.55 kB / 449.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.1494, allocations: 61.7 kB / 449.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1495, allocations: 354.8 kB / 449.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.1498, allocations: 125 kB / 449.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.1501, allocations: 196.6 kB / 450 MB, free: 15.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.1514, allocations: 0.5332 MB / 450.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1514, allocations: 0 / 450.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006373/0.1521, allocations: 382.3 kB / 450.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1521, allocations: 8.156 kB / 450.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1521, allocations: 8 kB / 450.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1521, allocations: 4 kB / 451 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.1524, allocations: 71.89 kB / 451 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.1525, allocations: 4 kB / 451 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.1527, allocations: 39.67 kB / 451.1 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.1527, allocations: 12 kB / 451.1 MB, free: 13.99 MB / 334.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.0003321/0.153, allocations: 212.4 kB / 451.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002223/0.1533, allocations: 165.2 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00101/0.1543, allocations: 463.4 kB / 451.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.205e-06/0.1543, allocations: 0 / 451.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004818/0.1548, allocations: 336.7 kB / 452.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.966e-06/0.1548, allocations: 8.219 kB / 452.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.1548, allocations: 4 kB / 452.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.401e-06/0.1548, allocations: 4 kB / 452.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.1551, allocations: 59.91 kB / 452.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1551, allocations: 4 kB / 452.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1553, allocations: 35.67 kB / 452.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1553, allocations: 8 kB / 452.3 MB, free: 12.65 MB / 334.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.0001438/0.1555, allocations: 212.6 kB / 452.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.1555, allocations: 51.38 kB / 452.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.1556, allocations: 52.69 kB / 452.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1556, allocations: 0 / 452.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1557, allocations: 4 kB / 452.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1557, allocations: 0 / 452.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004776/0.1562, allocations: 469 kB / 453.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1562, allocations: 0 / 453.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.1565, allocations: 55.91 kB / 453.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1565, allocations: 4 kB / 453.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.1565, allocations: 8 kB / 453.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1565, allocations: 0 / 453.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1565, allocations: 3.938 kB / 453.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009958/0.1575, allocations: 0.5427 MB / 453.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1577, allocations: 148.4 kB / 453.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.1578, allocations: 8 kB / 453.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.158, allocations: 15.98 kB / 453.9 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.466e-05/0.158, allocations: 23.95 kB / 453.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.1581, allocations: 4 kB / 453.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002847/0.1583, allocations: 283.1 kB / 454.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1583, allocations: 0 / 454.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004736/0.1588, allocations: 139.5 kB / 454.3 MB, free: 10.56 MB / 334.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.0001204/0.159, allocations: 107.2 kB / 454.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007844/0.1597, allocations: 420.1 kB / 454.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1598, allocations: 4.25 kB / 454.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.16, allocations: 140 kB / 455 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006592/0.1607, allocations: 135.2 kB / 455.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.1623, allocations: 0.8004 MB / 455.9 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.1627, allocations: 0.8351 MB / 456.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002196/0.163, allocations: 47.27 kB / 456.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.75e-05/0.1631, allocations: 27.44 kB / 456.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1631, allocations: 3.938 kB / 456.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of Templates: time 0.008878/0.172, allocations: 4.428 MB / 461.3 MB, free: 3.621 MB / 334.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)