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.0009754/0.0009756, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001156/0.001156, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2588/0.2588, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003441, allocations: 11.98 kB / 381.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.355, allocations: 55.98 MB / 437.8 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002577/0.3576, allocations: 2.53 MB / 440.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3589, allocations: 0.9471 MB / 441.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3592, allocations: 21.5 kB / 441.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.051e-05/0.3592, allocations: 37.55 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003766/0.3596, allocations: 130.4 kB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.3601, allocations: 249.9 kB / 441.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.3606, allocations: 359.9 kB / 442.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.3609, allocations: 170.5 kB / 442.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.361, allocations: 133.9 kB / 442.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.3612, allocations: 147.4 kB / 442.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.3612, allocations: 12.62 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.215e-05/0.3613, allocations: 11.81 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.686e-05/0.3613, allocations: 60.45 kB / 442.6 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.54e-05/0.3614, allocations: 98.58 kB / 442.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.3616, allocations: 383.2 kB / 443.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.3616, allocations: 0 / 443.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3617, allocations: 0 / 443.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.3617, allocations: 0 / 443.1 MB, free: 35.82 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.0008751/0.3625, allocations: 0.7286 MB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.3626, allocations: 8.562 kB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.3627, allocations: 62.19 kB / 443.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.3631, allocations: 394.3 kB / 444.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.3631, allocations: 26.09 kB / 444.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.3632, allocations: 38.12 kB / 444.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/0.3638, allocations: 423.3 kB / 444.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3638, allocations: 0 / 444.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.3638, allocations: 18.89 kB / 444.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3638, allocations: 12.75 kB / 444.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005139/0.3643, allocations: 299.9 kB / 445 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.3659, allocations: 1.544 MB / 446.6 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007242/0.3666, allocations: 386.7 kB / 447 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.3666, allocations: 3.203 kB / 447 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.3666, allocations: 37.67 kB / 447 MB, free: 33.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.373e-06/0.3667, allocations: 0 / 447 MB, free: 33.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007564/0.3674, allocations: 431.9 kB / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.3675, allocations: 111.4 kB / 447.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.3678, allocations: 403.1 kB / 447.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.3678, allocations: 32.14 kB / 448 MB, free: 32.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.368, allocations: 263.5 kB / 448.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.472e-05/0.3681, allocations: 100.4 kB / 448.3 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.3681, allocations: 6.375 kB / 448.3 MB, free: 32.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.3682, allocations: 361.8 kB / 448.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.3684, allocations: 119.7 kB / 448.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.3687, allocations: 195.9 kB / 449 MB, free: 31.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.3689, allocations: 141.2 kB / 449.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3689, allocations: 0 / 449.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005777/0.3695, allocations: 394.1 kB / 449.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.3697, allocations: 0.7042 MB / 450.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3697, allocations: 2.219 kB / 450.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.748e-05/0.3697, allocations: 3.844 kB / 450.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.37, allocations: 71.97 kB / 450.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3701, allocations: 7.281 kB / 450.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.3703, allocations: 48.84 kB / 450.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.3703, allocations: 11.22 kB / 450.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.211e-06/0.3703, allocations: 3.562 kB / 450.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003518/0.3707, allocations: 264 kB / 450.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/0.3707, allocations: 4.031 kB / 450.6 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.659e-06/0.3707, allocations: 5.812 kB / 450.6 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.3709, allocations: 60.47 kB / 450.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3709, allocations: 6.531 kB / 450.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.3711, allocations: 29.62 kB / 450.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.3711, allocations: 12.16 kB / 450.7 MB, free: 30.75 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(flow=false start = F.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.3713, allocations: 261.5 kB / 451 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.3714, allocations: 43.94 kB / 451 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.606e-05/0.3715, allocations: 57.39 kB / 451.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3715, allocations: 2.844 kB / 451.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3715, allocations: 3.938 kB / 451.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3715, allocations: 3.422 kB / 451.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003978/0.3719, allocations: 459.5 kB / 451.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.372, allocations: 1.969 kB / 451.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002922/0.3722, allocations: 60.08 kB / 451.6 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3723, allocations: 0 / 451.6 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3723, allocations: 6.5 kB / 451.6 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3723, allocations: 5.922 kB / 451.6 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3723, allocations: 0 / 451.6 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007442/0.373, allocations: 0.5732 MB / 452.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.3732, allocations: 143.4 kB / 452.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.3732, allocations: 14.14 kB / 452.3 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3734, allocations: 25.45 kB / 452.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.3735, allocations: 20.28 kB / 452.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3735, allocations: 6.625 kB / 452.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.3737, allocations: 278.1 kB / 452.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3737, allocations: 0 / 452.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.3742, allocations: 138.7 kB / 452.8 MB, free: 29.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.674e-05/0.3743, allocations: 103 kB / 452.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006799/0.375, allocations: 431.4 kB / 453.3 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.375, allocations: 0 / 453.3 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.3752, allocations: 144.8 kB / 453.5 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.3758, allocations: 105.2 kB / 453.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.377, allocations: 0.9614 MB / 454.5 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3773, allocations: 0.8456 MB / 455.4 MB, free: 27.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.3775, allocations: 46.42 kB / 455.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.719e-05/0.3775, allocations: 28.16 kB / 455.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3775, allocations: 0 / 455.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of Templates: time 0.009064/0.3866, allocations: 4.027 MB / 459.5 MB, free: 27.55 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: