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.001058/0.001058, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001109, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.497/1.497, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2363/0.2363, allocations: 22.34 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3262, allocations: 54.95 MB / 435.8 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004365/0.3306, allocations: 3.012 MB / 438.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.3321, allocations: 1.036 MB / 439.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.3324, allocations: 20.94 kB / 439.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.3326, allocations: 83.66 kB / 439.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.3328, allocations: 86.16 kB / 440 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.3334, allocations: 320.3 kB / 440.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004095/0.3338, allocations: 0.5489 MB / 440.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.3341, allocations: 237.7 kB / 441.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.3343, allocations: 181.9 kB / 441.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.3344, allocations: 209.8 kB / 441.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.808e-05/0.3345, allocations: 51.16 kB / 441.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.172e-05/0.3346, allocations: 44.72 kB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.445e-05/0.3346, allocations: 105.9 kB / 441.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.3348, allocations: 231 kB / 441.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.3351, allocations: 0.522 MB / 442.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3351, allocations: 0 / 442.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3351, allocations: 0 / 442.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3351, allocations: 3.781 kB / 442.4 MB, free: 35.38 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.0009861/0.3361, allocations: 0.8114 MB / 443.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3362, allocations: 8.781 kB / 443.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.924e-05/0.3363, allocations: 62.94 kB / 443.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.3367, allocations: 407.6 kB / 443.7 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.3367, allocations: 32.25 kB / 443.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.3368, allocations: 36.94 kB / 443.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005693/0.3373, allocations: 431.9 kB / 444.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3374, allocations: 3.938 kB / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.3374, allocations: 14.78 kB / 444.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.3374, allocations: 8.688 kB / 444.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004992/0.3379, allocations: 281.4 kB / 444.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.3394, allocations: 1.536 MB / 446 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006617/0.3401, allocations: 340.6 kB / 446.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.3403, allocations: 137.9 kB / 446.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.3404, allocations: 2.859 kB / 446.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.3404, allocations: 45.55 kB / 446.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.383e-06/0.3404, allocations: 0 / 446.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008008/0.3412, allocations: 398.8 kB / 446.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.3413, allocations: 105.9 kB / 447 MB, free: 32.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.3416, allocations: 418.7 kB / 447.4 MB, free: 32.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.3416, allocations: 32.42 kB / 447.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3418, allocations: 265.3 kB / 447.7 MB, free: 31.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.823e-05/0.3419, allocations: 102.8 kB / 447.8 MB, free: 31.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.013e-05/0.3419, allocations: 64.94 kB / 447.9 MB, free: 31.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.3421, allocations: 354.2 kB / 448.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.3423, allocations: 117.8 kB / 448.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.3426, allocations: 186.8 kB / 448.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.3439, allocations: 0.5342 MB / 449.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3439, allocations: 4 kB / 449.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006219/0.3445, allocations: 384.6 kB / 449.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3446, allocations: 8.844 kB / 449.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3446, allocations: 2.188 kB / 449.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.3446, allocations: 6.5 kB / 449.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.3449, allocations: 73.55 kB / 449.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.3449, allocations: 3.375 kB / 449.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.3451, allocations: 40.86 kB / 449.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.3451, allocations: 11.88 kB / 449.6 MB, free: 30.84 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.0004026/0.3456, allocations: 211.9 kB / 449.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001717/0.3457, allocations: 175.4 kB / 450 MB, free: 30.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000925/0.3467, allocations: 468.5 kB / 450.4 MB, free: 30.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.422e-06/0.3467, allocations: 3.938 kB / 450.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004329/0.3471, allocations: 331.7 kB / 450.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/0.3471, allocations: 5.25 kB / 450.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.3471, allocations: 6.844 kB / 450.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.997e-06/0.3472, allocations: 2.625 kB / 450.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.3474, allocations: 60.97 kB / 450.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.3474, allocations: 11.55 kB / 450.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.3476, allocations: 23.62 kB / 450.9 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.3476, allocations: 10.5 kB / 450.9 MB, free: 30.14 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.00012/0.3477, allocations: 204 kB / 451.1 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.3478, allocations: 58.61 kB / 451.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.368e-05/0.3479, allocations: 54.88 kB / 451.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3479, allocations: 0 / 451.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3479, allocations: 0 / 451.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3479, allocations: 2.812 kB / 451.2 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.3483, allocations: 463 kB / 451.6 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3483, allocations: 0 / 451.6 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.3486, allocations: 58.28 kB / 451.7 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3486, allocations: 6.656 kB / 451.7 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.3487, allocations: 10.5 kB / 451.7 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3487, allocations: 4 kB / 451.7 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3487, allocations: 0 / 451.7 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007748/0.3494, allocations: 0.539 MB / 452.3 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.3496, allocations: 150 kB / 452.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.029e-05/0.3496, allocations: 6.656 kB / 452.4 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.3498, allocations: 16.66 kB / 452.4 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.3499, allocations: 17.19 kB / 452.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.3499, allocations: 7.438 kB / 452.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.3502, allocations: 290.9 kB / 452.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3502, allocations: 0 / 452.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004558/0.3506, allocations: 140.6 kB / 452.9 MB, free: 28.9 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.0001039/0.3508, allocations: 102.5 kB / 453 MB, free: 28.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007924/0.3516, allocations: 439.2 kB / 453.4 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3516, allocations: 0 / 453.4 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.3518, allocations: 135.8 kB / 453.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.3525, allocations: 136.1 kB / 453.7 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.3538, allocations: 0.8183 MB / 454.5 MB, free: 28.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.3541, allocations: 0.836 MB / 455.3 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001919/0.3543, allocations: 43.72 kB / 455.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.791e-05/0.3544, allocations: 33.28 kB / 455.4 MB, free: 27.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3544, allocations: 0 / 455.4 MB, free: 27.37 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.3653, allocations: 4.429 MB / 459.8 MB, free: 27.06 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)