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.0007174/0.0007174, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007936/0.0007937, 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.225/1.225, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1895/0.1895, allocations: 22.36 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002642, allocations: 15.97 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 55.97 MB / 437.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.001987/0.231, allocations: 2.524 MB / 440.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2321, allocations: 0.9775 MB / 441.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.2323, allocations: 16.78 kB / 441.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.2325, allocations: 58.02 kB / 441.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.2326, allocations: 61.95 kB / 441.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004398/0.2331, allocations: 228.2 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.2334, allocations: 489 kB / 442.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.2336, allocations: 163 kB / 442.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.923e-05/0.2337, allocations: 136.2 kB / 442.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2339, allocations: 150.4 kB / 442.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.2339, allocations: 9.281 kB / 442.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.002e-05/0.234, allocations: 11.16 kB / 442.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.21e-05/0.234, allocations: 63.52 kB / 442.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.416e-05/0.234, allocations: 99.55 kB / 442.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.2343, allocations: 374.5 kB / 443.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2343, allocations: 0 / 443.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2343, allocations: 3.938 kB / 443.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.2343, allocations: 0 / 443.2 MB, free: 35.88 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.0007466/0.235, allocations: 0.7417 MB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.755e-05/0.2351, allocations: 7.906 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/0.2352, allocations: 60.97 kB / 444 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.2355, allocations: 385.5 kB / 444.4 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.2356, allocations: 29.69 kB / 444.5 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.2356, allocations: 34.53 kB / 444.5 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.2362, allocations: 426.1 kB / 444.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2362, allocations: 6.844 kB / 444.9 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.2362, allocations: 14.89 kB / 444.9 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2362, allocations: 14.09 kB / 444.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.2367, allocations: 296.4 kB / 445.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.238, allocations: 1.545 MB / 446.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.2386, allocations: 379.6 kB / 447.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.2388, allocations: 138.9 kB / 447.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.2389, allocations: 3.172 kB / 447.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.2389, allocations: 37.7 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.323e-06/0.2389, allocations: 0 / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006862/0.2396, allocations: 429 kB / 447.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.2396, allocations: 109 kB / 447.8 MB, free: 32.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.2399, allocations: 415 kB / 448.3 MB, free: 32.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.2399, allocations: 33.64 kB / 448.3 MB, free: 32.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.2401, allocations: 263.4 kB / 448.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.2401, allocations: 100.5 kB / 448.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.2401, allocations: 7.094 kB / 448.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.916e-05/0.2402, allocations: 356.2 kB / 449 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.2404, allocations: 114.9 kB / 449.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.2406, allocations: 198.8 kB / 449.3 MB, free: 31.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.2409, allocations: 140.7 kB / 449.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2409, allocations: 0 / 449.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005478/0.2414, allocations: 390.9 kB / 449.8 MB, free: 31.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.2415, allocations: 145.1 kB / 450 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2415, allocations: 3.812 kB / 450 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.2415, allocations: 2.812 kB / 450 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.2418, allocations: 82.3 kB / 450 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.2418, allocations: 2.844 kB / 450.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.242, allocations: 47.41 kB / 450.1 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.242, allocations: 16.14 kB / 450.1 MB, free: 31.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.539e-06/0.242, allocations: 2.875 kB / 450.1 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003379/0.2424, allocations: 263.8 kB / 450.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-06/0.2424, allocations: 2.531 kB / 450.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.747e-06/0.2424, allocations: 2.812 kB / 450.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.2426, allocations: 61.92 kB / 450.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.2426, allocations: 4.656 kB / 450.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.2428, allocations: 28.36 kB / 450.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.2428, allocations: 14.34 kB / 450.5 MB, free: 31.33 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.0002173/0.243, allocations: 258.7 kB / 450.7 MB, free: 31.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.2431, allocations: 46.62 kB / 450.8 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.421e-05/0.2431, allocations: 50.36 kB / 450.8 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2432, allocations: 3.781 kB / 450.8 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2432, allocations: 0 / 450.8 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2432, allocations: 3.281 kB / 450.8 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.2435, allocations: 463.5 kB / 451.3 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2435, allocations: 6.312 kB / 451.3 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.2438, allocations: 58.12 kB / 451.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2438, allocations: 2.531 kB / 451.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.2438, allocations: 4 kB / 451.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2438, allocations: 6.812 kB / 451.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2439, allocations: 0 / 451.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006884/0.2445, allocations: 0.573 MB / 451.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/0.2446, allocations: 147.6 kB / 452.1 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.2447, allocations: 7.969 kB / 452.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.2449, allocations: 22.42 kB / 452.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.2449, allocations: 18.77 kB / 452.1 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.2449, allocations: 6.562 kB / 452.1 MB, free: 30.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.2452, allocations: 283.6 kB / 452.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.42e-07/0.2452, allocations: 0 / 452.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004142/0.2456, allocations: 148.2 kB / 452.6 MB, free: 30.05 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 7.336e-05/0.2457, allocations: 102.9 kB / 452.7 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000617/0.2463, allocations: 425.2 kB / 453.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2463, allocations: 0.875 kB / 453.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.2465, allocations: 150.4 kB / 453.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005405/0.2471, allocations: 122 kB / 453.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.2481, allocations: 0.9594 MB / 454.3 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.2483, allocations: 0.8304 MB / 455.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.2485, allocations: 47.83 kB / 455.2 MB, free: 28.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.2486, allocations: 26.94 kB / 455.2 MB, free: 28.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2486, allocations: 0 / 455.2 MB, free: 28.42 MB / 350.1 MB Notification: Performance of Templates: time 0.007159/0.2558, allocations: 4.022 MB / 459.2 MB, free: 28.13 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)