Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0733/0.0733, allocations: 17.69 MB / 33.63 MB, free: 1.613 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 180 kB / 38.92 MB, free: 8.242 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.4 MB / 249.5 MB, free: 2.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007974/0.0007974, allocations: 97.39 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005205/0.0005206, allocations: 16 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3264, allocations: 51.98 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1105/0.4371, allocations: 80.85 MB / 499.8 MB, free: 7.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.4374, allocations: 71.97 kB / 499.8 MB, free: 7.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02166/0.459, allocations: 6.564 MB / 0.4945 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4591, allocations: 0 / 0.4945 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.314e-05/0.4591, allocations: 12 kB / 0.4946 GB, free: 0.7656 MB / 362.7 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.2559/0.715, allocations: 0.7334 MB / 0.4953 GB, free: 80.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.51e-05/0.7152, allocations: 8.969 kB / 0.4953 GB, free: 80.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.7156, allocations: 48.33 kB / 0.4953 GB, free: 80.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.7169, allocations: 437.2 kB / 0.4957 GB, free: 80.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.301e-05/0.717, allocations: 27.22 kB / 0.4958 GB, free: 80.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.7171, allocations: 32.38 kB / 0.4958 GB, free: 80.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/0.7181, allocations: 314.3 kB / 0.4961 GB, free: 80.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.7181, allocations: 2.156 kB / 0.4961 GB, free: 80.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.7182, allocations: 17.23 kB / 0.4961 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.7182, allocations: 7.531 kB / 0.4961 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006167/0.7188, allocations: 238.6 kB / 0.4964 GB, free: 80.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.7213, allocations: 1.238 MB / 0.4976 GB, free: 79.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008805/0.7222, allocations: 360.7 kB / 0.4979 GB, free: 79.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.7225, allocations: 154.5 kB / 0.4981 GB, free: 79.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.7225, allocations: 6.938 kB / 0.4981 GB, free: 79.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.7226, allocations: 36.12 kB / 0.4981 GB, free: 79.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 2.976e-06/0.7226, allocations: 0 / 0.4981 GB, free: 79.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.003293/0.7259, allocations: 1.179 MB / 0.4992 GB, free: 79.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.726, allocations: 55.78 kB / 0.4993 GB, free: 79.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009681/0.7269, allocations: 433.8 kB / 0.4997 GB, free: 79.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.727, allocations: 34.45 kB / 0.4997 GB, free: 79.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.7271, allocations: 205.8 kB / 0.4999 GB, free: 79.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.7273, allocations: 146.3 kB / 0.5001 GB, free: 78.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.7273, allocations: 9.188 kB / 0.5001 GB, free: 78.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.7274, allocations: 354.3 kB / 0.5004 GB, free: 78.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.7277, allocations: 108.9 kB / 0.5005 GB, free: 78.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.728, allocations: 169.9 kB / 0.5007 GB, free: 78.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004253/0.7322, allocations: 0.9481 MB / 0.5016 GB, free: 78.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7323, allocations: 0 / 0.5016 GB, free: 78.23 MB / 362.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd 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=52) (initialization): time 0.002359/0.7346, allocations: 0.9523 MB / 0.5025 GB, free: 77.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.7347, allocations: 6.531 kB / 0.5026 GB, free: 77.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.7347, allocations: 1.438 kB / 0.5026 GB, free: 77.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.7362, allocations: 256.4 kB / 0.5028 GB, free: 77.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.7366, allocations: 89.7 kB / 0.5029 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.7432, allocations: 7.806 MB / 0.5105 GB, free: 70.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.7437, allocations: 36.36 kB / 0.5105 GB, free: 70.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.7438, allocations: 15.16 kB / 0.5106 GB, free: 70.09 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.thetap:VARIABLE(unit = "rad" fixed = true ) "generator and port absolute angles" 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 (43): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000283/0.7441, allocations: 165.3 kB / 0.5107 GB, free: 69.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.7441, allocations: 40.88 kB / 0.5108 GB, free: 69.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.7456, allocations: 0.5466 MB / 0.5113 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.7457, allocations: 7.156 kB / 0.5113 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.7457, allocations: 3.938 kB / 0.5113 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.7457, allocations: 2.875 kB / 0.5113 GB, free: 69.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.7475, allocations: 1.03 MB / 0.5123 GB, free: 69.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.7476, allocations: 0 / 0.5123 GB, free: 69.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.7479, allocations: 61.91 kB / 0.5124 GB, free: 69.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009248/0.7488, allocations: 206 kB / 0.5126 GB, free: 69.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.7488, allocations: 4 kB / 0.5126 GB, free: 69.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002875/0.7517, allocations: 2.04 MB / 0.5146 GB, free: 67.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7517, allocations: 80 / 0.5146 GB, free: 67.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.7533, allocations: 0.7712 MB / 0.5153 GB, free: 67.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.249e-05/0.7534, allocations: 120 kB / 0.5154 GB, free: 67.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.7535, allocations: 10.8 kB / 0.5154 GB, free: 67.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.7538, allocations: 38.33 kB / 0.5155 GB, free: 67.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.7539, allocations: 26.97 kB / 0.5155 GB, free: 67.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.7539, allocations: 11.53 kB / 0.5155 GB, free: 67.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005468/0.7545, allocations: 326.7 kB / 0.5158 GB, free: 66.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7545, allocations: 0 / 0.5158 GB, free: 66.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005671/0.7551, allocations: 96.66 kB / 0.5159 GB, free: 66.89 MB / 362.7 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.thetag,Ge1.wg,Ge2.thetag,Ge2.thetap,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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001567/0.7552, allocations: 117.9 kB / 0.516 GB, free: 66.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007662/0.756, allocations: 0.6453 MB / 0.5167 GB, free: 66.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.756, allocations: 0 / 0.5167 GB, free: 66.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000324/0.7563, allocations: 300.6 kB / 0.5169 GB, free: 66.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.7568, allocations: 60.22 kB / 0.517 GB, free: 66.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.7585, allocations: 1.231 MB / 0.5182 GB, free: 65.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.7588, allocations: 0.841 MB / 0.519 GB, free: 64.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.759, allocations: 45.98 kB / 0.5191 GB, free: 64.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.516e-05/0.7591, allocations: 27.44 kB / 0.5191 GB, free: 64.58 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.7591, allocations: 0 / 0.5191 GB, free: 64.58 MB / 362.7 MB Notification: Performance of Templates: time 0.008035/0.7671, allocations: 4.247 MB / 0.5232 GB, free: 60.87 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.PA_two_generators_loadDroop.pipe 2>&1)