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: "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008263/0.0008264, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001285/0.001285, allocations: 168.7 kB / 15.95 MB, free: 204 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.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2262/0.2262, allocations: 22.35 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004123, allocations: 8 kB / 382 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3022, allocations: 55.98 MB / 438 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002749/0.305, allocations: 2.509 MB / 440.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.307, allocations: 0.9798 MB / 441.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002955/0.3073, allocations: 19.25 kB / 441.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.3075, allocations: 54.5 kB / 441.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.3077, allocations: 65.42 kB / 441.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.3083, allocations: 245.4 kB / 441.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003815/0.3087, allocations: 492 kB / 442.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.3089, allocations: 166 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.309, allocations: 128.4 kB / 442.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.3092, allocations: 145 kB / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.3092, allocations: 13.34 kB / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.064e-05/0.3093, allocations: 11.06 kB / 442.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.3093, allocations: 60.84 kB / 442.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.936e-05/0.3094, allocations: 96.2 kB / 443 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.3096, allocations: 375.2 kB / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.3096, allocations: 2.812 kB / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3096, allocations: 0 / 443.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3097, allocations: 4 kB / 443.3 MB, free: 35.67 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.0009217/0.3106, allocations: 0.7328 MB / 444.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3106, allocations: 11 kB / 444.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.616e-05/0.3107, allocations: 68.69 kB / 444.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.078e-05/0.3108, allocations: 59.38 kB / 444.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.3113, allocations: 399.1 kB / 444.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.3114, allocations: 31.03 kB / 444.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.3114, allocations: 35.25 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.3121, allocations: 426.3 kB / 445.1 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.3121, allocations: 3.953 kB / 445.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.154e-05/0.3122, allocations: 19.19 kB / 445.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3122, allocations: 5.906 kB / 445.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007226/0.3129, allocations: 298 kB / 445.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.3152, allocations: 1.546 MB / 446.9 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009633/0.3162, allocations: 375.3 kB / 447.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003529/0.3165, allocations: 141.5 kB / 447.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/0.3166, allocations: 6.219 kB / 447.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.3166, allocations: 41.8 kB / 447.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.575e-06/0.3166, allocations: 3.938 kB / 447.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001121/0.3178, allocations: 428 kB / 447.9 MB, free: 32.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.3178, allocations: 108.6 kB / 448 MB, free: 32.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.3183, allocations: 412.4 kB / 448.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.3184, allocations: 29.7 kB / 448.5 MB, free: 32.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.3186, allocations: 265.4 kB / 448.7 MB, free: 32.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.3187, allocations: 104.8 kB / 448.8 MB, free: 32.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.016e-05/0.3187, allocations: 7.031 kB / 448.8 MB, free: 32.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.3188, allocations: 353.5 kB / 449.2 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.3191, allocations: 118.1 kB / 449.3 MB, free: 31.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.3195, allocations: 196.8 kB / 449.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.3199, allocations: 141.8 kB / 449.6 MB, free: 31.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3199, allocations: 0 / 449.6 MB, free: 31.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009035/0.3208, allocations: 396.9 kB / 450 MB, free: 31.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.904e-05/0.3209, allocations: 142.1 kB / 450.1 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3209, allocations: 6.641 kB / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.3209, allocations: 6.703 kB / 450.2 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.3214, allocations: 68.64 kB / 450.2 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.3214, allocations: 10.31 kB / 450.2 MB, free: 31.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.3217, allocations: 55.55 kB / 450.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.3217, allocations: 8.5 kB / 450.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.655e-06/0.3217, allocations: 2.812 kB / 450.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005368/0.3223, allocations: 265.4 kB / 450.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.3223, allocations: 0 / 450.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/0.3223, allocations: 5.375 kB / 450.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.3226, allocations: 59.22 kB / 450.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3226, allocations: 2.844 kB / 450.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.3228, allocations: 37.47 kB / 450.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3229, allocations: 11.88 kB / 450.7 MB, free: 31.05 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.0004065/0.3233, allocations: 242.3 kB / 450.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.3234, allocations: 47.72 kB / 451 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.3235, allocations: 53.17 kB / 451 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3236, allocations: 2.625 kB / 451 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.3236, allocations: 11.27 kB / 451 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3236, allocations: 0 / 451 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007202/0.3243, allocations: 464.8 kB / 451.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3244, allocations: 4 kB / 451.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.3248, allocations: 58.84 kB / 451.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3248, allocations: 0 / 451.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.3248, allocations: 6.625 kB / 451.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3248, allocations: 2.625 kB / 451.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3248, allocations: 0 / 451.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.3261, allocations: 0.5777 MB / 452.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.3263, allocations: 150.3 kB / 452.3 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.752e-05/0.3264, allocations: 7.5 kB / 452.3 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.3267, allocations: 27.5 kB / 452.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.746e-05/0.3267, allocations: 11.59 kB / 452.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.3268, allocations: 6.281 kB / 452.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000393/0.3272, allocations: 282.6 kB / 452.6 MB, free: 29.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3272, allocations: 0 / 452.6 MB, free: 29.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007289/0.3279, allocations: 143.1 kB / 452.7 MB, free: 29.79 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 0.001313/0.3292, allocations: 1.112 MB / 453.8 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.3303, allocations: 427.9 kB / 454.3 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3303, allocations: 0 / 454.3 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.3307, allocations: 149 kB / 454.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008855/0.3316, allocations: 111.7 kB / 454.5 MB, free: 28.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/0.3367, allocations: 2.558 MB / 457.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.3371, allocations: 0.8346 MB / 457.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003306/0.3374, allocations: 57.23 kB / 458 MB, free: 26.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.3377, allocations: 158.2 kB / 458.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3377, allocations: 0 / 458.1 MB, free: 26.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3607, allocations: 8.212 MB / 466.3 MB, free: 25.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.361, allocations: 181.1 kB / 466.5 MB, free: 25.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.242, allocations: 0 / 466.5 MB, free: 25.71 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_TurbineFollows_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1) Environment - environmentSimulation: