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.005826/0.005826, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.00142/0.00142, allocations: 198.7 kB / 16.79 MB, free: 5.809 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.34/1.34, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2017/0.2017, allocations: 22.36 MB / 313 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 67.89 kB / 380.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3084, allocations: 54.94 MB / 435.7 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003734/0.3122, allocations: 2.627 MB / 438.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.3135, allocations: 0.7943 MB / 439.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.3137, allocations: 5.25 kB / 439.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.3142, allocations: 75.38 kB / 439.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003522/0.3146, allocations: 123.9 kB / 439.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.3149, allocations: 191.2 kB / 439.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004088/0.3154, allocations: 0.5273 MB / 440 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.3156, allocations: 117 kB / 440.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003023/0.3159, allocations: 212.1 kB / 440.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.3162, allocations: 247 kB / 440.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.151e-05/0.3163, allocations: 21.22 kB / 440.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.299e-05/0.3163, allocations: 23.22 kB / 440.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.3165, allocations: 100.5 kB / 440.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.3167, allocations: 183.5 kB / 440.9 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.317, allocations: 310.8 kB / 441.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.317, allocations: 0 / 441.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.841e-06/0.317, allocations: 0 / 441.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.008e-05/0.3171, allocations: 0 / 441.2 MB, free: 36.25 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.002294/0.3194, allocations: 0.8463 MB / 442.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3194, allocations: 10.06 kB / 442.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.924e-05/0.3195, allocations: 52.19 kB / 442.1 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008319/0.3204, allocations: 432.9 kB / 442.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3204, allocations: 27.19 kB / 442.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.906e-05/0.3205, allocations: 32.66 kB / 442.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/0.321, allocations: 313.4 kB / 442.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.3211, allocations: 3.938 kB / 442.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.3212, allocations: 10.59 kB / 442.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.3212, allocations: 12.25 kB / 442.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.3216, allocations: 230.9 kB / 443.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3233, allocations: 1.073 MB / 444.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008912/0.3242, allocations: 420 kB / 444.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/0.3245, allocations: 164.9 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.3246, allocations: 6.109 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/0.3246, allocations: 41.77 kB / 444.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.3246, allocations: 0 / 444.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003296/0.3279, allocations: 1.192 MB / 446.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.3279, allocations: 54.91 kB / 446.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007692/0.3287, allocations: 434.1 kB / 446.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.3287, allocations: 29.7 kB / 446.6 MB, free: 33.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.962e-05/0.3288, allocations: 213 kB / 446.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.3289, allocations: 150.3 kB / 446.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.988e-05/0.329, allocations: 76.89 kB / 447 MB, free: 32.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3292, allocations: 357.3 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.3294, allocations: 120.9 kB / 447.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.3297, allocations: 168.3 kB / 447.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004279/0.3339, allocations: 0.9255 MB / 448.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.334, allocations: 4 kB / 448.6 MB, free: 32.13 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.002332/0.3363, allocations: 0.9488 MB / 449.5 MB, free: 31.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3363, allocations: 8.875 kB / 449.5 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.3363, allocations: 10.39 kB / 449.5 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/0.3381, allocations: 260.5 kB / 449.8 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.3385, allocations: 81.02 kB / 449.9 MB, free: 31.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006849/0.3454, allocations: 7.916 MB / 457.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.3458, allocations: 40.19 kB / 457.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.3459, allocations: 19.5 kB / 457.8 MB, free: 23.88 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.0002706/0.3462, allocations: 159.4 kB / 458 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.441e-05/0.3462, allocations: 36.84 kB / 458 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.3478, allocations: 0.5474 MB / 458.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3478, allocations: 3.094 kB / 458.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.3478, allocations: 6.578 kB / 458.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3479, allocations: 0 / 458.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.3499, allocations: 1.04 MB / 459.6 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3499, allocations: 0 / 459.6 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.3503, allocations: 64.22 kB / 459.7 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.3515, allocations: 214.2 kB / 459.9 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.3515, allocations: 10.72 kB / 459.9 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004138/0.3557, allocations: 2.188 MB / 462.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3557, allocations: 0 / 462.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.3575, allocations: 0.7607 MB / 462.9 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.3577, allocations: 114 kB / 463 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.3578, allocations: 11.72 kB / 463 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.3582, allocations: 41.17 kB / 463 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3583, allocations: 31.45 kB / 463 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.073e-05/0.3584, allocations: 19.06 kB / 463.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006272/0.3591, allocations: 325.7 kB / 463.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3591, allocations: 0 / 463.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.3597, allocations: 100.9 kB / 463.5 MB, free: 20.55 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.808e-05/0.3598, allocations: 109.8 kB / 463.6 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3609, allocations: 0.6721 MB / 464.3 MB, free: 20 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3609, allocations: 0 / 464.3 MB, free: 20 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005459/0.3615, allocations: 318.7 kB / 464.6 MB, free: 19.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.362, allocations: 62.73 kB / 464.6 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.3641, allocations: 1.237 MB / 465.9 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.3645, allocations: 0.8424 MB / 466.7 MB, free: 18.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3646, allocations: 28.59 kB / 466.7 MB, free: 18.21 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3646, allocations: 0 / 466.7 MB, free: 18.21 MB / 350.1 MB Notification: Performance of Templates: time 0.01378/0.3784, allocations: 7.617 MB / 474.4 MB, free: 17.57 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)