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.001206/0.001206, allocations: 103.1 kB / 16.35 MB, free: 5.828 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.002306/0.002306, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0916/0.0916, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 64.88 kB / 382.2 MB, free: 41.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1029, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004499/0.1074, allocations: 3.002 MB / 440.2 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1095, allocations: 1.032 MB / 441.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.1099, allocations: 19.88 kB / 441.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003448/0.1102, allocations: 87 kB / 441.3 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.1105, allocations: 91.06 kB / 441.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008834/0.1114, allocations: 315 kB / 441.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006992/0.1121, allocations: 0.5466 MB / 442.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.1126, allocations: 235 kB / 442.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1128, allocations: 191.1 kB / 442.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002985/0.1132, allocations: 206.8 kB / 442.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.556e-05/0.1132, allocations: 47.94 kB / 442.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.016e-05/0.1133, allocations: 48 kB / 443 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.1135, allocations: 103.6 kB / 443.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003157/0.1138, allocations: 230.5 kB / 443.3 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006568/0.1144, allocations: 0.5409 MB / 443.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1145, allocations: 0 / 443.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1145, allocations: 0 / 443.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1145, allocations: 0 / 443.9 MB, free: 5.52 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.001268/0.1158, allocations: 0.818 MB / 444.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1158, allocations: 12.03 kB / 444.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1159, allocations: 60.19 kB / 444.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006617/0.1166, allocations: 429.7 kB / 445.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.1166, allocations: 29.31 kB / 445.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.1167, allocations: 36.38 kB / 445.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007071/0.1174, allocations: 427.8 kB / 445.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1174, allocations: 3.938 kB / 445.7 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.1175, allocations: 27.97 kB / 445.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.1175, allocations: 8 kB / 445.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005696/0.1181, allocations: 278.4 kB / 446 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.1202, allocations: 1.527 MB / 447.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007079/0.1209, allocations: 341.6 kB / 447.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/0.1211, allocations: 141.2 kB / 448 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.1212, allocations: 4.234 kB / 448 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.1212, allocations: 38.8 kB / 448 MB, free: 1.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.1212, allocations: 0 / 448 MB, free: 1.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008584/0.1221, allocations: 409.1 kB / 448.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.1222, allocations: 106.8 kB / 448.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004261/0.1226, allocations: 413.9 kB / 448.9 MB, free: 224 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.1227, allocations: 33.7 kB / 448.9 MB, free: 184 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.1229, allocations: 256.8 kB / 449.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.116e-05/0.123, allocations: 98.47 kB / 449.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1231, allocations: 69.69 kB / 449.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1233, allocations: 354.7 kB / 449.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.1235, allocations: 117.1 kB / 449.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.1238, allocations: 200.6 kB / 450 MB, free: 15.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1252, allocations: 0.5293 MB / 450.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1252, allocations: 0 / 450.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000671/0.1259, allocations: 398.4 kB / 450.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1259, allocations: 4 kB / 450.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1259, allocations: 4 kB / 450.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.126, allocations: 4 kB / 450.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.1262, allocations: 63.91 kB / 451 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1263, allocations: 7.984 kB / 451 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1265, allocations: 43.67 kB / 451.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.1265, allocations: 15.92 kB / 451.1 MB, free: 13.96 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.0003427/0.1269, allocations: 214.8 kB / 451.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002099/0.1271, allocations: 161.1 kB / 451.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001008/0.1281, allocations: 463.4 kB / 451.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.1281, allocations: 3.938 kB / 451.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004815/0.1286, allocations: 336.8 kB / 452.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.1286, allocations: 4 kB / 452.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1286, allocations: 4 kB / 452.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.61e-06/0.1286, allocations: 4 kB / 452.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.1289, allocations: 63.92 kB / 452.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1289, allocations: 11.92 kB / 452.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.1291, allocations: 27.69 kB / 452.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.1291, allocations: 12 kB / 452.4 MB, free: 12.62 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.0001459/0.1293, allocations: 200.9 kB / 452.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/0.1293, allocations: 51.38 kB / 452.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.709e-05/0.1294, allocations: 56.69 kB / 452.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1294, allocations: 3.984 kB / 452.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.1295, allocations: 4 kB / 452.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1295, allocations: 3.984 kB / 452.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004688/0.1299, allocations: 457.1 kB / 453.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.13, allocations: 0 / 453.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.1303, allocations: 59.89 kB / 453.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1303, allocations: 0 / 453.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.1303, allocations: 8 kB / 453.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1303, allocations: 0 / 453.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1303, allocations: 0 / 453.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008505/0.1312, allocations: 0.5388 MB / 453.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.1313, allocations: 152.4 kB / 453.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.009e-05/0.1314, allocations: 15.92 kB / 453.9 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.1316, allocations: 15.98 kB / 453.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.1317, allocations: 11.98 kB / 453.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1317, allocations: 11.94 kB / 453.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.132, allocations: 283.1 kB / 454.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.132, allocations: 4 kB / 454.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.1324, allocations: 135.5 kB / 454.3 MB, free: 10.54 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.000108/0.1325, allocations: 99.25 kB / 454.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007584/0.1333, allocations: 431.9 kB / 454.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1333, allocations: 0 / 454.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.1336, allocations: 136 kB / 455 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006907/0.1343, allocations: 142.4 kB / 455.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1358, allocations: 0.8043 MB / 455.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1362, allocations: 0.8351 MB / 456.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.1364, allocations: 47.27 kB / 456.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.875e-05/0.1365, allocations: 31.44 kB / 456.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1365, allocations: 0 / 456.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of Templates: time 0.008447/0.1449, allocations: 4.434 MB / 461.3 MB, free: 3.594 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)