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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 113.1 kB / 17.15 MB, free: 5.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 212 kB / 20.11 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1053/0.1053, allocations: 24.03 MB / 333.6 MB, free: 1.582 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 72.81 kB / 468.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1061, allocations: 59.55 MB / 0.5156 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002334/0.1084, allocations: 1.007 MB / 0.5166 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1103, allocations: 1.268 MB / 0.5178 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.581e-05/0.1104, allocations: 4 kB / 0.5178 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.1107, allocations: 47.69 kB / 0.5178 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.1109, allocations: 43.77 kB / 0.5179 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.1111, allocations: 79.88 kB / 0.518 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.1114, allocations: 219.6 kB / 0.5182 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.1115, allocations: 29.41 kB / 0.5182 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.1117, allocations: 83.69 kB / 0.5183 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.1119, allocations: 95.62 kB / 0.5184 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.389e-05/0.1119, allocations: 12 kB / 0.5184 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.041e-05/0.1119, allocations: 8 kB / 0.5184 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.287e-05/0.112, allocations: 47.83 kB / 0.5184 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.165e-05/0.1121, allocations: 55.66 kB / 0.5185 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.1123, allocations: 131.3 kB / 0.5186 GB, free: 9.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1123, allocations: 0 / 0.5186 GB, free: 9.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1123, allocations: 8 kB / 0.5186 GB, free: 9.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1123, allocations: 0 / 0.5186 GB, free: 9.188 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.001247/0.1135, allocations: 0.5064 MB / 0.5191 GB, free: 8.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1136, allocations: 12.62 kB / 0.5191 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.1136, allocations: 42.73 kB / 0.5192 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.1137, allocations: 20.78 kB / 0.5192 GB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006474/0.1143, allocations: 296.8 kB / 0.5195 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.1144, allocations: 4.375 kB / 0.5195 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.1144, allocations: 12.38 kB / 0.5195 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.1146, allocations: 128.3 kB / 0.5196 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1146, allocations: 0 / 0.5196 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.1147, allocations: 0 / 0.5196 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1147, allocations: 0 / 0.5196 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.1149, allocations: 87.94 kB / 0.5197 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008438/0.1157, allocations: 0.5867 MB / 0.5203 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.1161, allocations: 146.4 kB / 0.5204 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1162, allocations: 44.83 kB / 0.5204 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.1162, allocations: 4 kB / 0.5204 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1163, allocations: 30.56 kB / 0.5205 GB, free: 7.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.1163, allocations: 0 / 0.5205 GB, free: 7.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004116/0.1167, allocations: 165.7 kB / 0.5206 GB, free: 6.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.1167, allocations: 55.41 kB / 0.5207 GB, free: 6.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.1172, allocations: 258.1 kB / 0.5209 GB, free: 6.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.1173, allocations: 25.7 kB / 0.521 GB, free: 6.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.174e-05/0.1174, allocations: 116.2 kB / 0.5211 GB, free: 6.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.1174, allocations: 43.62 kB / 0.5211 GB, free: 6.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.1175, allocations: 25.72 kB / 0.5211 GB, free: 6.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.1177, allocations: 334.8 kB / 0.5215 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/0.1178, allocations: 39.98 kB / 0.5215 GB, free: 5.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.1179, allocations: 62.48 kB / 0.5216 GB, free: 5.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008434/0.1187, allocations: 253.8 kB / 0.5218 GB, free: 5.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1187, allocations: 4 kB / 0.5218 GB, free: 5.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003045/0.119, allocations: 161.5 kB / 0.522 GB, free: 5.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.119, allocations: 12 kB / 0.522 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.119, allocations: 0 / 0.522 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1191, allocations: 7.984 kB / 0.522 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.1192, allocations: 16 kB / 0.522 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.1192, allocations: 7.938 kB / 0.522 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.1194, allocations: 23.95 kB / 0.522 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.1194, allocations: 8 kB / 0.522 GB, free: 5.426 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.0001748/0.1196, allocations: 142.5 kB / 0.5222 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.1196, allocations: 15.91 kB / 0.5222 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.1197, allocations: 21.41 kB / 0.5222 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1197, allocations: 4.312 kB / 0.5222 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1197, allocations: 3.938 kB / 0.5222 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1197, allocations: 3.984 kB / 0.5222 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003152/0.12, allocations: 237.5 kB / 0.5224 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.12, allocations: 7.922 kB / 0.5224 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.1201, allocations: 12 kB / 0.5225 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1201, allocations: 8 kB / 0.5225 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1202, allocations: 0 / 0.5225 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1202, allocations: 0 / 0.5225 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1202, allocations: 3.938 kB / 0.5225 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.1206, allocations: 283.3 kB / 0.5227 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.312e-05/0.1207, allocations: 93.02 kB / 0.5228 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1207, allocations: 4.031 kB / 0.5228 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.1209, allocations: 31.97 kB / 0.5229 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.121, allocations: 11.92 kB / 0.5229 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.121, allocations: 0 / 0.5229 GB, free: 4.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004312/0.1214, allocations: 200.1 kB / 0.5231 GB, free: 4.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1214, allocations: 0 / 0.5231 GB, free: 4.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.1217, allocations: 35.88 kB / 0.5231 GB, free: 4.234 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.0007419/0.1224, allocations: 0.806 MB / 0.5239 GB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002655/0.1227, allocations: 103.9 kB / 0.524 GB, free: 3.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1227, allocations: 4.125 kB / 0.524 GB, free: 3.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.231e-05/0.1228, allocations: 44.11 kB / 0.524 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.1231, allocations: 38.33 kB / 0.5241 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003294/0.1264, allocations: 2.103 MB / 0.5261 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.1268, allocations: 0.724 MB / 0.5268 GB, free: 284 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.836e-05/0.1269, allocations: 25.06 kB / 0.5268 GB, free: 260 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.847e-05/0.127, allocations: 47.42 kB / 0.5269 GB, free: 212 kB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.127, allocations: 4 kB / 0.5269 GB, free: 208 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.1528, allocations: 3.147 MB / 0.53 GB, free: 13.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.127, allocations: 8.859 kB / 0.53 GB, free: 13.18 MB / 398.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.979862957028672] Failed to read output from testmodel.py, exit status != 0: 8.197512053884566 8.213160751 8.097838023 Calling exit ...