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.001437/0.001437, 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.001298/0.001298, allocations: 191.9 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.343/1.343, 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.2147/0.2147, allocations: 22.37 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.91 kB / 380.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2483, allocations: 54.94 MB / 435.2 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003314/0.2516, allocations: 3.041 MB / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.2531, allocations: 1.011 MB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.2533, allocations: 21.16 kB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.2535, allocations: 55.88 kB / 439.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.2538, allocations: 70.27 kB / 439.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.2543, allocations: 289.5 kB / 439.7 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.2547, allocations: 0.5454 MB / 440.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.255, allocations: 236 kB / 440.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.2551, allocations: 195.1 kB / 440.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2553, allocations: 200.6 kB / 440.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.2554, allocations: 45.66 kB / 440.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.645e-05/0.2554, allocations: 50.09 kB / 441 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.2555, allocations: 111.2 kB / 441.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2556, allocations: 232.6 kB / 441.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.2559, allocations: 0.5196 MB / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2559, allocations: 0 / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2559, allocations: 0 / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2559, allocations: 0 / 441.8 MB, free: 35.58 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.0009551/0.2569, allocations: 0.8078 MB / 442.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.2569, allocations: 11.53 kB / 442.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.796e-05/0.257, allocations: 59.72 kB / 442.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.2574, allocations: 411.7 kB / 443.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.2575, allocations: 27.25 kB / 443.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.2575, allocations: 46.59 kB / 443.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000639/0.2582, allocations: 422.4 kB / 443.6 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.2582, allocations: 4 kB / 443.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.2582, allocations: 17.78 kB / 443.6 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2583, allocations: 8.5 kB / 443.6 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.2588, allocations: 281.5 kB / 443.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.2603, allocations: 1.536 MB / 445.4 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006827/0.261, allocations: 344.7 kB / 445.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.2613, allocations: 132.2 kB / 445.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.2613, allocations: 3.047 kB / 445.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.2614, allocations: 44.84 kB / 445.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.2614, allocations: 0 / 445.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.000866/0.2622, allocations: 409.2 kB / 446.3 MB, free: 32.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.2623, allocations: 105.8 kB / 446.4 MB, free: 32.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.2626, allocations: 410.8 kB / 446.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.2626, allocations: 36.42 kB / 446.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.2628, allocations: 264.5 kB / 447.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.2628, allocations: 97.33 kB / 447.2 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/0.2629, allocations: 64.48 kB / 447.3 MB, free: 32.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.263, allocations: 356 kB / 447.6 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.2632, allocations: 115.3 kB / 447.8 MB, free: 31.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.2634, allocations: 196 kB / 448 MB, free: 31.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.2647, allocations: 0.5271 MB / 448.5 MB, free: 31.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2647, allocations: 0 / 448.5 MB, free: 31.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005906/0.2653, allocations: 386.8 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2654, allocations: 7.875 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2654, allocations: 0 / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2654, allocations: 5.312 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.2657, allocations: 72.44 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2657, allocations: 7.875 kB / 448.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.2659, allocations: 38.66 kB / 449 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.266, allocations: 14.25 kB / 449 MB, free: 31.04 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.0003336/0.2663, allocations: 207.4 kB / 449.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001662/0.2665, allocations: 171.8 kB / 449.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009556/0.2674, allocations: 479 kB / 449.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.483e-06/0.2674, allocations: 0 / 449.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004174/0.2679, allocations: 338.9 kB / 450.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.794e-06/0.2679, allocations: 9.188 kB / 450.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2679, allocations: 10.61 kB / 450.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.948e-06/0.2679, allocations: 2.844 kB / 450.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.2681, allocations: 67.88 kB / 450.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2681, allocations: 2.812 kB / 450.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.2683, allocations: 26.25 kB / 450.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2684, allocations: 12.41 kB / 450.3 MB, free: 30.32 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 0.0001048/0.2685, allocations: 201.5 kB / 450.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.459e-05/0.2685, allocations: 51 kB / 450.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.2687, allocations: 59.86 kB / 450.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2687, allocations: 2.625 kB / 450.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.2687, allocations: 0 / 450.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2687, allocations: 3.938 kB / 450.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.2691, allocations: 460.9 kB / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2691, allocations: 0 / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.2694, allocations: 52.17 kB / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2694, allocations: 0 / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.2694, allocations: 6.625 kB / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2694, allocations: 2.625 kB / 451.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2694, allocations: 7.938 kB / 451.1 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000761/0.2702, allocations: 0.5444 MB / 451.7 MB, free: 29.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.2703, allocations: 145.8 kB / 451.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.2704, allocations: 8 kB / 451.8 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.2706, allocations: 19.28 kB / 451.8 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.2706, allocations: 15.39 kB / 451.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.2707, allocations: 9.141 kB / 451.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.2709, allocations: 283.9 kB / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2709, allocations: 0 / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004575/0.2714, allocations: 140.5 kB / 452.3 MB, free: 29.11 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 9.812e-05/0.2715, allocations: 108.7 kB / 452.4 MB, free: 29.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000743/0.2722, allocations: 432.6 kB / 452.8 MB, free: 28.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2722, allocations: 4.812 kB / 452.8 MB, free: 28.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002196/0.2725, allocations: 136.3 kB / 452.9 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.2731, allocations: 133.5 kB / 453.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2743, allocations: 0.9821 MB / 454.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.2745, allocations: 0.8283 MB / 454.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.2747, allocations: 64.75 kB / 454.9 MB, free: 27.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.16e-05/0.2748, allocations: 29.09 kB / 455 MB, free: 27.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2748, allocations: 0 / 455 MB, free: 27.39 MB / 350.1 MB Notification: Performance of Templates: time 0.007901/0.2827, allocations: 4.393 MB / 459.4 MB, free: 27.09 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)