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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 106.3 kB / 16.4 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 192.5 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1018/0.1018, allocations: 22.32 MB / 319.5 MB, free: 6.758 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.89 kB / 445.2 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1124, allocations: 54.95 MB / 0.4885 GB, free: 1.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.006067/0.1185, allocations: 3.013 MB / 0.4914 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002885/0.1214, allocations: 1.036 MB / 0.4924 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004564/0.1219, allocations: 15.94 kB / 0.4924 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003755/0.1223, allocations: 83.06 kB / 0.4925 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.1227, allocations: 98.98 kB / 0.4926 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009683/0.1237, allocations: 314.9 kB / 0.4929 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000833/0.1245, allocations: 0.5466 MB / 0.4935 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005422/0.1251, allocations: 239 kB / 0.4937 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003177/0.1254, allocations: 199 kB / 0.4939 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.1258, allocations: 198.8 kB / 0.4941 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1259, allocations: 44 kB / 0.4941 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.102e-05/0.126, allocations: 44 kB / 0.4941 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1261, allocations: 115.5 kB / 0.4943 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.1264, allocations: 230.5 kB / 0.4945 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008666/0.1273, allocations: 0.5443 MB / 0.495 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1273, allocations: 4 kB / 0.495 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1273, allocations: 0 / 0.495 GB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1273, allocations: 0 / 0.495 GB, free: 10.88 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.001685/0.129, allocations: 0.8254 MB / 0.4958 GB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.1291, allocations: 8.031 kB / 0.4958 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.1292, allocations: 74.72 kB / 0.4959 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1294, allocations: 64.52 kB / 0.496 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.1303, allocations: 442 kB / 0.4964 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/0.1303, allocations: 29.38 kB / 0.4964 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.583e-05/0.1304, allocations: 36.38 kB / 0.4964 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009663/0.1314, allocations: 427.6 kB / 0.4968 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1314, allocations: 0 / 0.4968 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.1315, allocations: 16 kB / 0.4969 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1315, allocations: 12 kB / 0.4969 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008464/0.1324, allocations: 286.4 kB / 0.4971 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.1352, allocations: 1.516 MB / 0.4986 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.1363, allocations: 352 kB / 0.499 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.1366, allocations: 137.2 kB / 0.4991 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.1366, allocations: 4.234 kB / 0.4991 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.1367, allocations: 38.78 kB / 0.4991 GB, free: 6.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.1367, allocations: 0 / 0.4991 GB, free: 6.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009806/0.1377, allocations: 413.6 kB / 0.4995 GB, free: 6.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.1378, allocations: 106.8 kB / 0.4996 GB, free: 5.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004628/0.1382, allocations: 409.9 kB / 0.5 GB, free: 5.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1383, allocations: 33.7 kB / 0.5001 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.1385, allocations: 260.5 kB / 0.5003 GB, free: 5.188 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.005e-05/0.1386, allocations: 107.7 kB / 0.5004 GB, free: 5.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.1387, allocations: 61.69 kB / 0.5005 GB, free: 5.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1389, allocations: 358.7 kB / 0.5008 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.1392, allocations: 117.1 kB / 0.5009 GB, free: 4.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000469/0.1397, allocations: 196.9 kB / 0.5011 GB, free: 4.316 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002199/0.1419, allocations: 0.5255 MB / 0.5016 GB, free: 3.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1419, allocations: 0 / 0.5016 GB, free: 3.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001158/0.1431, allocations: 394.8 kB / 0.502 GB, free: 3.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1431, allocations: 4 kB / 0.502 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1431, allocations: 4 kB / 0.502 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.1432, allocations: 4 kB / 0.502 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004345/0.1436, allocations: 67.91 kB / 0.5021 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.09e-05/0.1436, allocations: 11.92 kB / 0.5021 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.144, allocations: 39.77 kB / 0.5021 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.1441, allocations: 12 kB / 0.5021 GB, free: 3.234 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.0005316/0.1446, allocations: 212.4 kB / 0.5023 GB, free: 3.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003451/0.145, allocations: 161 kB / 0.5025 GB, free: 2.836 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001671/0.1466, allocations: 467.4 kB / 0.5029 GB, free: 2.355 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/0.1467, allocations: 0 / 0.5029 GB, free: 2.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.000838/0.1475, allocations: 341.1 kB / 0.5033 GB, free: 2.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1475, allocations: 8 kB / 0.5033 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1476, allocations: 0 / 0.5033 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.1476, allocations: 8 kB / 0.5033 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.1479, allocations: 59.91 kB / 0.5033 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.148, allocations: 4 kB / 0.5033 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.1483, allocations: 27.84 kB / 0.5034 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.1483, allocations: 8 kB / 0.5034 GB, free: 1.902 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.0002597/0.1486, allocations: 216.7 kB / 0.5036 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.1487, allocations: 55.66 kB / 0.5036 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001462/0.1489, allocations: 48.7 kB / 0.5037 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.1489, allocations: 4 kB / 0.5037 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.1489, allocations: 0 / 0.5037 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.1489, allocations: 3.984 kB / 0.5037 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007871/0.1497, allocations: 465.1 kB / 0.5041 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1497, allocations: 0 / 0.5041 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.1502, allocations: 59.91 kB / 0.5042 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1502, allocations: 0 / 0.5042 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.1502, allocations: 8 kB / 0.5042 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1503, allocations: 0 / 0.5042 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1503, allocations: 0 / 0.5042 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.1517, allocations: 0.5546 MB / 0.5047 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.152, allocations: 148.7 kB / 0.5049 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-05/0.1521, allocations: 11.94 kB / 0.5049 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.1524, allocations: 15.98 kB / 0.5049 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.1525, allocations: 15.98 kB / 0.5049 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.1525, allocations: 4 kB / 0.5049 GB, free: 224 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.21/0.3625, allocations: 283.3 kB / 0.5052 GB, free: 20.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.021e-06/0.3626, allocations: 1.781 kB / 0.5052 GB, free: 20.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007305/0.3633, allocations: 143.3 kB / 0.5053 GB, free: 20.71 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.001096/0.3644, allocations: 1.092 MB / 0.5064 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008002/0.3652, allocations: 420.9 kB / 0.5068 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3652, allocations: 0.625 kB / 0.5068 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.3655, allocations: 139.3 kB / 0.5069 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006842/0.3662, allocations: 127.5 kB / 0.5071 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004238/0.3704, allocations: 3.768 MB / 0.5107 GB, free: 18.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.3707, allocations: 0.8324 MB / 0.5115 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000211/0.3709, allocations: 46.02 kB / 0.5116 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.3711, allocations: 155.5 kB / 0.5117 GB, free: 17.72 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3711, allocations: 0 / 0.5117 GB, free: 17.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.4051, allocations: 8.99 MB / 0.5205 GB, free: 16.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.472/8.877, allocations: 8.344 kB / 0.5205 GB, free: 16.62 MB / 382.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.620288243982941] Failed to read output from testmodel.py, exit status != 0: 8.95137297094334 8.973315611 8.842546634 Calling exit ...