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.001064/0.001064, allocations: 104.3 kB / 16.27 MB, free: 6.418 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.001078/0.001078, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.341/1.341, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09365/0.09365, allocations: 22.32 MB / 313.4 MB, free: 8.973 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 65.23 kB / 381.5 MB, free: 41.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09577, allocations: 54.96 MB / 436.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004088/0.09991, allocations: 3.01 MB / 439.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.1016, allocations: 1.032 MB / 440.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.1018, allocations: 19.88 kB / 440.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.1021, allocations: 87.06 kB / 440.6 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.1023, allocations: 83.08 kB / 440.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.1029, allocations: 322.3 kB / 441 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004873/0.1034, allocations: 0.5428 MB / 441.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.1038, allocations: 235.1 kB / 441.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.1039, allocations: 191 kB / 441.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.1042, allocations: 202.8 kB / 442.1 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.517e-05/0.1042, allocations: 44 kB / 442.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.035e-05/0.1043, allocations: 48 kB / 442.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.602e-05/0.1044, allocations: 107.5 kB / 442.3 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.1046, allocations: 226.6 kB / 442.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.105, allocations: 0.5296 MB / 443.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1051, allocations: 0 / 443.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1051, allocations: 4 kB / 443.1 MB, free: 6.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1051, allocations: 0 / 443.1 MB, free: 6.355 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.001112/0.1062, allocations: 0.8102 MB / 443.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.1062, allocations: 8.031 kB / 443.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.1063, allocations: 64.19 kB / 443.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.1068, allocations: 405.7 kB / 444.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.1069, allocations: 29.38 kB / 444.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.1069, allocations: 36.38 kB / 444.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.1076, allocations: 427.8 kB / 444.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1076, allocations: 3.938 kB / 444.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.007e-05/0.1076, allocations: 12 kB / 444.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.1077, allocations: 8 kB / 444.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005761/0.1082, allocations: 286.4 kB / 445.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.1101, allocations: 1.542 MB / 446.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007204/0.1108, allocations: 343.4 kB / 447 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.1111, allocations: 141.2 kB / 447.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.1112, allocations: 240 / 447.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.1112, allocations: 34.8 kB / 447.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.142e-06/0.1112, allocations: 0 / 447.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.00088/0.1121, allocations: 413.3 kB / 447.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.1122, allocations: 114.7 kB / 447.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003933/0.1126, allocations: 406 kB / 448.1 MB, free: 1.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.1126, allocations: 29.7 kB / 448.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1128, allocations: 268.7 kB / 448.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.953e-05/0.1129, allocations: 98.55 kB / 448.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.113, allocations: 61.7 kB / 448.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1131, allocations: 362.8 kB / 448.9 MB, free: 252 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.1134, allocations: 113.1 kB / 449 MB, free: 136 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/0.1137, allocations: 193.5 kB / 449.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.1151, allocations: 0.529 MB / 449.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1151, allocations: 0 / 449.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006632/0.1158, allocations: 390 kB / 450.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1158, allocations: 8 kB / 450.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.1158, allocations: 3.984 kB / 450.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1158, allocations: 4 kB / 450.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.1161, allocations: 67.91 kB / 450.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1162, allocations: 7.938 kB / 450.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1164, allocations: 39.67 kB / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.1164, allocations: 20.22 kB / 450.2 MB, free: 14.82 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.0003741/0.1168, allocations: 216.9 kB / 450.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000211/0.117, allocations: 165.2 kB / 450.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001072/0.1181, allocations: 462.8 kB / 451.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.764e-06/0.1181, allocations: 0 / 451.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005205/0.1187, allocations: 336.8 kB / 451.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1187, allocations: 10.19 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1187, allocations: 3.984 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.62e-06/0.1187, allocations: 4 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.119, allocations: 59.86 kB / 451.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.119, allocations: 4 kB / 451.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.1192, allocations: 35.67 kB / 451.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1192, allocations: 16.2 kB / 451.5 MB, free: 13.47 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.0001521/0.1194, allocations: 200.2 kB / 451.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.456e-05/0.1195, allocations: 51.38 kB / 451.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.1196, allocations: 52.69 kB / 451.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1196, allocations: 4 kB / 451.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1196, allocations: 0 / 451.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1196, allocations: 3.938 kB / 451.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000493/0.1201, allocations: 465.1 kB / 452.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1201, allocations: 4 kB / 452.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.1204, allocations: 55.91 kB / 452.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1205, allocations: 4 kB / 452.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1205, allocations: 4 kB / 452.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1205, allocations: 0 / 452.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.1205, allocations: 7.984 kB / 452.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009154/0.1214, allocations: 0.5379 MB / 452.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.1216, allocations: 148.4 kB / 453 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.166e-05/0.1216, allocations: 4 kB / 453 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.1219, allocations: 15.98 kB / 453.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.1219, allocations: 23.91 kB / 453.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.1219, allocations: 11.98 kB / 453.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.1222, allocations: 283.1 kB / 453.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1222, allocations: 0 / 453.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005041/0.1228, allocations: 139.5 kB / 453.5 MB, free: 11.39 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.000103/0.1229, allocations: 99.25 kB / 453.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008857/0.1238, allocations: 445 kB / 454 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1238, allocations: 0 / 454 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.124, allocations: 131.8 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.1247, allocations: 137.8 kB / 454.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.1262, allocations: 0.8416 MB / 455.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1266, allocations: 0.8351 MB / 456 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1267, allocations: 31.44 kB / 456 MB, free: 8.828 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1267, allocations: 0 / 456 MB, free: 8.828 MB / 334.1 MB Notification: Performance of Templates: time 0.008265/0.135, allocations: 5.279 MB / 461.3 MB, free: 3.566 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)