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.01184/0.01184, allocations: 103.5 kB / 15.73 MB, free: 6.043 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.002009/0.002009, allocations: 201.5 kB / 16.68 MB, free: 5.98 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2298/0.2298, allocations: 22.37 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 62.72 kB / 437.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1061, allocations: 54.97 MB / 492 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003632/0.1098, allocations: 2.599 MB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.1113, allocations: 0.7952 MB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.1115, allocations: 7.938 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004252/0.112, allocations: 91.28 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003201/0.1123, allocations: 143.1 kB / 495.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.1128, allocations: 203.7 kB / 495.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.1134, allocations: 0.5498 MB / 496.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002765/0.1136, allocations: 124.5 kB / 496.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.1139, allocations: 231.2 kB / 496.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.1142, allocations: 258.8 kB / 497 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/0.1143, allocations: 36 kB / 497.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.184e-05/0.1144, allocations: 36 kB / 497.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.1145, allocations: 119.6 kB / 497.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.1147, allocations: 198.7 kB / 497.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.1151, allocations: 430.3 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1151, allocations: 0 / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1151, allocations: 0 / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1151, allocations: 0 / 497.8 MB, free: 11.43 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001806/0.1169, allocations: 0.8337 MB / 498.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.117, allocations: 15.97 kB / 498.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.187e-05/0.1171, allocations: 48.28 kB / 498.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008492/0.1179, allocations: 442 kB / 499.2 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.118, allocations: 25.03 kB / 499.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.118, allocations: 39.94 kB / 499.2 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.1185, allocations: 317.8 kB / 499.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1186, allocations: 4 kB / 499.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.1186, allocations: 16 kB / 499.5 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1186, allocations: 8 kB / 499.6 MB, free: 9.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.119, allocations: 230.4 kB / 499.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1205, allocations: 1.062 MB / 0.4891 GB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007622/0.1213, allocations: 427.9 kB / 0.4895 GB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.1215, allocations: 157.5 kB / 0.4897 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.1216, allocations: 4.328 kB / 0.4897 GB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.1216, allocations: 34.83 kB / 0.4897 GB, free: 7.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.482e-06/0.1216, allocations: 4 kB / 0.4897 GB, free: 7.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.002877/0.1245, allocations: 1.189 MB / 0.4909 GB, free: 6.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.1246, allocations: 59.39 kB / 0.4909 GB, free: 6.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.1253, allocations: 433.6 kB / 0.4913 GB, free: 5.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.1253, allocations: 33.7 kB / 0.4914 GB, free: 5.812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1255, allocations: 208.4 kB / 0.4916 GB, free: 5.605 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.23e-05/0.1256, allocations: 149.8 kB / 0.4917 GB, free: 5.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1257, allocations: 74.12 kB / 0.4918 GB, free: 5.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1258, allocations: 354.7 kB / 0.4921 GB, free: 5.023 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.1261, allocations: 116.8 kB / 0.4922 GB, free: 4.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.1263, allocations: 177 kB / 0.4924 GB, free: 4.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003937/0.1302, allocations: 0.9126 MB / 0.4933 GB, free: 3.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1303, allocations: 0 / 0.4933 GB, free: 3.789 MB / 366.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.002108/0.1324, allocations: 0.9451 MB / 0.4942 GB, free: 2.746 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1324, allocations: 8 kB / 0.4942 GB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1324, allocations: 3.938 kB / 0.4942 GB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.1339, allocations: 263 kB / 0.4945 GB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.1343, allocations: 83.89 kB / 0.4946 GB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008257/0.1426, allocations: 8.619 MB / 0.503 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004505/0.143, allocations: 47.95 kB / 0.503 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.1431, allocations: 16 kB / 0.503 GB, free: 9.164 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.0002384/0.1433, allocations: 157.8 kB / 0.5032 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.287e-05/0.1434, allocations: 39.53 kB / 0.5032 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.1449, allocations: 0.5491 MB / 0.5038 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1449, allocations: 4 kB / 0.5038 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.1449, allocations: 0 / 0.5038 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1449, allocations: 3.984 kB / 0.5038 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.1469, allocations: 1.038 MB / 0.5048 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1469, allocations: 3.984 kB / 0.5048 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.1472, allocations: 63.97 kB / 0.5048 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009271/0.1481, allocations: 184.6 kB / 0.505 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.1482, allocations: 8 kB / 0.505 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004187/0.1523, allocations: 2.424 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.1524, allocations: 3.938 kB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.154, allocations: 0.7679 MB / 0.5081 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.1541, allocations: 124.6 kB / 0.5083 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.1542, allocations: 8 kB / 0.5083 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.1546, allocations: 35.95 kB / 0.5083 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.1546, allocations: 27.95 kB / 0.5083 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.1547, allocations: 8 kB / 0.5083 GB, free: 3.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000607/0.1553, allocations: 331 kB / 0.5087 GB, free: 3.145 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1553, allocations: 0 / 0.5087 GB, free: 3.145 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005463/0.1558, allocations: 103.9 kB / 0.5088 GB, free: 3.043 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.0001184/0.156, allocations: 107.2 kB / 0.5089 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009015/0.1569, allocations: 0.6702 MB / 0.5095 GB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1569, allocations: 4.25 kB / 0.5095 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004213/0.1573, allocations: 322.7 kB / 0.5098 GB, free: 1.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.1578, allocations: 66.16 kB / 0.5099 GB, free: 1.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.1593, allocations: 1.048 MB / 0.5109 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.1597, allocations: 0.8393 MB / 0.5117 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.1599, allocations: 51.19 kB / 0.5118 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-05/0.16, allocations: 27.44 kB / 0.5118 GB, free: 15.8 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.16, allocations: 4 kB / 0.5118 GB, free: 15.8 MB / 398.1 MB Notification: Performance of Templates: time 0.009641/0.1697, allocations: 5.371 MB / 0.5171 GB, free: 10.43 MB / 398.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)