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.0009755/0.0009758, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007058/0.007058, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2544/0.2544, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004195/0.0004195, allocations: 11.98 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3584, allocations: 55.97 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.0035/0.362, allocations: 2.644 MB / 441.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.3646, allocations: 1.006 MB / 442.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003203/0.3649, allocations: 19.47 kB / 442.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002164/0.3651, allocations: 60.2 kB / 442.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.3653, allocations: 66.62 kB / 442.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.3659, allocations: 286.4 kB / 442.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004235/0.3663, allocations: 0.5115 MB / 443.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.3666, allocations: 215.2 kB / 443.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.3668, allocations: 146.5 kB / 443.5 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.3669, allocations: 151.9 kB / 443.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.367, allocations: 11.62 kB / 443.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.685e-05/0.367, allocations: 15.38 kB / 443.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.3671, allocations: 65.3 kB / 443.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.3673, allocations: 214.3 kB / 443.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003989/0.3677, allocations: 474.2 kB / 444.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3677, allocations: 0 / 444.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3677, allocations: 2.812 kB / 444.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3677, allocations: 0 / 444.4 MB, free: 35.6 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.001159/0.3689, allocations: 0.7363 MB / 445.1 MB, free: 35.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3689, allocations: 15.97 kB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.369, allocations: 63.28 kB / 445.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/0.3695, allocations: 401 kB / 445.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3696, allocations: 29.5 kB / 445.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.873e-05/0.3696, allocations: 44.11 kB / 445.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.3702, allocations: 427.2 kB / 446.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3703, allocations: 2.875 kB / 446.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.3703, allocations: 22.56 kB / 446.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3703, allocations: 9.25 kB / 446.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005584/0.3709, allocations: 306.4 kB / 446.4 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.3725, allocations: 1.541 MB / 448 MB, free: 33.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007088/0.3732, allocations: 378 kB / 448.3 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.3735, allocations: 152.1 kB / 448.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.3735, allocations: 3.141 kB / 448.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.3736, allocations: 33.77 kB / 448.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.3736, allocations: 0 / 448.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008268/0.3744, allocations: 430.8 kB / 449 MB, free: 32.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.3744, allocations: 109.4 kB / 449.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.3748, allocations: 407.2 kB / 449.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.3748, allocations: 32.3 kB / 449.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.375, allocations: 264.5 kB / 449.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.375, allocations: 99.84 kB / 449.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.3751, allocations: 40.08 kB / 449.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.764e-05/0.3752, allocations: 355.6 kB / 450.2 MB, free: 31.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.3754, allocations: 119 kB / 450.3 MB, free: 31.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.3757, allocations: 199.9 kB / 450.5 MB, free: 31.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.377, allocations: 0.5527 MB / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.377, allocations: 0 / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006082/0.3776, allocations: 402 kB / 451.5 MB, free: 31.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.162e-05/0.3777, allocations: 141.9 kB / 451.6 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3777, allocations: 6.984 kB / 451.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.3777, allocations: 2.969 kB / 451.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.378, allocations: 80.77 kB / 451.7 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.378, allocations: 6.781 kB / 451.7 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.3782, allocations: 41.3 kB / 451.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.3782, allocations: 14.47 kB / 451.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/0.3782, allocations: 2.594 kB / 451.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000356/0.3786, allocations: 265 kB / 452 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3786, allocations: 5.906 kB / 452 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.669e-06/0.3786, allocations: 8.25 kB / 452.1 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.3788, allocations: 59.8 kB / 452.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.3789, allocations: 6.812 kB / 452.1 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.379, allocations: 30.31 kB / 452.1 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.379, allocations: 11 kB / 452.2 MB, free: 30.8 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 0.0002437/0.3793, allocations: 256.8 kB / 452.4 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.3794, allocations: 50.38 kB / 452.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.411e-05/0.3795, allocations: 50.16 kB / 452.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3795, allocations: 3.312 kB / 452.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.3795, allocations: 0 / 452.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3795, allocations: 3.594 kB / 452.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.3799, allocations: 453.5 kB / 453 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3799, allocations: 0 / 453 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.3802, allocations: 67.84 kB / 453 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3802, allocations: 6.5 kB / 453 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3802, allocations: 4 kB / 453 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3802, allocations: 2.688 kB / 453 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3802, allocations: 0 / 453 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007895/0.381, allocations: 0.5676 MB / 453.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.3811, allocations: 158.2 kB / 453.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.3812, allocations: 4 kB / 453.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.3814, allocations: 21.47 kB / 453.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.3815, allocations: 15.45 kB / 453.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3815, allocations: 7.719 kB / 453.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3817, allocations: 283.5 kB / 454.1 MB, free: 29.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3817, allocations: 3.938 kB / 454.1 MB, free: 29.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004338/0.3821, allocations: 144.9 kB / 454.2 MB, free: 29.54 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 8.839e-05/0.3822, allocations: 103.2 kB / 454.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006799/0.3829, allocations: 439.3 kB / 454.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3829, allocations: 0 / 454.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.3832, allocations: 150.5 kB / 454.9 MB, free: 29.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006448/0.3838, allocations: 111.2 kB / 455 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.385, allocations: 1.028 MB / 456 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.3852, allocations: 0.8308 MB / 456.9 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.3854, allocations: 52.25 kB / 456.9 MB, free: 27.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.801e-05/0.3855, allocations: 28.62 kB / 457 MB, free: 27.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3855, allocations: 1.031 kB / 457 MB, free: 27.84 MB / 350.1 MB Notification: Performance of Templates: time 0.008349/0.3939, allocations: 4.164 MB / 461.1 MB, free: 27.55 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)