Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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.002031/0.002031, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.002457/0.002457, allocations: 204 kB / 20.11 MB, free: 2.977 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.563/1.563, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1046/0.1046, allocations: 24.04 MB / 333.6 MB, free: 1.555 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_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",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.002061/0.002061, allocations: 65.22 kB / 468.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.104, allocations: 59.55 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.003233/0.1072, allocations: 1.397 MB / 0.5169 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.1091, allocations: 1.42 MB / 0.5183 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1093, allocations: 11.88 kB / 0.5183 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003858/0.1097, allocations: 91.34 kB / 0.5184 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.1099, allocations: 95.47 kB / 0.5185 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.1103, allocations: 171.7 kB / 0.5187 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.1107, allocations: 359.7 kB / 0.519 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1109, allocations: 67.41 kB / 0.5191 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.1111, allocations: 147.4 kB / 0.5192 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1113, allocations: 171.2 kB / 0.5194 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.1114, allocations: 20 kB / 0.5194 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.645e-05/0.1114, allocations: 20 kB / 0.5194 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.1115, allocations: 75.69 kB / 0.5195 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1116, allocations: 127.1 kB / 0.5196 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.112, allocations: 254.7 kB / 0.5199 GB, free: 7.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.112, allocations: 0 / 0.5199 GB, free: 7.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.112, allocations: 0 / 0.5199 GB, free: 7.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.112, allocations: 0 / 0.5199 GB, free: 7.883 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001586/0.1136, allocations: 0.7045 MB / 0.5206 GB, free: 7.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.1136, allocations: 8.625 kB / 0.5206 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.559e-05/0.1137, allocations: 58.73 kB / 0.5206 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.1138, allocations: 32.75 kB / 0.5206 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008192/0.1146, allocations: 395.4 kB / 0.521 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.1146, allocations: 12.38 kB / 0.521 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.1146, allocations: 20.38 kB / 0.5211 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.115, allocations: 218.5 kB / 0.5213 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.115, allocations: 0 / 0.5213 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.1151, allocations: 8 kB / 0.5213 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.1151, allocations: 4 kB / 0.5213 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.1154, allocations: 148.8 kB / 0.5214 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.1166, allocations: 0.9515 MB / 0.5223 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.1172, allocations: 230.7 kB / 0.5226 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1173, allocations: 76.8 kB / 0.5226 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.1173, allocations: 4 kB / 0.5226 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1174, allocations: 38.56 kB / 0.5227 GB, free: 4.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.1174, allocations: 0 / 0.5227 GB, free: 4.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005275/0.1179, allocations: 255.1 kB / 0.5229 GB, free: 4.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.1179, allocations: 55.34 kB / 0.523 GB, free: 4.473 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007271/0.1187, allocations: 372.5 kB / 0.5233 GB, free: 4.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1187, allocations: 29.7 kB / 0.5234 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1189, allocations: 176.4 kB / 0.5235 GB, free: 3.895 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.685e-05/0.1189, allocations: 75.31 kB / 0.5236 GB, free: 3.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.119, allocations: 49.66 kB / 0.5236 GB, free: 3.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1192, allocations: 354.7 kB / 0.524 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.1193, allocations: 64.2 kB / 0.524 GB, free: 3.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.1195, allocations: 100.7 kB / 0.5241 GB, free: 3.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1205, allocations: 375.6 kB / 0.5245 GB, free: 2.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1205, allocations: 0 / 0.5245 GB, free: 2.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004199/0.121, allocations: 256 kB / 0.5247 GB, free: 2.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.121, allocations: 8 kB / 0.5248 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.121, allocations: 0 / 0.5248 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.121, allocations: 4 kB / 0.5248 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.1212, allocations: 51.98 kB / 0.5248 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1212, allocations: 7.984 kB / 0.5248 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1215, allocations: 43.84 kB / 0.5249 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1215, allocations: 4 kB / 0.5249 GB, free: 2.48 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001931/0.1217, allocations: 153.9 kB / 0.525 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.619e-05/0.1218, allocations: 31.81 kB / 0.525 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.981e-05/0.1218, allocations: 34.31 kB / 0.5251 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1218, allocations: 3.938 kB / 0.5251 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1218, allocations: 0 / 0.5251 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1218, allocations: 4 kB / 0.5251 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003959/0.1222, allocations: 321.4 kB / 0.5254 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1222, allocations: 0 / 0.5254 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.1224, allocations: 35.98 kB / 0.5254 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1224, allocations: 4 kB / 0.5254 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.1225, allocations: 11.94 kB / 0.5254 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.1225, allocations: 3.938 kB / 0.5254 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/0.1225, allocations: 0 / 0.5254 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000599/0.1231, allocations: 392.2 kB / 0.5258 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1232, allocations: 112.9 kB / 0.5259 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.1232, allocations: 8 kB / 0.5259 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.1235, allocations: 35.89 kB / 0.526 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.1236, allocations: 11.98 kB / 0.526 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.1236, allocations: 4 kB / 0.526 GB, free: 1.246 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006162/0.1242, allocations: 287 kB / 0.5263 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1242, allocations: 0 / 0.5263 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.1245, allocations: 40 kB / 0.5263 GB, free: 0.9258 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.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 (20): * Single equations (assignments): 20 * 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.0009105/0.1254, allocations: 0.9278 MB / 0.5272 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.1257, allocations: 165 kB / 0.5274 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1257, allocations: 0 / 0.5274 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.1259, allocations: 83.77 kB / 0.5274 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.1263, allocations: 55.53 kB / 0.5275 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.1309, allocations: 2.877 MB / 0.5303 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.1313, allocations: 0.7832 MB / 0.5311 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.1315, allocations: 46.25 kB / 0.5311 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.1316, allocations: 83.41 kB / 0.5312 GB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1316, allocations: 0 / 0.5312 GB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.1592, allocations: 4.976 MB / 0.536 GB, free: 6.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.379, allocations: 5.516 kB / 0.536 GB, free: 6.93 MB / 398.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.2 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.250443676952273] Failed to read output from testmodel.py, exit status != 0: 8.451606536051258 8.469696476 8.354897431 Calling exit ...