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.004773/0.004773, allocations: 100.3 kB / 15.73 MB, free: 6.059 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.001222/0.001222, allocations: 194.9 kB / 16.68 MB, free: 5.969 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1905/0.1905, allocations: 22.35 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 73.97 kB / 436.6 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08664, allocations: 54.96 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003825/0.09051, allocations: 3.011 MB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.09252, allocations: 1.029 MB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.09283, allocations: 23.88 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.0931, allocations: 83.06 kB / 495.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.09332, allocations: 87.08 kB / 495.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006547/0.09398, allocations: 322 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005752/0.09457, allocations: 0.5466 MB / 496.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.09494, allocations: 243.3 kB / 496.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.09513, allocations: 183.1 kB / 497 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.09536, allocations: 206.8 kB / 497.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.341e-05/0.09544, allocations: 48 kB / 497.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.09551, allocations: 44 kB / 497.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.537e-05/0.09561, allocations: 107.6 kB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.09581, allocations: 234.5 kB / 497.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005527/0.09637, allocations: 0.5482 MB / 498.2 MB, free: 11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09638, allocations: 0 / 498.2 MB, free: 11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09639, allocations: 4 kB / 498.2 MB, free: 11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.0964, allocations: 0 / 498.2 MB, free: 11 MB / 366.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.001186/0.0976, allocations: 0.8311 MB / 499.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.09764, allocations: 12.03 kB / 499.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.331e-05/0.09773, allocations: 74.72 kB / 499.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.804e-05/0.09782, allocations: 64.52 kB / 499.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.09842, allocations: 438.1 kB / 499.6 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.09846, allocations: 29.38 kB / 499.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.09852, allocations: 36.38 kB / 499.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006932/0.09922, allocations: 423.6 kB / 0.4884 GB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.09925, allocations: 3.938 kB / 0.4884 GB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.09929, allocations: 16 kB / 0.4884 GB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.0993, allocations: 8 kB / 0.4884 GB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005933/0.0999, allocations: 286.4 kB / 0.4887 GB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.1018, allocations: 1.519 MB / 0.4902 GB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.1025, allocations: 352.4 kB / 0.4905 GB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.1028, allocations: 133.3 kB / 0.4906 GB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.1029, allocations: 12.84 kB / 0.4906 GB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1029, allocations: 34.8 kB / 0.4907 GB, free: 6.543 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.342e-06/0.1029, allocations: 0 / 0.4907 GB, free: 6.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008773/0.1038, allocations: 404.5 kB / 0.4911 GB, free: 6.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.1039, allocations: 114.8 kB / 0.4912 GB, free: 6.008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.1043, allocations: 406 kB / 0.4916 GB, free: 5.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.1043, allocations: 33.7 kB / 0.4916 GB, free: 5.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.1045, allocations: 272.4 kB / 0.4919 GB, free: 5.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.1046, allocations: 95.12 kB / 0.4919 GB, free: 5.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1047, allocations: 65.69 kB / 0.492 GB, free: 5.133 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1049, allocations: 354.8 kB / 0.4923 GB, free: 4.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.1052, allocations: 117.1 kB / 0.4925 GB, free: 4.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.1055, allocations: 192.9 kB / 0.4926 GB, free: 4.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.1069, allocations: 0.537 MB / 0.4932 GB, free: 3.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1069, allocations: 0 / 0.4932 GB, free: 3.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006992/0.1076, allocations: 390.6 kB / 0.4935 GB, free: 3.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1077, allocations: 4.219 kB / 0.4935 GB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1077, allocations: 8 kB / 0.4935 GB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.1077, allocations: 4 kB / 0.4936 GB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.108, allocations: 75.83 kB / 0.4936 GB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.108, allocations: 4 kB / 0.4936 GB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.1082, allocations: 35.83 kB / 0.4937 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1083, allocations: 12 kB / 0.4937 GB, free: 3.352 MB / 366.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.0003515/0.1086, allocations: 214.5 kB / 0.4939 GB, free: 3.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002342/0.1089, allocations: 168.9 kB / 0.494 GB, free: 2.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001073/0.1099, allocations: 475.2 kB / 0.4945 GB, free: 2.457 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.11, allocations: 0 / 0.4945 GB, free: 2.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005242/0.1105, allocations: 333.1 kB / 0.4948 GB, free: 2.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.1105, allocations: 8.219 kB / 0.4948 GB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1105, allocations: 8 kB / 0.4948 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.569e-06/0.1105, allocations: 4 kB / 0.4948 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.1108, allocations: 59.91 kB / 0.4949 GB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1108, allocations: 7.938 kB / 0.4949 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.111, allocations: 31.78 kB / 0.4949 GB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.111, allocations: 8 kB / 0.4949 GB, free: 2 MB / 366.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.0001573/0.1111, allocations: 212.9 kB / 0.4951 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.1112, allocations: 51.67 kB / 0.4952 GB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.1113, allocations: 48.7 kB / 0.4952 GB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1113, allocations: 0 / 0.4952 GB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1114, allocations: 7.984 kB / 0.4952 GB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1114, allocations: 0 / 0.4952 GB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005074/0.1119, allocations: 465.1 kB / 0.4957 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1119, allocations: 0 / 0.4957 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.1122, allocations: 55.91 kB / 0.4957 GB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1122, allocations: 4 kB / 0.4957 GB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.1122, allocations: 8 kB / 0.4957 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1122, allocations: 0 / 0.4957 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1122, allocations: 0 / 0.4957 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009428/0.1132, allocations: 0.5441 MB / 0.4963 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.1133, allocations: 152.7 kB / 0.4964 GB, free: 388 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.1134, allocations: 8 kB / 0.4964 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1136, allocations: 15.98 kB / 0.4964 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.356e-05/0.1137, allocations: 19.92 kB / 0.4965 GB, free: 344 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.1137, allocations: 7.984 kB / 0.4965 GB, free: 336 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.114, allocations: 283.1 kB / 0.4967 GB, free: 52 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.114, allocations: 0 / 0.4967 GB, free: 52 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004713/0.1145, allocations: 143.7 kB / 0.4969 GB, free: 15.91 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.00121/0.1157, allocations: 1.099 MB / 0.498 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008044/0.1165, allocations: 420.4 kB / 0.4984 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1165, allocations: 0 / 0.4984 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.1168, allocations: 136.8 kB / 0.4985 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006471/0.1175, allocations: 125.7 kB / 0.4986 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00503/0.1225, allocations: 3.762 MB / 0.5023 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.123, allocations: 0.8312 MB / 0.5031 GB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.1232, allocations: 55.23 kB / 0.5031 GB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.1234, allocations: 155.4 kB / 0.5033 GB, free: 9.172 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1234, allocations: 0 / 0.5033 GB, free: 9.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.1573, allocations: 8.975 MB / 0.5121 GB, free: 328 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.379, allocations: 11.5 kB / 0.5121 GB, free: 320 kB / 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)