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.0009846/0.0009847, allocations: 89.81 kB / 15.36 MB, free: 0.7383 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.005596/0.005596, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.254/1.254, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1829/0.1829, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.0002699, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2222, allocations: 55.99 MB / 438.6 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.001776/0.224, allocations: 2.252 MB / 440.8 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008929/0.225, allocations: 0.7851 MB / 441.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.2251, allocations: 6.844 kB / 441.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.2254, allocations: 76.31 kB / 441.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.2256, allocations: 129.8 kB / 441.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.2259, allocations: 182.8 kB / 442 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003618/0.2263, allocations: 0.5221 MB / 442.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2265, allocations: 120.3 kB / 442.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.2266, allocations: 196.4 kB / 442.8 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2269, allocations: 227.1 kB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.362e-05/0.2269, allocations: 17.56 kB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.073e-05/0.227, allocations: 16 kB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.2271, allocations: 82.95 kB / 443.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.2272, allocations: 203.1 kB / 443.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.2274, allocations: 396.5 kB / 443.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2274, allocations: 0 / 443.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2274, allocations: 2.906 kB / 443.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2274, allocations: 0 / 443.8 MB, free: 36.23 MB / 350.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.001515/0.2289, allocations: 0.7798 MB / 444.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.69e-05/0.229, allocations: 9.375 kB / 444.6 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.229, allocations: 48.09 kB / 444.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006752/0.2297, allocations: 434.1 kB / 445 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.2298, allocations: 21.53 kB / 445 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.2298, allocations: 40.53 kB / 445.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.2302, allocations: 322.5 kB / 445.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2302, allocations: 0 / 445.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.2303, allocations: 15.88 kB / 445.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2303, allocations: 5.5 kB / 445.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.2307, allocations: 232.2 kB / 445.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.2319, allocations: 1.074 MB / 446.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006765/0.2326, allocations: 426.3 kB / 447.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.2328, allocations: 159.7 kB / 447.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.2328, allocations: 3.359 kB / 447.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.2329, allocations: 45.77 kB / 447.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.294e-06/0.2329, allocations: 4.109 kB / 447.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002743/0.2356, allocations: 1.201 MB / 448.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.742e-05/0.2356, allocations: 55.34 kB / 448.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.2363, allocations: 442.7 kB / 449 MB, free: 33.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.2363, allocations: 33.7 kB / 449.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.622e-05/0.2364, allocations: 213.5 kB / 449.3 MB, free: 33.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.2365, allocations: 144.2 kB / 449.4 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.2366, allocations: 49.53 kB / 449.5 MB, free: 32.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.971e-05/0.2366, allocations: 356.2 kB / 449.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.2368, allocations: 119.1 kB / 449.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.237, allocations: 173.3 kB / 450.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/0.2412, allocations: 0.9597 MB / 451.1 MB, free: 32.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2412, allocations: 0 / 451.1 MB, free: 32.16 MB / 350.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.002054/0.2433, allocations: 0.9609 MB / 452 MB, free: 31.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.2433, allocations: 5.156 kB / 452 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2433, allocations: 3.938 kB / 452 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.2449, allocations: 280.6 kB / 452.3 MB, free: 31.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.2453, allocations: 89.22 kB / 452.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005879/0.2512, allocations: 7.964 MB / 460.4 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.2515, allocations: 44.31 kB / 460.4 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.2516, allocations: 17.25 kB / 460.4 MB, free: 23.9 MB / 350.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.0001365/0.2517, allocations: 163.8 kB / 460.6 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.2518, allocations: 42.88 kB / 460.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.2532, allocations: 0.5596 MB / 461.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.2532, allocations: 5.031 kB / 461.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.2532, allocations: 3.188 kB / 461.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2532, allocations: 0 / 461.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.2551, allocations: 1.049 MB / 462.2 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2552, allocations: 4.047 kB / 462.2 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.2554, allocations: 63.91 kB / 462.3 MB, free: 22.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.2566, allocations: 230.5 kB / 462.5 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.2566, allocations: 12.09 kB / 462.5 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.2603, allocations: 2.211 MB / 464.7 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2603, allocations: 4.062 kB / 464.7 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.262, allocations: 0.7851 MB / 465.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.633e-05/0.262, allocations: 126 kB / 465.7 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.2621, allocations: 6.969 kB / 465.7 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003939/0.2625, allocations: 42.39 kB / 465.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.2626, allocations: 26.64 kB / 465.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.2626, allocations: 11.59 kB / 465.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006038/0.2632, allocations: 333.4 kB / 466.1 MB, free: 20.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2632, allocations: 0 / 466.1 MB, free: 20.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005395/0.2638, allocations: 96.69 kB / 466.2 MB, free: 20.57 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 9.035e-05/0.2639, allocations: 114.1 kB / 466.3 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007448/0.2646, allocations: 0.6704 MB / 466.9 MB, free: 20.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2646, allocations: 0 / 466.9 MB, free: 20.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003651/0.265, allocations: 316.5 kB / 467.3 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004271/0.2654, allocations: 64.56 kB / 467.3 MB, free: 19.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.2668, allocations: 1.301 MB / 468.6 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.2671, allocations: 0.8343 MB / 469.5 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001499/0.2672, allocations: 53.33 kB / 469.5 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.929e-05/0.2673, allocations: 26.28 kB / 469.5 MB, free: 18.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2673, allocations: 4 kB / 469.5 MB, free: 18.22 MB / 350.1 MB Notification: Performance of Templates: time 0.008553/0.2759, allocations: 4.712 MB / 474.2 MB, free: 17.91 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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)