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.001122/0.001122, allocations: 109.3 kB / 16.41 MB, free: 5.984 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.001059/0.001059, allocations: 194.1 kB / 17.35 MB, free: 5.574 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09219/0.09219, allocations: 22.34 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1004, allocations: 54.96 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004245/0.1047, allocations: 3.012 MB / 495.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.1068, allocations: 1.04 MB / 496.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004359/0.1073, allocations: 19.88 kB / 496.7 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.1076, allocations: 83.06 kB / 496.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003139/0.1079, allocations: 95.08 kB / 496.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007937/0.1087, allocations: 311 kB / 497.2 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006982/0.1094, allocations: 0.5545 MB / 497.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.1098, allocations: 235 kB / 498 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.1101, allocations: 191.1 kB / 498.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.1103, allocations: 206.8 kB / 498.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.964e-05/0.1104, allocations: 51.94 kB / 498.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.253e-05/0.1105, allocations: 44 kB / 498.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-05/0.1106, allocations: 99.61 kB / 498.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.1108, allocations: 234.5 kB / 498.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005527/0.1113, allocations: 0.5482 MB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1114, allocations: 0 / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1114, allocations: 0 / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.1114, allocations: 0 / 499.4 MB, free: 14.02 MB / 382.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.001328/0.1127, allocations: 0.8332 MB / 0.4885 GB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.1128, allocations: 12.03 kB / 0.4885 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.1129, allocations: 64.52 kB / 0.4886 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006387/0.1135, allocations: 434.1 kB / 0.489 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.1136, allocations: 33.31 kB / 0.489 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.1136, allocations: 36.38 kB / 0.489 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006903/0.1143, allocations: 419.8 kB / 0.4894 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1144, allocations: 3.938 kB / 0.4894 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.1144, allocations: 16 kB / 0.4894 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1144, allocations: 12 kB / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006099/0.115, allocations: 286.4 kB / 0.4897 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.1169, allocations: 1.523 MB / 0.4912 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000737/0.1177, allocations: 343.3 kB / 0.4915 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.1179, allocations: 141.2 kB / 0.4917 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.118, allocations: 8.219 kB / 0.4917 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.118, allocations: 34.8 kB / 0.4917 GB, free: 9.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.834e-06/0.118, allocations: 0 / 0.4917 GB, free: 9.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008871/0.1189, allocations: 409.4 kB / 0.4921 GB, free: 9.238 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.119, allocations: 110.8 kB / 0.4922 GB, free: 9.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004032/0.1194, allocations: 409.9 kB / 0.4926 GB, free: 8.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.1194, allocations: 29.7 kB / 0.4926 GB, free: 8.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.1196, allocations: 268.4 kB / 0.4929 GB, free: 8.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.535e-05/0.1197, allocations: 107.7 kB / 0.493 GB, free: 8.293 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.824e-05/0.1198, allocations: 57.7 kB / 0.4931 GB, free: 8.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.12, allocations: 358.8 kB / 0.4934 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.1202, allocations: 121.1 kB / 0.4935 GB, free: 7.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.1205, allocations: 192.9 kB / 0.4937 GB, free: 7.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.122, allocations: 0.5293 MB / 0.4942 GB, free: 6.977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.122, allocations: 0 / 0.4942 GB, free: 6.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007029/0.1227, allocations: 390.6 kB / 0.4946 GB, free: 6.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1227, allocations: 7.984 kB / 0.4946 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1227, allocations: 4.219 kB / 0.4946 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1228, allocations: 4 kB / 0.4946 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.1231, allocations: 71.91 kB / 0.4947 GB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1231, allocations: 4 kB / 0.4947 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.1233, allocations: 35.77 kB / 0.4947 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.1234, allocations: 19.94 kB / 0.4947 GB, free: 6.445 MB / 382.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.0003292/0.1237, allocations: 212.4 kB / 0.4949 GB, free: 6.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000216/0.1239, allocations: 168.9 kB / 0.4951 GB, free: 6.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001097/0.125, allocations: 455.4 kB / 0.4955 GB, free: 5.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.629e-06/0.125, allocations: 4 kB / 0.4955 GB, free: 5.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005101/0.1256, allocations: 333 kB / 0.4958 GB, free: 5.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.1256, allocations: 12.14 kB / 0.4959 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1256, allocations: 8 kB / 0.4959 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.611e-06/0.1256, allocations: 4 kB / 0.4959 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.1258, allocations: 55.92 kB / 0.4959 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.1259, allocations: 3.938 kB / 0.4959 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1261, allocations: 39.77 kB / 0.496 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1261, allocations: 8 kB / 0.496 GB, free: 5.105 MB / 382.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.0001517/0.1262, allocations: 205 kB / 0.4962 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.1263, allocations: 59.55 kB / 0.4962 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.1264, allocations: 52.69 kB / 0.4963 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1264, allocations: 4 kB / 0.4963 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1265, allocations: 0 / 0.4963 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.1266, allocations: 144.7 kB / 0.4964 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.1267, allocations: 8 kB / 0.4964 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.1269, allocations: 15.98 kB / 0.4964 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.127, allocations: 15.98 kB / 0.4965 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008843/0.1279, allocations: 409.5 kB / 0.4968 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009503/0.1288, allocations: 0.6314 MB / 0.4975 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002446/0.1291, allocations: 128 kB / 0.4976 GB, free: 3.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002805/0.1294, allocations: 279.1 kB / 0.4978 GB, free: 3.129 MB / 382.1 MB Notification: Performance of Backend: time 5.91e-07/0.1294, allocations: 0 / 0.4978 GB, free: 3.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008954/0.1303, allocations: 402 kB / 0.4982 GB, free: 2.73 MB / 382.1 MB Notification: Performance of SimCode: time 0.001556/0.1318, allocations: 1.303 MB / 0.4995 GB, free: 1.383 MB / 382.1 MB Notification: Performance of Templates: time 0.209/0.3409, allocations: 6.139 MB / 0.5055 GB, free: 21.93 MB / 382.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)