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: "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007542/0.007542, allocations: 98.14 kB / 15.73 MB, free: 5.57 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.001243/0.001243, allocations: 194.7 kB / 16.67 MB, free: 5.5 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09201/0.09201, allocations: 22.32 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.91 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09764, allocations: 54.95 MB / 491.5 MB, free: 5.277 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.004169/0.1019, allocations: 3.016 MB / 494.5 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.104, allocations: 1.036 MB / 495.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005047/0.1045, allocations: 15.94 kB / 495.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00035/0.1049, allocations: 87.06 kB / 495.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003659/0.1053, allocations: 87.08 kB / 495.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.1061, allocations: 318.3 kB / 496 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006343/0.1068, allocations: 0.5505 MB / 496.6 MB, free: 152 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003841/0.1072, allocations: 235.3 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.1074, allocations: 191.1 kB / 497 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.1076, allocations: 206.8 kB / 497.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.451e-05/0.1077, allocations: 48 kB / 497.2 MB, free: 15.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.93e-05/0.1078, allocations: 44 kB / 497.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.288e-05/0.1079, allocations: 107.6 kB / 497.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.1081, allocations: 234.5 kB / 497.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.1086, allocations: 0.5447 MB / 498.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1086, allocations: 0 / 498.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1086, allocations: 0 / 498.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.1087, allocations: 0 / 498.2 MB, free: 14.55 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.001418/0.1101, allocations: 0.8141 MB / 499 MB, free: 13.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1101, allocations: 12.03 kB / 499 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.317e-05/0.1102, allocations: 78.7 kB / 499.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.1103, allocations: 60.19 kB / 499.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.111, allocations: 437.6 kB / 499.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.111, allocations: 29.38 kB / 499.6 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.1111, allocations: 36.38 kB / 499.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000692/0.1118, allocations: 419.6 kB / 0.4883 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1118, allocations: 4 kB / 0.4883 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.1118, allocations: 20 kB / 0.4883 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1118, allocations: 15.92 kB / 0.4883 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005458/0.1124, allocations: 282.4 kB / 0.4886 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1143, allocations: 1.511 MB / 0.4901 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/0.115, allocations: 343.3 kB / 0.4904 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.1153, allocations: 137.9 kB / 0.4906 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.1154, allocations: 8.234 kB / 0.4906 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.1154, allocations: 30.8 kB / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.365e-06/0.1154, allocations: 4 kB / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.000862/0.1163, allocations: 409.1 kB / 0.491 GB, free: 9.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.1164, allocations: 110.8 kB / 0.4911 GB, free: 9.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004092/0.1168, allocations: 409.9 kB / 0.4915 GB, free: 9.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.1169, allocations: 33.7 kB / 0.4915 GB, free: 9.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.1171, allocations: 260 kB / 0.4918 GB, free: 8.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.62e-05/0.1172, allocations: 98.56 kB / 0.4919 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1173, allocations: 61.69 kB / 0.4919 GB, free: 8.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1175, allocations: 354.8 kB / 0.4923 GB, free: 8.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.1177, allocations: 121.1 kB / 0.4924 GB, free: 8.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.118, allocations: 204.7 kB / 0.4926 GB, free: 8.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.1194, allocations: 0.5216 MB / 0.4931 GB, free: 7.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1195, allocations: 0 / 0.4931 GB, free: 7.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007108/0.1202, allocations: 394.5 kB / 0.4934 GB, free: 7.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1202, allocations: 6.031 kB / 0.4935 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.1202, allocations: 4 kB / 0.4935 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.1203, allocations: 4 kB / 0.4935 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.1206, allocations: 67.91 kB / 0.4935 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1206, allocations: 7.938 kB / 0.4935 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.1208, allocations: 39.58 kB / 0.4936 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.1209, allocations: 16 kB / 0.4936 GB, free: 6.93 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.0003847/0.1213, allocations: 213 kB / 0.4938 GB, free: 6.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002083/0.1215, allocations: 161 kB / 0.4939 GB, free: 6.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00107/0.1225, allocations: 471.3 kB / 0.4944 GB, free: 6.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.817e-06/0.1226, allocations: 7.984 kB / 0.4944 GB, free: 6.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005053/0.1231, allocations: 336.7 kB / 0.4947 GB, free: 5.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1231, allocations: 4 kB / 0.4947 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.1231, allocations: 4 kB / 0.4947 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.471e-06/0.1231, allocations: 4 kB / 0.4947 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.1234, allocations: 59.92 kB / 0.4948 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1234, allocations: 7.984 kB / 0.4948 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.1236, allocations: 27.69 kB / 0.4948 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1236, allocations: 12 kB / 0.4948 GB, free: 5.586 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.0001591/0.1238, allocations: 212.2 kB / 0.495 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.1239, allocations: 51.44 kB / 0.4951 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.124, allocations: 52.69 kB / 0.4951 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.124, allocations: 0 / 0.4951 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.124, allocations: 0 / 0.4951 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.124, allocations: 7.984 kB / 0.4951 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005022/0.1245, allocations: 457.1 kB / 0.4956 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1245, allocations: 4 kB / 0.4956 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.1249, allocations: 59.91 kB / 0.4956 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1249, allocations: 3.984 kB / 0.4956 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.1249, allocations: 8 kB / 0.4957 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1249, allocations: 0 / 0.4957 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.1249, allocations: 0 / 0.4957 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008299/0.1257, allocations: 0.5504 MB / 0.4962 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.1259, allocations: 144.5 kB / 0.4963 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.56e-05/0.126, allocations: 11.98 kB / 0.4963 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.1262, allocations: 15.98 kB / 0.4964 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.293e-05/0.1262, allocations: 11.98 kB / 0.4964 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1263, allocations: 8 kB / 0.4964 GB, free: 3.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002934/0.1266, allocations: 283.1 kB / 0.4966 GB, free: 3.637 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1266, allocations: 4 kB / 0.4966 GB, free: 3.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004977/0.1271, allocations: 143.4 kB / 0.4968 GB, free: 3.492 MB / 382.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.001169/0.1282, allocations: 1.093 MB / 0.4979 GB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007952/0.1291, allocations: 413.2 kB / 0.4982 GB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1291, allocations: 4.125 kB / 0.4982 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.1293, allocations: 139.8 kB / 0.4984 GB, free: 1.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006557/0.13, allocations: 128.7 kB / 0.4985 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1956/0.3256, allocations: 3.745 MB / 0.5022 GB, free: 20.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.3258, allocations: 0.8317 MB / 0.503 GB, free: 20.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.3261, allocations: 47.67 kB / 0.503 GB, free: 20.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3263, allocations: 159.8 kB / 0.5032 GB, free: 20.17 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3263, allocations: 0.6562 kB / 0.5032 GB, free: 20.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.3612, allocations: 9.126 MB / 0.5121 GB, free: 19.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.323, allocations: 11.41 kB / 0.5121 GB, free: 19.12 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_TurbineFollows_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)