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.001354/0.001354, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001296/0.001296, allocations: 193.6 kB / 16.14 MB, free: 6.719 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.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2304/0.2304, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.89 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2863, allocations: 54.94 MB / 435 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.00354/0.2899, allocations: 3.038 MB / 438.1 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.2915, allocations: 1.014 MB / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.2918, allocations: 15.69 kB / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.2921, allocations: 60.69 kB / 439.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.2923, allocations: 72.03 kB / 439.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.2929, allocations: 288.4 kB / 439.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.2933, allocations: 0.5079 MB / 440 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003487/0.2937, allocations: 231 kB / 440.3 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.2938, allocations: 167.6 kB / 440.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.294, allocations: 184.1 kB / 440.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.294, allocations: 27.5 kB / 440.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.518e-05/0.2941, allocations: 28.12 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.359e-05/0.2942, allocations: 79.34 kB / 440.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.2943, allocations: 205.7 kB / 440.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.2946, allocations: 0.4895 MB / 441.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2946, allocations: 0 / 441.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2946, allocations: 0 / 441.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.2946, allocations: 4 kB / 441.4 MB, free: 35.46 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.0009206/0.2956, allocations: 0.8205 MB / 442.2 MB, free: 34.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.2956, allocations: 12.94 kB / 442.3 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.673e-05/0.2957, allocations: 61.94 kB / 442.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.2961, allocations: 409.4 kB / 442.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.2961, allocations: 29.44 kB / 442.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.437e-05/0.2962, allocations: 36.22 kB / 442.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.2968, allocations: 422 kB / 443.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.2968, allocations: 2.844 kB / 443.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.2969, allocations: 14.94 kB / 443.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.2969, allocations: 8.812 kB / 443.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005676/0.2975, allocations: 288.6 kB / 443.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.2993, allocations: 1.532 MB / 445 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/0.2999, allocations: 348.7 kB / 445.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.3002, allocations: 140.5 kB / 445.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/0.3002, allocations: 3.453 kB / 445.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.3003, allocations: 34.05 kB / 445.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.983e-06/0.3003, allocations: 0 / 445.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007947/0.3011, allocations: 411.1 kB / 445.9 MB, free: 32.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.3011, allocations: 110.6 kB / 446.1 MB, free: 32.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.3015, allocations: 406.8 kB / 446.5 MB, free: 32.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.3015, allocations: 35.78 kB / 446.5 MB, free: 32.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.3016, allocations: 258.5 kB / 446.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.3017, allocations: 101.4 kB / 446.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.582e-05/0.3018, allocations: 63.31 kB / 446.9 MB, free: 31.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.3018, allocations: 360.5 kB / 447.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.3021, allocations: 116.5 kB / 447.4 MB, free: 31.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.3023, allocations: 194.7 kB / 447.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.3036, allocations: 0.5143 MB / 448.1 MB, free: 31.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3036, allocations: 2.719 kB / 448.1 MB, free: 31.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005553/0.3041, allocations: 386.9 kB / 448.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3042, allocations: 11.08 kB / 448.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3042, allocations: 6.594 kB / 448.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3042, allocations: 6.875 kB / 448.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.3045, allocations: 72.2 kB / 448.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3045, allocations: 6.531 kB / 448.6 MB, free: 30.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.3047, allocations: 41.94 kB / 448.6 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.3047, allocations: 11.78 kB / 448.6 MB, free: 30.91 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.0003546/0.3051, allocations: 214.9 kB / 448.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001712/0.3053, allocations: 170.9 kB / 449 MB, free: 30.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009462/0.3062, allocations: 472.3 kB / 449.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-06/0.3062, allocations: 0 / 449.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.000405/0.3066, allocations: 334.2 kB / 449.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/0.3067, allocations: 6.094 kB / 449.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.3067, allocations: 2.625 kB / 449.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-06/0.3067, allocations: 2.625 kB / 449.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.3069, allocations: 62.8 kB / 449.8 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.3069, allocations: 3.344 kB / 449.8 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.3071, allocations: 33.62 kB / 449.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3071, allocations: 11.88 kB / 449.9 MB, free: 30.21 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.0001024/0.3072, allocations: 212.2 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.3073, allocations: 48.38 kB / 450.1 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.844e-05/0.3073, allocations: 51.69 kB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3074, allocations: 2.625 kB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3074, allocations: 2.625 kB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3074, allocations: 7.406 kB / 450.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003761/0.3078, allocations: 459.8 kB / 450.7 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3078, allocations: 4 kB / 450.7 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.3081, allocations: 56.08 kB / 450.7 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3081, allocations: 0 / 450.7 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.3081, allocations: 10.47 kB / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3081, allocations: 2.625 kB / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3081, allocations: 0 / 450.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007275/0.3088, allocations: 0.5478 MB / 451.3 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.3089, allocations: 144.5 kB / 451.4 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.691e-05/0.309, allocations: 6.719 kB / 451.4 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.3092, allocations: 16.09 kB / 451.4 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.3092, allocations: 14.62 kB / 451.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.3093, allocations: 11.28 kB / 451.5 MB, free: 29.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.3095, allocations: 290.5 kB / 451.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3095, allocations: 0 / 451.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004201/0.3099, allocations: 143.7 kB / 451.9 MB, free: 28.98 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.237e-05/0.31, allocations: 103.2 kB / 452 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006628/0.3107, allocations: 428.3 kB / 452.4 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3107, allocations: 0 / 452.4 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.3109, allocations: 129.5 kB / 452.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006054/0.3115, allocations: 117.5 kB / 452.6 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.3127, allocations: 0.9904 MB / 453.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.3129, allocations: 0.8327 MB / 454.5 MB, free: 27.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.3131, allocations: 45.61 kB / 454.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.391e-05/0.3132, allocations: 28.5 kB / 454.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3132, allocations: 0 / 454.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of Templates: time 0.007608/0.3208, allocations: 4.205 MB / 458.7 MB, free: 27 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)