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.006815/0.006815, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001727/0.001727, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.327/1.327, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2058/0.2058, allocations: 22.35 MB / 313 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.89 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2543, allocations: 54.94 MB / 435.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003541/0.2579, allocations: 3.051 MB / 438.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.2596, allocations: 1.008 MB / 439.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.26, allocations: 16.81 kB / 439.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.2603, allocations: 66.75 kB / 439.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.2606, allocations: 58.34 kB / 439.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006021/0.2612, allocations: 293.3 kB / 440.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.2617, allocations: 0.5136 MB / 440.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003268/0.2621, allocations: 227.4 kB / 440.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.2623, allocations: 167.2 kB / 441.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.2625, allocations: 192.8 kB / 441.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.2625, allocations: 23.69 kB / 441.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.791e-05/0.2626, allocations: 22.78 kB / 441.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.2627, allocations: 78.84 kB / 441.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2628, allocations: 207.3 kB / 441.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.2631, allocations: 389.9 kB / 442 MB, free: 35.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2631, allocations: 0 / 442 MB, free: 35.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.2631, allocations: 7.938 kB / 442 MB, free: 35.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.2631, allocations: 0 / 442 MB, free: 35.48 MB / 350.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.001061/0.2642, allocations: 0.8134 MB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2642, allocations: 13.06 kB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/0.2643, allocations: 60.56 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.2647, allocations: 411.4 kB / 443.3 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.2647, allocations: 25.06 kB / 443.3 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.123e-05/0.2648, allocations: 35.06 kB / 443.3 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.2654, allocations: 431.5 kB / 443.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2654, allocations: 0 / 443.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.2654, allocations: 14.91 kB / 443.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.2654, allocations: 10.53 kB / 443.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000521/0.266, allocations: 280.8 kB / 444 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2676, allocations: 1.545 MB / 445.6 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000627/0.2682, allocations: 349.8 kB / 445.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.2684, allocations: 132.2 kB / 446.1 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.2685, allocations: 3.578 kB / 446.1 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.2685, allocations: 38.48 kB / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.353e-06/0.2685, allocations: 0 / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.000757/0.2693, allocations: 409.3 kB / 446.5 MB, free: 32.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.2693, allocations: 108.6 kB / 446.6 MB, free: 32.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.2696, allocations: 414.6 kB / 447 MB, free: 32.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2697, allocations: 29.7 kB / 447 MB, free: 32.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2698, allocations: 260 kB / 447.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.208e-05/0.2699, allocations: 101.7 kB / 447.4 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.2699, allocations: 66.23 kB / 447.5 MB, free: 31.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.423e-05/0.27, allocations: 358.8 kB / 447.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.2702, allocations: 108.9 kB / 447.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.2705, allocations: 196.4 kB / 448.1 MB, free: 31.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.2718, allocations: 0.5201 MB / 448.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2718, allocations: 2.938 kB / 448.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005825/0.2724, allocations: 389.9 kB / 449 MB, free: 30.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2724, allocations: 6.375 kB / 449 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2724, allocations: 2.625 kB / 449 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.2724, allocations: 3.375 kB / 449 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.2727, allocations: 70.11 kB / 449.1 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2728, allocations: 2.625 kB / 449.1 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.273, allocations: 44.19 kB / 449.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.273, allocations: 13.09 kB / 449.1 MB, free: 30.94 MB / 350.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.000331/0.2733, allocations: 210.8 kB / 449.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001647/0.2735, allocations: 177.7 kB / 449.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000971/0.2745, allocations: 471.4 kB / 450 MB, free: 30.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.452e-06/0.2745, allocations: 0 / 450 MB, free: 30.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004133/0.2749, allocations: 333.1 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-06/0.2749, allocations: 5.5 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.2749, allocations: 2.75 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.166e-06/0.2749, allocations: 6.625 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.2752, allocations: 68.23 kB / 450.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2752, allocations: 2.812 kB / 450.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.2754, allocations: 28.16 kB / 450.4 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.2754, allocations: 20.64 kB / 450.4 MB, free: 30.23 MB / 350.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 9.616e-05/0.2755, allocations: 206 kB / 450.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.033e-05/0.2755, allocations: 51.44 kB / 450.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.868e-05/0.2756, allocations: 58.08 kB / 450.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2756, allocations: 2.938 kB / 450.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2757, allocations: 0 / 450.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2757, allocations: 3.375 kB / 450.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/0.2761, allocations: 465.2 kB / 451.2 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2761, allocations: 0 / 451.2 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.2764, allocations: 49.7 kB / 451.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2764, allocations: 2.531 kB / 451.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.2764, allocations: 6.562 kB / 451.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2764, allocations: 0 / 451.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2764, allocations: 0 / 451.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007403/0.2772, allocations: 0.5517 MB / 451.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.2773, allocations: 148.4 kB / 452 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/0.2774, allocations: 12.06 kB / 452 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.2776, allocations: 19.73 kB / 452 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.2776, allocations: 16.7 kB / 452 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.2776, allocations: 10.53 kB / 452 MB, free: 29.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.2779, allocations: 283.5 kB / 452.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2779, allocations: 0 / 452.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004317/0.2783, allocations: 139 kB / 452.4 MB, free: 29 MB / 350.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 9.712e-05/0.2784, allocations: 99 kB / 452.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006554/0.2791, allocations: 428.1 kB / 453 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2791, allocations: 0 / 453 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.2793, allocations: 137.6 kB / 453.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.2799, allocations: 121.2 kB / 453.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.2811, allocations: 1.014 MB / 454.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.2813, allocations: 0.83 MB / 455 MB, free: 27.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2815, allocations: 32.09 kB / 455.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2815, allocations: 0 / 455.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of Templates: time 0.009242/0.2907, allocations: 5.272 MB / 460.4 MB, free: 26.75 MB / 350.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)