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.001179/0.001179, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001162/0.001162, allocations: 192.8 kB / 16.25 MB, free: 6.633 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.163/1.163, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1676/0.1676, allocations: 22.36 MB / 312.4 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 63.89 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2085, allocations: 54.95 MB / 435.4 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002853/0.2114, allocations: 3.031 MB / 438.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2125, allocations: 1.011 MB / 439.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001917/0.2127, allocations: 22.59 kB / 439.4 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.2129, allocations: 62.25 kB / 439.5 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.2131, allocations: 61.91 kB / 439.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004622/0.2135, allocations: 292.1 kB / 439.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.2139, allocations: 0.548 MB / 440.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/0.2141, allocations: 232.4 kB / 440.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2143, allocations: 195 kB / 440.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.2144, allocations: 210.7 kB / 441 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.2144, allocations: 46.72 kB / 441 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.357e-05/0.2145, allocations: 45.97 kB / 441.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.296e-05/0.2146, allocations: 102.7 kB / 441.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.2147, allocations: 236.2 kB / 441.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.2149, allocations: 0.5193 MB / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.215, allocations: 0 / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.215, allocations: 0 / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.215, allocations: 0 / 441.9 MB, free: 35.3 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.0007975/0.2158, allocations: 0.8112 MB / 442.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.2158, allocations: 13 kB / 442.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.21e-05/0.2159, allocations: 76.41 kB / 442.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.2159, allocations: 67.5 kB / 442.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.2163, allocations: 412 kB / 443.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.2163, allocations: 27.44 kB / 443.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.2163, allocations: 36 kB / 443.4 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.2169, allocations: 423.1 kB / 443.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2169, allocations: 2.75 kB / 443.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.2169, allocations: 18.78 kB / 443.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2169, allocations: 8.344 kB / 443.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.2174, allocations: 280.2 kB / 444.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.2186, allocations: 1.531 MB / 445.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.2192, allocations: 354.5 kB / 446 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.2194, allocations: 136.2 kB / 446.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.2194, allocations: 9.516 kB / 446.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.259e-05/0.2195, allocations: 30.8 kB / 446.1 MB, free: 32.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.303e-06/0.2195, allocations: 0 / 446.1 MB, free: 32.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.000663/0.2201, allocations: 400.7 kB / 446.5 MB, free: 32.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.2202, allocations: 113.9 kB / 446.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.2204, allocations: 409.8 kB / 447 MB, free: 32.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.2205, allocations: 32.48 kB / 447.1 MB, free: 32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2206, allocations: 268.3 kB / 447.3 MB, free: 31.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.2206, allocations: 98.19 kB / 447.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/0.2207, allocations: 65.91 kB / 447.5 MB, free: 31.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.689e-05/0.2208, allocations: 359 kB / 447.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.221, allocations: 115.1 kB / 448 MB, free: 31.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.2212, allocations: 191.3 kB / 448.1 MB, free: 31.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.2223, allocations: 0.5309 MB / 448.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.2223, allocations: 2.219 kB / 448.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005176/0.2229, allocations: 388.2 kB / 449.1 MB, free: 30.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.2229, allocations: 11.19 kB / 449.1 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2229, allocations: 2.688 kB / 449.1 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2229, allocations: 3.938 kB / 449.1 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.2232, allocations: 70.17 kB / 449.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2232, allocations: 2.625 kB / 449.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.2234, allocations: 44.97 kB / 449.2 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.2234, allocations: 14.5 kB / 449.2 MB, free: 30.69 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.0002744/0.2237, allocations: 209.8 kB / 449.4 MB, free: 30.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001457/0.2238, allocations: 170.1 kB / 449.6 MB, free: 30.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008259/0.2247, allocations: 466.5 kB / 450 MB, free: 30.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.272e-06/0.2247, allocations: 0 / 450 MB, free: 30.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0003716/0.225, allocations: 338.5 kB / 450.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.2251, allocations: 5.812 kB / 450.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.2251, allocations: 3.938 kB / 450.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.096e-06/0.2251, allocations: 2.688 kB / 450.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.2253, allocations: 64.5 kB / 450.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.2253, allocations: 3.938 kB / 450.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.2255, allocations: 29.7 kB / 450.5 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.2255, allocations: 16.56 kB / 450.5 MB, free: 29.99 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 8.478e-05/0.2256, allocations: 212.7 kB / 450.7 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.2256, allocations: 54.12 kB / 450.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.067e-05/0.2257, allocations: 52 kB / 450.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2257, allocations: 2.562 kB / 450.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.2257, allocations: 0 / 450.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2257, allocations: 0 / 450.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000331/0.2261, allocations: 465.3 kB / 451.2 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2261, allocations: 3.625 kB / 451.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.2263, allocations: 56.89 kB / 451.3 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2264, allocations: 6.625 kB / 451.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.2264, allocations: 6.812 kB / 451.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2264, allocations: 0 / 451.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2264, allocations: 0 / 451.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006627/0.2271, allocations: 0.5475 MB / 451.9 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.736e-05/0.2272, allocations: 141.9 kB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.503e-05/0.2272, allocations: 10.81 kB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.2274, allocations: 14.97 kB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.2274, allocations: 15.47 kB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.2275, allocations: 8.844 kB / 452.1 MB, free: 28.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001875/0.2277, allocations: 286.5 kB / 452.3 MB, free: 28.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2277, allocations: 0 / 452.3 MB, free: 28.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003946/0.2281, allocations: 147.6 kB / 452.5 MB, free: 28.75 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 0.0007801/0.2288, allocations: 1.094 MB / 453.6 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.2295, allocations: 423.6 kB / 454 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2295, allocations: 0.875 kB / 454 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.2297, allocations: 142.9 kB / 454.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.2303, allocations: 120.3 kB / 454.2 MB, free: 27.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00384/0.2341, allocations: 3.994 MB / 458.2 MB, free: 25.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.2343, allocations: 0.8349 MB / 459.1 MB, free: 24.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.2345, allocations: 49.58 kB / 459.1 MB, free: 24.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.2347, allocations: 161.6 kB / 459.3 MB, free: 24.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2347, allocations: 0 / 459.3 MB, free: 24.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.2587, allocations: 8.716 MB / 468 MB, free: 23.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001363/0.2588, allocations: 204.9 kB / 468.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.031, allocations: 0 / 468.2 MB, free: 23.36 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/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)