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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008244/0.008245, allocations: 95.42 kB / 15.73 MB, free: 6.039 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.002267/0.002268, allocations: 201.4 kB / 16.68 MB, free: 5.969 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.58/1.58, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2015/0.2015, allocations: 22.35 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 62.66 kB / 436.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09983, allocations: 54.96 MB / 491.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002291/0.1022, allocations: 1.41 MB / 492.9 MB, free: 348 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.104, allocations: 1.381 MB / 494.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.1041, allocations: 4 kB / 494.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004189/0.1045, allocations: 75.44 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.1048, allocations: 99.39 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003145/0.1051, allocations: 171.7 kB / 494.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.1055, allocations: 367.7 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.1057, allocations: 89.97 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.1059, allocations: 147.5 kB / 495.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.1062, allocations: 167.1 kB / 495.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.1062, allocations: 20 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.239e-05/0.1062, allocations: 20 kB / 495.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.1064, allocations: 75.73 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1065, allocations: 119.2 kB / 495.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.1068, allocations: 266.6 kB / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1068, allocations: 0 / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1068, allocations: 4 kB / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1068, allocations: 0 / 495.9 MB, free: 13.35 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001612/0.1085, allocations: 0.6929 MB / 496.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1085, allocations: 12.03 kB / 496.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.365e-05/0.1086, allocations: 46.73 kB / 496.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.1086, allocations: 40.64 kB / 496.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008335/0.1095, allocations: 391.4 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1095, allocations: 16.38 kB / 497.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.1096, allocations: 16.38 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.1099, allocations: 223.3 kB / 497.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.11, allocations: 7.938 kB / 497.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.11, allocations: 4 kB / 497.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.11, allocations: 4 kB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.1103, allocations: 152.8 kB / 497.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.1115, allocations: 0.9554 MB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005736/0.1121, allocations: 242.7 kB / 498.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.1122, allocations: 80.77 kB / 498.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.1122, allocations: 4 kB / 498.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1123, allocations: 38.56 kB / 498.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.1123, allocations: 0 / 498.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004993/0.1128, allocations: 253.7 kB / 499.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.1128, allocations: 55.41 kB / 499.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006956/0.1135, allocations: 368.5 kB / 499.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1136, allocations: 33.7 kB / 499.5 MB, free: 9.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1137, allocations: 176.3 kB / 499.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.1138, allocations: 75.38 kB / 499.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.1139, allocations: 41.72 kB / 499.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.114, allocations: 346.7 kB / 0.4884 GB, free: 8.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1142, allocations: 68.14 kB / 0.4885 GB, free: 8.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.1143, allocations: 100.7 kB / 0.4886 GB, free: 8.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.1154, allocations: 374.6 kB / 0.4889 GB, free: 8.305 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1154, allocations: 0 / 0.4889 GB, free: 8.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003862/0.1158, allocations: 253.9 kB / 0.4892 GB, free: 8.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1158, allocations: 8 kB / 0.4892 GB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1158, allocations: 0 / 0.4892 GB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1158, allocations: 7.984 kB / 0.4892 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.116, allocations: 51.98 kB / 0.4892 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.116, allocations: 4 kB / 0.4892 GB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.1163, allocations: 43.84 kB / 0.4893 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.1163, allocations: 11.94 kB / 0.4893 GB, free: 7.926 MB / 366.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.000182/0.1165, allocations: 157.6 kB / 0.4894 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.464e-05/0.1166, allocations: 27.81 kB / 0.4895 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.288e-05/0.1167, allocations: 38.31 kB / 0.4895 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1167, allocations: 7.938 kB / 0.4895 GB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1167, allocations: 0 / 0.4895 GB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1167, allocations: 7.922 kB / 0.4895 GB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003445/0.117, allocations: 317.4 kB / 0.4898 GB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1171, allocations: 0 / 0.4898 GB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.1172, allocations: 35.98 kB / 0.4899 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1173, allocations: 0 / 0.4899 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1173, allocations: 12 kB / 0.4899 GB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.1173, allocations: 7.922 kB / 0.4899 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1173, allocations: 0 / 0.4899 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.1178, allocations: 393 kB / 0.4903 GB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-05/0.1179, allocations: 104.9 kB / 0.4904 GB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.118, allocations: 8 kB / 0.4904 GB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.1183, allocations: 39.94 kB / 0.4904 GB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.1183, allocations: 15.97 kB / 0.4904 GB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.1184, allocations: 4 kB / 0.4904 GB, free: 6.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005709/0.1189, allocations: 279 kB / 0.4907 GB, free: 6.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.119, allocations: 0 / 0.4907 GB, free: 6.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.1192, allocations: 51.89 kB / 0.4907 GB, free: 6.359 MB / 366.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.0007791/0.12, allocations: 0.9308 MB / 0.4916 GB, free: 5.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003265/0.1204, allocations: 173 kB / 0.4918 GB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1204, allocations: 0 / 0.4918 GB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.1205, allocations: 83.91 kB / 0.4919 GB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.1209, allocations: 54.09 kB / 0.4919 GB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.1251, allocations: 2.881 MB / 0.4948 GB, free: 2.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.1254, allocations: 0.7868 MB / 0.4955 GB, free: 1.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.1256, allocations: 46.27 kB / 0.4956 GB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.1257, allocations: 83.41 kB / 0.4956 GB, free: 1.184 MB / 366.1 MB Notification: Performance of SimCode: time 1.693e-06/0.1257, allocations: 0 / 0.4956 GB, free: 1.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.1487, allocations: 4.99 MB / 0.5005 GB, free: 12.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.008, allocations: 18.91 kB / 0.5005 GB, free: 12.32 MB / 382.1 MB (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)