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.001182/0.001182, allocations: 110.4 kB / 15.99 MB, free: 6.348 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.001238/0.001238, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.197/1.197, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08556/0.08556, allocations: 22.32 MB / 313.1 MB, free: 9.121 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.89 kB / 380.9 MB, free: 41.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07864/0.07988, allocations: 54.96 MB / 435.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004206/0.08412, allocations: 3.04 MB / 438.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.08599, allocations: 1.005 MB / 439.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.08636, allocations: 23.88 kB / 439.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.08664, allocations: 55.45 kB / 440 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.08695, allocations: 67.39 kB / 440.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000663/0.08762, allocations: 290.4 kB / 440.3 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005815/0.08821, allocations: 0.5505 MB / 440.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.08859, allocations: 231.1 kB / 441.1 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.08882, allocations: 195 kB / 441.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.08908, allocations: 210.8 kB / 441.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-05/0.08916, allocations: 48 kB / 441.6 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.614e-05/0.08924, allocations: 44 kB / 441.6 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.08932, allocations: 99.56 kB / 441.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.0895, allocations: 230.6 kB / 441.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.08991, allocations: 411.4 kB / 442.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.08992, allocations: 0 / 442.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.08993, allocations: 0 / 442.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.08995, allocations: 3.938 kB / 442.3 MB, free: 7.004 MB / 318.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.001227/0.09119, allocations: 0.8141 MB / 443.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.09123, allocations: 12.03 kB / 443.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.09134, allocations: 64.19 kB / 443.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.0918, allocations: 405.7 kB / 443.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.09184, allocations: 29.38 kB / 443.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-05/0.0919, allocations: 40.36 kB / 443.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.09256, allocations: 427.8 kB / 444.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.09258, allocations: 0 / 444.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.09262, allocations: 16 kB / 444.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.09264, allocations: 8 kB / 444.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005904/0.09323, allocations: 286.4 kB / 444.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.09522, allocations: 1.531 MB / 445.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.09595, allocations: 347.3 kB / 446.3 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.0962, allocations: 137.2 kB / 446.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.09624, allocations: 240 / 446.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.09628, allocations: 38.8 kB / 446.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.243e-06/0.09629, allocations: 0 / 446.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008159/0.09711, allocations: 417.3 kB / 446.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.09718, allocations: 102.8 kB / 446.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.09757, allocations: 410 kB / 447.4 MB, free: 1.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.478e-05/0.09762, allocations: 29.7 kB / 447.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.09781, allocations: 264.1 kB / 447.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.088e-05/0.09788, allocations: 99.17 kB / 447.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.098, allocations: 65.69 kB / 447.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.09813, allocations: 358.8 kB / 448.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.09838, allocations: 113.1 kB / 448.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.0987, allocations: 197.4 kB / 448.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.1, allocations: 0.521 MB / 449 MB, free: 16 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1, allocations: 3.938 kB / 449 MB, free: 12 kB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000662/0.1007, allocations: 398.1 kB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1007, allocations: 10.5 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1007, allocations: 3.938 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1008, allocations: 4 kB / 449.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.1011, allocations: 63.91 kB / 449.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.1011, allocations: 7.938 kB / 449.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.1013, allocations: 43.66 kB / 449.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.1013, allocations: 12 kB / 449.5 MB, free: 15.48 MB / 334.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.0004179/0.1017, allocations: 216.4 kB / 449.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002003/0.102, allocations: 161.3 kB / 449.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001015/0.103, allocations: 470.8 kB / 450.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.103, allocations: 0 / 450.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004807/0.1035, allocations: 340.8 kB / 450.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.1035, allocations: 8 kB / 450.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.1035, allocations: 0 / 450.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.558e-06/0.1035, allocations: 4 kB / 450.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.1038, allocations: 59.92 kB / 450.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1038, allocations: 11.98 kB / 450.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.104, allocations: 27.69 kB / 450.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.104, allocations: 19.98 kB / 450.8 MB, free: 14.12 MB / 334.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.0001509/0.1041, allocations: 196.4 kB / 451 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.1042, allocations: 55.36 kB / 451 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.1043, allocations: 48.7 kB / 451.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1043, allocations: 4 kB / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1044, allocations: 0 / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1044, allocations: 3.984 kB / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005085/0.1049, allocations: 465.1 kB / 451.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1049, allocations: 3.984 kB / 451.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.1052, allocations: 55.91 kB / 451.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.1052, allocations: 4 kB / 451.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.1052, allocations: 4 kB / 451.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1052, allocations: 0 / 451.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1052, allocations: 4 kB / 451.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008636/0.1061, allocations: 0.5465 MB / 452.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.1062, allocations: 148.4 kB / 452.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.976e-05/0.1063, allocations: 7.984 kB / 452.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.1065, allocations: 19.97 kB / 452.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.254e-05/0.1066, allocations: 15.98 kB / 452.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.1066, allocations: 7.938 kB / 452.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.1069, allocations: 287.1 kB / 452.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1069, allocations: 7.938 kB / 452.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004494/0.1073, allocations: 135.5 kB / 452.8 MB, free: 12.04 MB / 334.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.0001497/0.1075, allocations: 107.2 kB / 452.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008061/0.1083, allocations: 436.1 kB / 453.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1083, allocations: 0 / 453.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.1086, allocations: 135.8 kB / 453.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.1092, allocations: 133.7 kB / 453.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.1106, allocations: 1.005 MB / 454.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.111, allocations: 0.8351 MB / 455.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.1111, allocations: 27.44 kB / 455.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1111, allocations: 0 / 455.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of Templates: time 0.007266/0.1184, allocations: 5.287 MB / 460.7 MB, free: 4.043 MB / 334.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)