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.008836/0.008836, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.001908/0.001908, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2047/0.2047, allocations: 22.37 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 70.31 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.08662, allocations: 54.97 MB / 491.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003275/0.08992, allocations: 3.007 MB / 494.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.09156, allocations: 1.032 MB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.09179, allocations: 19.88 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.09202, allocations: 83.06 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.09224, allocations: 95.06 kB / 495.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.09285, allocations: 316.6 kB / 496.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000506/0.09336, allocations: 0.5583 MB / 496.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003228/0.09369, allocations: 235.3 kB / 496.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.09387, allocations: 191.1 kB / 497.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.09406, allocations: 206.8 kB / 497.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.99e-05/0.09414, allocations: 48 kB / 497.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.056e-05/0.0942, allocations: 48 kB / 497.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.09428, allocations: 107.5 kB / 497.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.09445, allocations: 234.5 kB / 497.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.09498, allocations: 0.5443 MB / 498.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.09499, allocations: 0 / 498.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09499, allocations: 0 / 498.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.09501, allocations: 0 / 498.2 MB, free: 11.01 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.001136/0.09615, allocations: 0.8332 MB / 499.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.09619, allocations: 11.97 kB / 499.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.09627, allocations: 70.72 kB / 499.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.09636, allocations: 68.52 kB / 499.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005683/0.09694, allocations: 438.1 kB / 499.6 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.09697, allocations: 25.38 kB / 499.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.09704, allocations: 40.38 kB / 499.7 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.09772, allocations: 419.6 kB / 0.4884 GB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.09774, allocations: 7.938 kB / 0.4884 GB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.09778, allocations: 16 kB / 0.4884 GB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.0978, allocations: 8 kB / 0.4884 GB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005524/0.09836, allocations: 278.4 kB / 0.4887 GB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1001, allocations: 1.523 MB / 0.4902 GB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007208/0.1008, allocations: 359.2 kB / 0.4905 GB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.1011, allocations: 137.2 kB / 0.4906 GB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.1011, allocations: 4.234 kB / 0.4907 GB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.1012, allocations: 38.78 kB / 0.4907 GB, free: 6.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.1012, allocations: 0 / 0.4907 GB, free: 6.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008467/0.102, allocations: 408.5 kB / 0.4911 GB, free: 6.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.1021, allocations: 106.8 kB / 0.4912 GB, free: 6.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.1025, allocations: 410 kB / 0.4916 GB, free: 5.609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.1025, allocations: 33.64 kB / 0.4916 GB, free: 5.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.1027, allocations: 264.4 kB / 0.4919 GB, free: 5.309 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.337e-05/0.1028, allocations: 107.7 kB / 0.492 GB, free: 5.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.482e-05/0.1029, allocations: 61.69 kB / 0.492 GB, free: 5.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.103, allocations: 362.8 kB / 0.4924 GB, free: 4.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.1033, allocations: 109.1 kB / 0.4925 GB, free: 4.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.1036, allocations: 196.9 kB / 0.4927 GB, free: 4.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.105, allocations: 0.5331 MB / 0.4932 GB, free: 3.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.105, allocations: 4 kB / 0.4932 GB, free: 3.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006548/0.1056, allocations: 390.6 kB / 0.4936 GB, free: 3.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1057, allocations: 9.875 kB / 0.4936 GB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1057, allocations: 0 / 0.4936 GB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1057, allocations: 4 kB / 0.4936 GB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.106, allocations: 71.91 kB / 0.4936 GB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.106, allocations: 3.984 kB / 0.4936 GB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.1062, allocations: 35.83 kB / 0.4937 GB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1063, allocations: 12.22 kB / 0.4937 GB, free: 3.359 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.0003239/0.1066, allocations: 220.4 kB / 0.4939 GB, free: 3.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002119/0.1068, allocations: 172.8 kB / 0.4941 GB, free: 2.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/0.1078, allocations: 463.3 kB / 0.4945 GB, free: 2.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.1079, allocations: 0 / 0.4945 GB, free: 2.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004688/0.1083, allocations: 337 kB / 0.4948 GB, free: 2.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.574e-06/0.1084, allocations: 8 kB / 0.4948 GB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-06/0.1084, allocations: 0 / 0.4948 GB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.622e-06/0.1084, allocations: 4 kB / 0.4948 GB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.1086, allocations: 63.91 kB / 0.4949 GB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1086, allocations: 7.938 kB / 0.4949 GB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.1088, allocations: 27.84 kB / 0.4949 GB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1089, allocations: 12.22 kB / 0.4949 GB, free: 2.008 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.0001294/0.109, allocations: 212.8 kB / 0.4951 GB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.1091, allocations: 47.67 kB / 0.4952 GB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.399e-05/0.1092, allocations: 52.7 kB / 0.4952 GB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1092, allocations: 4 kB / 0.4952 GB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1092, allocations: 0 / 0.4952 GB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1092, allocations: 3.984 kB / 0.4952 GB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004486/0.1096, allocations: 461.2 kB / 0.4957 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1097, allocations: 4 kB / 0.4957 GB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.11, allocations: 51.91 kB / 0.4957 GB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.11, allocations: 4 kB / 0.4957 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.11, allocations: 4 kB / 0.4957 GB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.11, allocations: 4 kB / 0.4958 GB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.11, allocations: 0 / 0.4958 GB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008613/0.1109, allocations: 0.548 MB / 0.4963 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.111, allocations: 152.7 kB / 0.4964 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.1111, allocations: 4 kB / 0.4964 GB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1113, allocations: 15.98 kB / 0.4965 GB, free: 376 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.326e-05/0.1114, allocations: 11.98 kB / 0.4965 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1114, allocations: 12 kB / 0.4965 GB, free: 352 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002553/0.1116, allocations: 287.1 kB / 0.4967 GB, free: 64 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1116, allocations: 4 kB / 0.4968 GB, free: 60 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004789/0.1121, allocations: 139.7 kB / 0.4969 GB, free: 15.92 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.001109/0.1132, allocations: 1.107 MB / 0.498 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007752/0.114, allocations: 417.3 kB / 0.4984 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.114, allocations: 4 kB / 0.4984 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.1143, allocations: 131.9 kB / 0.4985 GB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006767/0.115, allocations: 127.9 kB / 0.4986 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.1195, allocations: 3.765 MB / 0.5023 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.1199, allocations: 0.8312 MB / 0.5031 GB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.1201, allocations: 47.27 kB / 0.5031 GB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.1203, allocations: 163.4 kB / 0.5033 GB, free: 9.18 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1203, allocations: 0 / 0.5033 GB, free: 9.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.1469, allocations: 8.963 MB / 0.5121 GB, free: 340 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.331, allocations: 12.69 kB / 0.5121 GB, free: 332 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.TurbineFollows_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)