Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.001261/0.001261, allocations: 110.8 kB / 16.41 MB, free: 6.488 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.001307/0.001307, allocations: 195.7 kB / 19.36 MB, free: 3.73 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.419/1.419, allocations: 222.9 MB / 245 MB, free: 15.02 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.09802/0.09802, allocations: 22.33 MB / 319.6 MB, free: 6.777 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_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 68.03 kB / 445.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1055, allocations: 54.95 MB / 0.4885 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.0022/0.1077, allocations: 0.9989 MB / 0.4895 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1093, allocations: 1.229 MB / 0.4907 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.613e-05/0.1094, allocations: 0 / 0.4907 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.1097, allocations: 47.7 kB / 0.4907 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.1099, allocations: 43.77 kB / 0.4907 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.1101, allocations: 79.86 kB / 0.4908 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002955/0.1104, allocations: 215.6 kB / 0.491 GB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.1105, allocations: 37.42 kB / 0.4911 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1107, allocations: 83.73 kB / 0.4911 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.1108, allocations: 95.58 kB / 0.4912 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.1109, allocations: 12 kB / 0.4912 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.721e-05/0.1109, allocations: 12 kB / 0.4913 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.423e-05/0.111, allocations: 43.83 kB / 0.4913 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.141e-05/0.1111, allocations: 51.67 kB / 0.4913 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.1113, allocations: 131.3 kB / 0.4915 GB, free: 14.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1113, allocations: 4 kB / 0.4915 GB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.1113, allocations: 3.938 kB / 0.4915 GB, free: 14.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.1113, allocations: 4 kB / 0.4915 GB, free: 14.52 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001083/0.1124, allocations: 0.5047 MB / 0.492 GB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1124, allocations: 12.03 kB / 0.492 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.018e-05/0.1125, allocations: 38.73 kB / 0.492 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/0.1125, allocations: 16.84 kB / 0.492 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.1131, allocations: 300.7 kB / 0.4923 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1131, allocations: 8.375 kB / 0.4923 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.1132, allocations: 16.36 kB / 0.4923 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.1134, allocations: 124.2 kB / 0.4925 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1134, allocations: 0 / 0.4925 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1134, allocations: 4 kB / 0.4925 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1134, allocations: 7.938 kB / 0.4925 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.1137, allocations: 87.88 kB / 0.4926 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007679/0.1144, allocations: 0.5829 MB / 0.4931 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.1148, allocations: 138.5 kB / 0.4933 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.1149, allocations: 49.02 kB / 0.4933 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.115, allocations: 3.938 kB / 0.4933 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.115, allocations: 34.56 kB / 0.4933 GB, free: 12.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.115, allocations: 0 / 0.4933 GB, free: 12.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003857/0.1154, allocations: 169.5 kB / 0.4935 GB, free: 12.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.1154, allocations: 51.41 kB / 0.4936 GB, free: 12.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.1159, allocations: 259 kB / 0.4938 GB, free: 11.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.116, allocations: 29.7 kB / 0.4938 GB, free: 11.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.287e-05/0.1161, allocations: 120.1 kB / 0.4939 GB, free: 11.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.1161, allocations: 39.69 kB / 0.494 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.1162, allocations: 33.66 kB / 0.494 GB, free: 11.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1163, allocations: 326.8 kB / 0.4943 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.774e-05/0.1164, allocations: 35.98 kB / 0.4944 GB, free: 11.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.1165, allocations: 73.23 kB / 0.4944 GB, free: 11.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007941/0.1173, allocations: 250.3 kB / 0.4947 GB, free: 11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1173, allocations: 0 / 0.4947 GB, free: 11 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003088/0.1177, allocations: 161.5 kB / 0.4948 GB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1177, allocations: 6.5 kB / 0.4948 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1177, allocations: 4 kB / 0.4948 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1177, allocations: 0 / 0.4948 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.1178, allocations: 23.94 kB / 0.4949 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1178, allocations: 3.938 kB / 0.4949 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.1181, allocations: 43.91 kB / 0.4949 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1181, allocations: 4 kB / 0.4949 GB, free: 10.75 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001574/0.1182, allocations: 130.6 kB / 0.495 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1183, allocations: 15.91 kB / 0.495 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.086e-05/0.1183, allocations: 21.41 kB / 0.4951 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1184, allocations: 4 kB / 0.4951 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1184, allocations: 3.938 kB / 0.4951 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1184, allocations: 7.984 kB / 0.4951 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.1187, allocations: 233.5 kB / 0.4953 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1187, allocations: 4 kB / 0.4953 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.1188, allocations: 19.94 kB / 0.4953 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1188, allocations: 0 / 0.4953 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1189, allocations: 4 kB / 0.4953 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1189, allocations: 0 / 0.4953 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1189, allocations: 7.938 kB / 0.4953 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.1193, allocations: 287.3 kB / 0.4956 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-05/0.1194, allocations: 92.95 kB / 0.4957 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.1194, allocations: 12.03 kB / 0.4957 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.1196, allocations: 19.97 kB / 0.4957 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.1197, allocations: 11.92 kB / 0.4957 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.1197, allocations: 96 / 0.4957 GB, free: 9.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004016/0.1201, allocations: 203.1 kB / 0.4959 GB, free: 9.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1201, allocations: 0 / 0.4959 GB, free: 9.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.1204, allocations: 20 kB / 0.496 GB, free: 9.582 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.0007019/0.1211, allocations: 0.8139 MB / 0.4968 GB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.1214, allocations: 111.9 kB / 0.4969 GB, free: 8.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1214, allocations: 0 / 0.4969 GB, free: 8.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.1215, allocations: 39.98 kB / 0.4969 GB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.1219, allocations: 35.91 kB / 0.4969 GB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.125, allocations: 2.104 MB / 0.499 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1254, allocations: 0.7317 MB / 0.4997 GB, free: 5.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.1255, allocations: 25.08 kB / 0.4997 GB, free: 5.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.589e-05/0.1256, allocations: 47.41 kB / 0.4998 GB, free: 5.543 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1256, allocations: 0 / 0.4998 GB, free: 5.543 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.1514, allocations: 3.135 MB / 0.5028 GB, free: 2.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.063, allocations: 8.688 kB / 0.5028 GB, free: 2.523 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.908468815963715] Failed to read output from testmodel.py, exit status != 0: 8.13129646005109 8.380711967 8.266989683 Calling exit ...