Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.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: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005639/0.005639, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001127/0.001127, allocations: 192 kB / 16.67 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1268/0.1268, allocations: 22.32 MB / 312.8 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 75.86 kB / 437 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 54.94 MB / 492 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003472/0.1099, allocations: 2.593 MB / 494.6 MB, free: 2.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.1113, allocations: 0.7835 MB / 495.4 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.1114, allocations: 7.938 kB / 495.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003952/0.1118, allocations: 99.22 kB / 495.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.1122, allocations: 151.1 kB / 495.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.1125, allocations: 199.6 kB / 495.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.1131, allocations: 0.5499 MB / 496.4 MB, free: 328 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.1133, allocations: 132.4 kB / 496.5 MB, free: 192 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.1136, allocations: 235.2 kB / 496.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003191/0.114, allocations: 250.8 kB / 497 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.705e-05/0.114, allocations: 36 kB / 497 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.589e-05/0.1141, allocations: 40 kB / 497 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.1142, allocations: 115.5 kB / 497.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.1144, allocations: 194.9 kB / 497.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.1148, allocations: 433.9 kB / 497.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1149, allocations: 4 kB / 497.8 MB, free: 14.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1149, allocations: 0 / 497.8 MB, free: 14.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.1149, allocations: 0 / 497.8 MB, free: 14.9 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001756/0.1166, allocations: 0.8554 MB / 498.6 MB, free: 14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.1167, allocations: 12.03 kB / 498.6 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.835e-05/0.1168, allocations: 52.61 kB / 498.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008161/0.1176, allocations: 442.3 kB / 499.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.1176, allocations: 25.02 kB / 499.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.1177, allocations: 39.89 kB / 499.2 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004783/0.1182, allocations: 321.8 kB / 499.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1182, allocations: 0 / 499.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.1182, allocations: 12 kB / 499.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.1183, allocations: 4 kB / 499.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004402/0.1187, allocations: 238.4 kB / 499.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.1202, allocations: 1.062 MB / 0.4891 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007917/0.121, allocations: 419.9 kB / 0.4895 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.1213, allocations: 157.5 kB / 0.4896 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1213, allocations: 12.27 kB / 0.4896 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1213, allocations: 42.81 kB / 0.4897 GB, free: 11.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.433e-06/0.1214, allocations: 0 / 0.4897 GB, free: 11.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.002997/0.1244, allocations: 1.19 MB / 0.4908 GB, free: 9.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1244, allocations: 55.41 kB / 0.4909 GB, free: 9.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007377/0.1251, allocations: 438.2 kB / 0.4913 GB, free: 9.305 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1252, allocations: 33.64 kB / 0.4913 GB, free: 9.266 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.1253, allocations: 212.6 kB / 0.4915 GB, free: 9.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.1255, allocations: 162.7 kB / 0.4917 GB, free: 8.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.1256, allocations: 78.12 kB / 0.4918 GB, free: 8.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1257, allocations: 358.7 kB / 0.4921 GB, free: 8.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.1259, allocations: 120.8 kB / 0.4922 GB, free: 8.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.1262, allocations: 169 kB / 0.4924 GB, free: 8.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004061/0.1302, allocations: 0.9165 MB / 0.4933 GB, free: 7.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1303, allocations: 0 / 0.4933 GB, free: 7.219 MB / 382.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge2.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.002247/0.1325, allocations: 0.9525 MB / 0.4942 GB, free: 6.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1325, allocations: 6.031 kB / 0.4942 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1326, allocations: 12.06 kB / 0.4942 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.1342, allocations: 262.2 kB / 0.4945 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.1346, allocations: 79.91 kB / 0.4946 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2458/0.3804, allocations: 8.602 MB / 0.503 GB, free: 19.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.3809, allocations: 40.91 kB / 0.503 GB, free: 19.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.3809, allocations: 22.06 kB / 0.503 GB, free: 19.5 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002134/0.3812, allocations: 160.8 kB / 0.5032 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.3812, allocations: 41.23 kB / 0.5032 GB, free: 19.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.3827, allocations: 0.5541 MB / 0.5038 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3827, allocations: 6.719 kB / 0.5038 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.3827, allocations: 0 / 0.5038 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3827, allocations: 2.812 kB / 0.5038 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.3846, allocations: 1.027 MB / 0.5048 GB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3846, allocations: 4.812 kB / 0.5048 GB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.3849, allocations: 68.23 kB / 0.5048 GB, free: 19.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009695/0.3859, allocations: 186.5 kB / 0.505 GB, free: 19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.3859, allocations: 13.95 kB / 0.505 GB, free: 19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00385/0.3898, allocations: 2.414 MB / 0.5074 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3898, allocations: 0.5 kB / 0.5074 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.3915, allocations: 0.7708 MB / 0.5081 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.263e-05/0.3915, allocations: 124.2 kB / 0.5083 GB, free: 17.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.3916, allocations: 13.77 kB / 0.5083 GB, free: 17.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.392, allocations: 36.84 kB / 0.5083 GB, free: 17.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.3921, allocations: 31 kB / 0.5083 GB, free: 17.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.3921, allocations: 14.67 kB / 0.5083 GB, free: 17.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006501/0.3928, allocations: 327.5 kB / 0.5087 GB, free: 17.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3928, allocations: 0 / 0.5087 GB, free: 17.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005682/0.3933, allocations: 95.84 kB / 0.5087 GB, free: 17.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.wg) * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001196/0.3935, allocations: 111.2 kB / 0.5089 GB, free: 17.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009094/0.3944, allocations: 0.6771 MB / 0.5095 GB, free: 16.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3944, allocations: 0 / 0.5095 GB, free: 16.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003962/0.3948, allocations: 313.2 kB / 0.5098 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.3952, allocations: 59.52 kB / 0.5099 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3968, allocations: 1.061 MB / 0.5109 GB, free: 16.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.3971, allocations: 0.8434 MB / 0.5117 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3972, allocations: 49.02 kB / 0.5118 GB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.276e-05/0.3973, allocations: 30.42 kB / 0.5118 GB, free: 15.34 MB / 382.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3973, allocations: 1.156 kB / 0.5118 GB, free: 15.34 MB / 382.1 MB Notification: Performance of Templates: time 0.01013/0.4075, allocations: 5.181 MB / 0.5169 GB, free: 15.05 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)