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.001236/0.001236, allocations: 106.5 kB / 16.36 MB, free: 6.336 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.001092/0.001092, allocations: 198 kB / 17.3 MB, free: 5.883 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09005/0.09005, allocations: 22.33 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 60.84 kB / 382.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1029, allocations: 54.97 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004323/0.1073, allocations: 2.602 MB / 439.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1092, allocations: 0.7874 MB / 440.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.1094, allocations: 4 kB / 440.6 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004823/0.1099, allocations: 91.28 kB / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003628/0.1103, allocations: 147.1 kB / 440.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.1108, allocations: 203.7 kB / 441 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006064/0.1114, allocations: 0.5498 MB / 441.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002457/0.1117, allocations: 124.4 kB / 441.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.1119, allocations: 239.1 kB / 441.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.1123, allocations: 254.8 kB / 442.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.725e-05/0.1123, allocations: 36 kB / 442.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.362e-05/0.1124, allocations: 40 kB / 442.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1125, allocations: 111.6 kB / 442.4 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.1127, allocations: 198.8 kB / 442.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004112/0.1131, allocations: 430.3 kB / 443 MB, free: 6.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1131, allocations: 0 / 443 MB, free: 6.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1131, allocations: 0 / 443 MB, free: 6.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1131, allocations: 4 kB / 443 MB, free: 6.457 MB / 318.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.002001/0.1152, allocations: 0.8414 MB / 443.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1152, allocations: 8.031 kB / 443.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.843e-05/0.1153, allocations: 48.38 kB / 443.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008764/0.1162, allocations: 442 kB / 444.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.1162, allocations: 25.03 kB / 444.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.1163, allocations: 35.94 kB / 444.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.1168, allocations: 317.9 kB / 444.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1168, allocations: 0 / 444.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.1169, allocations: 16 kB / 444.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1169, allocations: 4 kB / 444.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.1173, allocations: 234.4 kB / 444.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.119, allocations: 1.074 MB / 446 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008094/0.1198, allocations: 415.8 kB / 446.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.1201, allocations: 167.7 kB / 446.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.1202, allocations: 8.328 kB / 446.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.1202, allocations: 34.83 kB / 446.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.943e-06/0.1202, allocations: 0 / 446.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.003223/0.1234, allocations: 1.19 MB / 447.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.1235, allocations: 55.41 kB / 447.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007447/0.1242, allocations: 433.6 kB / 448.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1243, allocations: 29.7 kB / 448.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1244, allocations: 212.4 kB / 448.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.1245, allocations: 153.8 kB / 448.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.1246, allocations: 74.12 kB / 448.7 MB, free: 424 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1248, allocations: 354.7 kB / 449.1 MB, free: 60 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.125, allocations: 121.5 kB / 449.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.1252, allocations: 173 kB / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004249/0.1295, allocations: 0.9163 MB / 450.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1295, allocations: 0 / 450.3 MB, free: 14.83 MB / 334.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.002465/0.132, allocations: 0.9627 MB / 451.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.132, allocations: 7.984 kB / 451.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.132, allocations: 7.938 kB / 451.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/0.1338, allocations: 258.4 kB / 451.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.1342, allocations: 79.91 kB / 451.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008757/0.1429, allocations: 8.602 MB / 460.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.1434, allocations: 48.06 kB / 460.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.1435, allocations: 19.94 kB / 460.3 MB, free: 4.203 MB / 334.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.000205/0.1437, allocations: 169.7 kB / 460.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.1437, allocations: 39.53 kB / 460.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.1452, allocations: 0.5451 MB / 461 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1453, allocations: 8 kB / 461 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.1453, allocations: 0 / 461 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1453, allocations: 3.984 kB / 461 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.1473, allocations: 1.039 MB / 462.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1474, allocations: 0 / 462.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.1477, allocations: 63.91 kB / 462.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009867/0.1487, allocations: 184.6 kB / 462.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.1487, allocations: 8 kB / 462.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004343/0.1531, allocations: 2.416 MB / 464.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1531, allocations: 3.938 kB / 464.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.1548, allocations: 0.7601 MB / 465.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.1549, allocations: 120.6 kB / 465.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.155, allocations: 8 kB / 465.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.1554, allocations: 35.95 kB / 465.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.412e-05/0.1555, allocations: 35.89 kB / 465.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.1555, allocations: 12 kB / 465.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006458/0.1561, allocations: 331 kB / 466 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1561, allocations: 0 / 466 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005735/0.1567, allocations: 96 kB / 466.1 MB, free: 14.09 MB / 350.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.0001281/0.1569, allocations: 111.9 kB / 466.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009644/0.1578, allocations: 0.6782 MB / 466.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1579, allocations: 112 / 466.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004585/0.1583, allocations: 330.6 kB / 467.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1588, allocations: 61.34 kB / 467.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.1603, allocations: 1.029 MB / 468.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.1607, allocations: 0.8392 MB / 469.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.1609, allocations: 51.25 kB / 469.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/0.161, allocations: 27.44 kB / 469.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.161, allocations: 0 / 469.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Templates: time 0.009568/0.1705, allocations: 5.11 MB / 474.3 MB, free: 5.762 MB / 350.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)