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.00103/0.00103, allocations: 99.55 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.001084/0.001084, allocations: 177.3 kB / 15.94 MB, free: 228 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.41/1.41, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2502/0.2502, allocations: 22.34 MB / 313.3 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004106, allocations: 11.98 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.4055, allocations: 55.97 MB / 437.9 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003879/0.4094, allocations: 2.521 MB / 440.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.4118, allocations: 0.9535 MB / 441.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.4123, allocations: 23.06 kB / 441.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.4124, allocations: 33.47 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006245/0.4131, allocations: 132.9 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007329/0.4138, allocations: 255.2 kB / 441.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006191/0.4144, allocations: 356.9 kB / 442.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.4148, allocations: 169.1 kB / 442.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.415, allocations: 120.8 kB / 442.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.4152, allocations: 155.2 kB / 442.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.4153, allocations: 14.25 kB / 442.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.186e-05/0.4153, allocations: 10.69 kB / 442.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.273e-05/0.4154, allocations: 60.89 kB / 442.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.681e-05/0.4155, allocations: 103.1 kB / 442.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.4159, allocations: 375.8 kB / 443.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.4159, allocations: 0 / 443.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4159, allocations: 0 / 443.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.4159, allocations: 0 / 443.1 MB, free: 35.97 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.001222/0.4171, allocations: 0.7312 MB / 443.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4172, allocations: 8.5 kB / 443.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.12e-05/0.4173, allocations: 76.47 kB / 443.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.4174, allocations: 61.41 kB / 444 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.418, allocations: 396.7 kB / 444.4 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.418, allocations: 25.59 kB / 444.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/0.4181, allocations: 37.91 kB / 444.5 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/0.419, allocations: 426.3 kB / 444.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.419, allocations: 7.641 kB / 444.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.4191, allocations: 11.81 kB / 444.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.4191, allocations: 6.156 kB / 444.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007832/0.4199, allocations: 301.4 kB / 445.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.4222, allocations: 1.549 MB / 446.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.4233, allocations: 384.9 kB / 447.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.4234, allocations: 5.734 kB / 447.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.4234, allocations: 30.8 kB / 447.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.854e-06/0.4234, allocations: 0 / 447.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001221/0.4246, allocations: 435.8 kB / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.4247, allocations: 113 kB / 447.7 MB, free: 33.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006124/0.4253, allocations: 407.3 kB / 448.1 MB, free: 32.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.4254, allocations: 32.2 kB / 448.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.4257, allocations: 263.5 kB / 448.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.4258, allocations: 96.02 kB / 448.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.4258, allocations: 7.938 kB / 448.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.426, allocations: 365.5 kB / 448.8 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.4263, allocations: 111.5 kB / 448.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/0.4268, allocations: 193.4 kB / 449.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004164/0.4272, allocations: 146.5 kB / 449.3 MB, free: 31.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4272, allocations: 0 / 449.3 MB, free: 31.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009773/0.4282, allocations: 383.1 kB / 449.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002321/0.4284, allocations: 0.7072 MB / 450.4 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4285, allocations: 2.812 kB / 450.4 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.4285, allocations: 3 kB / 450.4 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.429, allocations: 78.59 kB / 450.4 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.429, allocations: 6.344 kB / 450.4 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.4293, allocations: 45.59 kB / 450.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.4294, allocations: 16.16 kB / 450.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/0.4294, allocations: 2.844 kB / 450.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006331/0.43, allocations: 263.3 kB / 450.8 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.43, allocations: 2.938 kB / 450.8 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.913e-06/0.4301, allocations: 10.7 kB / 450.8 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.4304, allocations: 58.84 kB / 450.8 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.4304, allocations: 2.562 kB / 450.8 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.4307, allocations: 37.83 kB / 450.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.4307, allocations: 11.59 kB / 450.9 MB, free: 30.82 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.0003944/0.4312, allocations: 249.8 kB / 451.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.4313, allocations: 45.88 kB / 451.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.4314, allocations: 49.8 kB / 451.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.4314, allocations: 4.438 kB / 451.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/0.4314, allocations: 0 / 451.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.4315, allocations: 3.234 kB / 451.2 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.4322, allocations: 468.6 kB / 451.7 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4322, allocations: 0 / 451.7 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.4326, allocations: 68.59 kB / 451.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4326, allocations: 0 / 451.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.4327, allocations: 4 kB / 451.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4327, allocations: 2.75 kB / 451.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4327, allocations: 0 / 451.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.4339, allocations: 0.5736 MB / 452.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.4341, allocations: 150.4 kB / 452.5 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.707e-05/0.4342, allocations: 7.938 kB / 452.5 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.4345, allocations: 23.03 kB / 452.5 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.685e-05/0.4346, allocations: 17.64 kB / 452.5 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.4346, allocations: 5.25 kB / 452.5 MB, free: 29.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003644/0.435, allocations: 277.8 kB / 452.8 MB, free: 29.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.435, allocations: 0 / 452.8 MB, free: 29.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007473/0.4358, allocations: 149.2 kB / 453 MB, free: 29.55 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.001395/0.4372, allocations: 1.107 MB / 454.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.4383, allocations: 436.5 kB / 454.5 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4383, allocations: 4.125 kB / 454.5 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.4387, allocations: 135.5 kB / 454.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008011/0.4395, allocations: 110.9 kB / 454.7 MB, free: 28.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005387/0.4449, allocations: 3.602 MB / 458.3 MB, free: 26.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.4453, allocations: 0.8436 MB / 459.2 MB, free: 25.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003375/0.4457, allocations: 53.41 kB / 459.2 MB, free: 25.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/0.446, allocations: 154.4 kB / 459.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.446, allocations: 4 kB / 459.4 MB, free: 25.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.4791, allocations: 8.186 MB / 467.6 MB, free: 24.69 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.4794, allocations: 176.1 kB / 467.7 MB, free: 24.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.437, allocations: 4 kB / 467.7 MB, free: 24.44 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: