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.001078/0.001078, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.001093/0.001093, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0935/0.0935, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 65.94 kB / 382.2 MB, free: 40.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.09458, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003765/0.09839, allocations: 2.606 MB / 439.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.09986, allocations: 0.7874 MB / 440.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.1, allocations: 7.938 kB / 440.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004465/0.1005, allocations: 87.28 kB / 440.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.1008, allocations: 147.1 kB / 440.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.1013, allocations: 199.7 kB / 441 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006244/0.1019, allocations: 0.5498 MB / 441.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.1022, allocations: 136.4 kB / 441.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.1025, allocations: 231.1 kB / 441.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.1029, allocations: 250.9 kB / 442.2 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-05/0.1029, allocations: 36 kB / 442.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.416e-05/0.103, allocations: 36 kB / 442.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.1032, allocations: 119.5 kB / 442.4 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.1033, allocations: 194.8 kB / 442.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.1038, allocations: 430.3 kB / 443 MB, free: 6.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1038, allocations: 4 kB / 443 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1038, allocations: 0 / 443 MB, free: 6.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.1039, allocations: 0 / 443 MB, free: 6.406 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.002077/0.1059, allocations: 0.8414 MB / 443.8 MB, free: 5.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.106, allocations: 12.03 kB / 443.8 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.1061, allocations: 52.31 kB / 443.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000938/0.1071, allocations: 438 kB / 444.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.1071, allocations: 24.97 kB / 444.3 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.458e-05/0.1072, allocations: 43.94 kB / 444.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.1077, allocations: 309.9 kB / 444.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1078, allocations: 0 / 444.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.1078, allocations: 16 kB / 444.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.1078, allocations: 8 kB / 444.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.1082, allocations: 234.4 kB / 444.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.11, allocations: 1.066 MB / 446 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008413/0.1108, allocations: 427.8 kB / 446.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.1111, allocations: 163.9 kB / 446.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.1111, allocations: 4.328 kB / 446.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1112, allocations: 38.83 kB / 446.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.1112, allocations: 4 kB / 446.6 MB, free: 2.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.003067/0.1142, allocations: 1.178 MB / 447.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.1143, allocations: 63.34 kB / 447.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008186/0.1151, allocations: 429.6 kB / 448.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.1152, allocations: 37.7 kB / 448.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.1153, allocations: 208.4 kB / 448.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1155, allocations: 149.8 kB / 448.7 MB, free: 452 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.1156, allocations: 74.12 kB / 448.7 MB, free: 368 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1157, allocations: 358.7 kB / 449.1 MB, free: 0 / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.116, allocations: 117.5 kB / 449.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.1162, allocations: 173 kB / 449.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004252/0.1205, allocations: 0.9163 MB / 450.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.1205, allocations: 8 kB / 450.3 MB, free: 14.76 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.002425/0.1229, allocations: 0.9566 MB / 451.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.123, allocations: 8 kB / 451.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.123, allocations: 3.938 kB / 451.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.1247, allocations: 254.4 kB / 451.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.1251, allocations: 79.91 kB / 451.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008651/0.1337, allocations: 8.612 MB / 460.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.1343, allocations: 44 kB / 460.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1343, allocations: 15.94 kB / 460.3 MB, free: 4.145 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.0002327/0.1345, allocations: 165.7 kB / 460.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.1346, allocations: 39.53 kB / 460.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.1362, allocations: 0.5491 MB / 461 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1362, allocations: 8 kB / 461 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.1362, allocations: 0 / 461 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1362, allocations: 7.984 kB / 461 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.1383, allocations: 1.031 MB / 462.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1383, allocations: 0 / 462.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.1387, allocations: 63.91 kB / 462.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009958/0.1397, allocations: 184.6 kB / 462.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.1397, allocations: 15.98 kB / 462.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004423/0.1442, allocations: 2.4 MB / 464.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1442, allocations: 3.938 kB / 464.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.1459, allocations: 0.7679 MB / 465.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.146, allocations: 128.5 kB / 465.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.232e-05/0.1461, allocations: 8 kB / 465.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.1465, allocations: 39.95 kB / 465.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.185e-05/0.1466, allocations: 31.95 kB / 465.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.1466, allocations: 11.98 kB / 465.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000643/0.1473, allocations: 327.1 kB / 466 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1473, allocations: 4 kB / 466 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005913/0.1479, allocations: 92 kB / 466.1 MB, free: 14.04 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.0001407/0.148, allocations: 117.4 kB / 466.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009281/0.149, allocations: 0.6782 MB / 466.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.149, allocations: 112 / 466.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.1494, allocations: 330.5 kB / 467.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/0.1499, allocations: 59.7 kB / 467.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.1516, allocations: 1.037 MB / 468.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.152, allocations: 0.8392 MB / 469.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.1521, allocations: 43.27 kB / 469.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.031e-05/0.1522, allocations: 35.42 kB / 469.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1522, allocations: 0 / 469.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Templates: time 0.009316/0.1616, allocations: 5.096 MB / 474.3 MB, free: 5.703 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 gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)