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.00165/0.001651, allocations: 106.9 kB / 16.41 MB, free: 6.473 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.001663/0.001663, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09232/0.09232, allocations: 22.33 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08837, allocations: 54.95 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004035/0.09245, allocations: 3.016 MB / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.09427, allocations: 1.036 MB / 496.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.09458, allocations: 15.94 kB / 496.7 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002419/0.09484, allocations: 87.06 kB / 496.8 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.09508, allocations: 87.08 kB / 496.9 MB, free: 488 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006602/0.09575, allocations: 331 kB / 497.2 MB, free: 160 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000592/0.09635, allocations: 0.5545 MB / 497.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.09671, allocations: 231.1 kB / 498 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.09691, allocations: 195 kB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.09714, allocations: 210.8 kB / 498.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.396e-05/0.09722, allocations: 44 kB / 498.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.665e-05/0.09728, allocations: 48 kB / 498.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.4e-05/0.09737, allocations: 99.56 kB / 498.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.09756, allocations: 230.6 kB / 498.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.09809, allocations: 0.5482 MB / 499.4 MB, free: 14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.0981, allocations: 0 / 499.4 MB, free: 14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09811, allocations: 4 kB / 499.4 MB, free: 14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.09813, allocations: 0 / 499.4 MB, free: 14 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.00114/0.09927, allocations: 0.832 MB / 0.4885 GB, free: 13.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.09932, allocations: 12.02 kB / 0.4885 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.09943, allocations: 72.45 kB / 0.4886 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.1, allocations: 434.1 kB / 0.489 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.1, allocations: 25.38 kB / 0.489 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.1001, allocations: 36.38 kB / 0.489 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006805/0.1008, allocations: 423.8 kB / 0.4894 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1008, allocations: 0 / 0.4894 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.1008, allocations: 16 kB / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1009, allocations: 8 kB / 0.4895 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005977/0.1015, allocations: 290.4 kB / 0.4897 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1033, allocations: 1.527 MB / 0.4912 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007659/0.1041, allocations: 339.4 kB / 0.4915 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.1044, allocations: 141.2 kB / 0.4917 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.1044, allocations: 4.234 kB / 0.4917 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1044, allocations: 30.8 kB / 0.4917 GB, free: 9.633 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.1044, allocations: 4 kB / 0.4917 GB, free: 9.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008893/0.1053, allocations: 417.4 kB / 0.4921 GB, free: 9.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.1054, allocations: 106.8 kB / 0.4922 GB, free: 9.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.1058, allocations: 406 kB / 0.4926 GB, free: 8.688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1058, allocations: 29.7 kB / 0.4926 GB, free: 8.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.106, allocations: 269 kB / 0.4929 GB, free: 8.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.1061, allocations: 107.1 kB / 0.493 GB, free: 8.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1062, allocations: 61.69 kB / 0.4931 GB, free: 8.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1063, allocations: 354.8 kB / 0.4934 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.1066, allocations: 117.1 kB / 0.4935 GB, free: 7.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.1069, allocations: 192.9 kB / 0.4937 GB, free: 7.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.1084, allocations: 0.5254 MB / 0.4942 GB, free: 6.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1084, allocations: 4 kB / 0.4942 GB, free: 6.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007074/0.1091, allocations: 394.6 kB / 0.4946 GB, free: 6.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1092, allocations: 8 kB / 0.4946 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1092, allocations: 0 / 0.4946 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1092, allocations: 4 kB / 0.4946 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1095, allocations: 76.12 kB / 0.4947 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1095, allocations: 3.938 kB / 0.4947 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.1098, allocations: 43.77 kB / 0.4947 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.1098, allocations: 15.98 kB / 0.4947 GB, free: 6.43 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.0003233/0.1101, allocations: 220.3 kB / 0.4949 GB, free: 6.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002148/0.1104, allocations: 165 kB / 0.4951 GB, free: 6.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001089/0.1115, allocations: 463.4 kB / 0.4955 GB, free: 5.543 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.1115, allocations: 0 / 0.4955 GB, free: 5.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005238/0.112, allocations: 333.1 kB / 0.4959 GB, free: 5.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.112, allocations: 11.88 kB / 0.4959 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-06/0.112, allocations: 0 / 0.4959 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-06/0.112, allocations: 4 kB / 0.4959 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.1123, allocations: 60.14 kB / 0.4959 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.1123, allocations: 4 kB / 0.4959 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.1125, allocations: 39.77 kB / 0.496 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.1125, allocations: 8 kB / 0.496 GB, free: 5.086 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.0001344/0.1127, allocations: 204.9 kB / 0.4962 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.586e-05/0.1128, allocations: 51.61 kB / 0.4962 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.1129, allocations: 52.69 kB / 0.4963 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1129, allocations: 4 kB / 0.4963 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1129, allocations: 0 / 0.4963 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.113, allocations: 148.7 kB / 0.4964 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.1131, allocations: 8 kB / 0.4964 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.1133, allocations: 15.98 kB / 0.4964 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.1134, allocations: 19.97 kB / 0.4965 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009001/0.1143, allocations: 405.5 kB / 0.4968 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009708/0.1153, allocations: 0.6314 MB / 0.4975 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002578/0.1155, allocations: 124 kB / 0.4976 GB, free: 3.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002727/0.1158, allocations: 283.1 kB / 0.4978 GB, free: 3.113 MB / 382.1 MB Notification: Performance of Backend: time 1.703e-06/0.1158, allocations: 0 / 0.4978 GB, free: 3.113 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009043/0.1167, allocations: 404 kB / 0.4982 GB, free: 2.715 MB / 382.1 MB Notification: Performance of SimCode: time 0.001465/0.1182, allocations: 1.301 MB / 0.4995 GB, free: 1.367 MB / 382.1 MB Notification: Performance of Templates: time 0.1777/0.296, allocations: 6.143 MB / 0.5055 GB, free: 21.91 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)