/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2244.2+4057_daily_bin848
RA = 341.061, Dec = 40.9597
tmin = 459129601, tmax = 459388801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='458286', job_status='RUN', time_executed='2021-09-28 19:45:36.685985', time_epoch_executed='1632883536.69' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458286

Creating custom pfile directory:
/scratch/kocevski/458286/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458286/ft1_4FGL_J2244.2+4057_daily_bin848.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=459129601.0 && nMetStart<459388801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458286/ft1_4FGL_J2244.2+4057_daily_bin848.fits outfile=/scratch/kocevski/458286/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin848.fits ra=341.061 dec=40.9597 rad=12.0 tmin=459129601.0 tmax=459388801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.88
user 3.67
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/458286/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/458286/ltcube_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/458286/ltcube_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits outfile=/scratch/kocevski/458286/expmap_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/458286/ltcube_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits
.....................!
real 192.16
user 186.15
sys 5.69

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits outfile=/scratch/kocevski/458286/cmap_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits outfile=/scratch/kocevski/458286/cmap_HighResolution_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458286/Model_4FGL_J2244.2+4057_daily_bin848.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits.....................!
real 152.48
user 151.03
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits', '/scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits', expMap='/scratch/kocevski/458286/expmap_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits', expCube='/scratch/kocevski/458286/ltcube_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458286/Model_4FGL_J2244.2+4057_daily_bin848.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/458286/ft1_filtered_4FGL_J2244.2+4057_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/458286/ft2_4FGL_J2244.2+4057_daily_bin848.fits
Exposure map: /scratch/kocevski/458286/expmap_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits
Exposure cube: /scratch/kocevski/458286/ltcube_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458286/Model_4FGL_J2244.2+4057_daily_bin848.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 12795.279147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 12795.249068

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15458E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22520E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3933       1.0000         .10000E-03   10000.    
     7 'norm      '    19.358       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28621E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12477E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2237       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.503       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5876       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0817       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6283       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .88450       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12795.25     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1639 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5590        1.1619        .97925E-07   -.20081E-03
   2  Prefactor     .10000E-03    26.124        .27210E-06** at limit **
   3  Prefactor     36.998        18.116       -.17582E-05   -.33104E-03
   4  Prefactor     .10001E-03    26.897       -.10613E-04** at limit **
   5  Prefactor     4.7732        11.332        .21021E-05   -.35411E-03
   6  Prefactor     2.4000        6.0000        .21357E-05   -.11836E-02
   7  norm          19.370        8.2527       -.76412E-06   -.16807E-02
   8  Prefactor     .10000E-03    21.478        .99451E-05** at limit **
   9  Prefactor     .10037E-03    4.4203        .18789E-05** at limit **
  10  Prefactor     9.2054        16.225        .94056E-06    .16255E-04
  11  norm          2.3397        1.1511       -.16499E-08   -.12184E-03
  12  Prefactor     22.495        12.394       -.66862E-07   -.21355E-03
  13  norm          6.5633        4.9572        .13741E-06   -.86276E-03
  14  norm          9.0582        7.9297       -.11556E-05   -.27320E-03
  15  norm          4.6287        2.7549        .49623E-07   -.10361E-03
  16  Normalizat    .88478        .22933       -.46029E-06   -.25387E-03
  17  Prefactor     .99518        .67709E-01    .12665E-06   -.72273E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.559
  Prefactor  = 0.0001
  Prefactor  = 36.9979
  Prefactor  = 0.000100006
  Prefactor  = 4.77322
  Prefactor  = 2.40002
  norm       = 19.3698
  Prefactor  = 0.000100004
  Prefactor  = 0.000100372
  Prefactor  = 9.2054
  norm       = 2.33973
  Prefactor  = 22.4948
  norm       = 6.56334
  norm       = 9.05819
  norm       = 4.62871
  Normalizat = 0.884775
  Prefactor  = 0.995181
 **********
 **   18 **HESSE 
 **********

 FCN=   12795.25     FROM HESSE     STATUS=OK           227 CALLS     1866 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5590        1.1639        .50845E-04   -1.5236    
   2  Prefactor     .10000E-03    26.233        .20447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.998        18.145        .65801E-04   -1.4491    
   4  Prefactor     .10001E-03    27.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7732        11.125        .18379E-03   -1.5271    
   6  Prefactor     2.4000        11.757        .13236E-02   -1.5398    
   7  norm          19.370        7.9556        .91031E-04   -1.4827    
   8  Prefactor     .10000E-03    21.780        .21409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10037E-03    30.480        .41886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2054        16.216        .13196E-03   -1.5101    
  11  norm          2.3397        1.1504        .81809E-04   -1.5402    
  12  Prefactor     22.495        12.393        .84437E-04   -1.4759    
  13  norm          6.5633        5.0339        .78176E-03   -1.5196    
  14  norm          9.0582        7.9347        .13300E-03   -1.5106    
  15  norm          4.6287        2.7513        .13758E-03   -1.5278    
  16  Normalizat    .88478        .24416        .51581E-03   -.96997    
  17  Prefactor     .99518        .73033E-01    .15022E-03   -.92890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93116e-08
Minuit parameter uncertainties:
  1  1.16388
  2  0.000213583
  3  18.1479
  4  0.000828047
  5  11.1295
  6  10.627
  7  7.95605
  8  0.000598679
  9  0.00674075
  10  16.2233
  11  1.15045
  12  12.3942
  13  5.0342
  14  7.93565
  15  2.75133
  16  0.244462
  17  0.0730404
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 12795.2490002

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.937e+01  7.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.952e-01  7.304e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  8.848e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.81
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 6.78e-08
Energy Flux (Fixed Index): 9.54e-05 +/- 3.92e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12792.6803404
delta logL = 2.56865976608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12792.6789836
delta logL = 2.57001653086

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.838       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6839       1.0000          .0000       5.0000    
     3 'Normalizat'    .77444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12792.68     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.838        5.9081        .93888E-04    .11094E-02
   2  alpha         2.6839        .33711        .68635E-02    .16625E-03
   3  Normalizat    .77443        .23777        .54624E-03   -.92783E-04
   4  Prefactor     1.0119        .72278E-01    .14893E-03   -.24856E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8377
  alpha      = 2.68386
  Normalizat = 0.774433
  Prefactor  = 1.01193
 **********
 **   18 **HESSE 
 **********

 FCN=   12792.68     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.838        5.4205        .37555E-05   -1.5020    
   2  alpha         2.6839        .30921        .27454E-03    .73610E-01
   3  Normalizat    .77443        .23720        .21849E-04   -1.0102    
   4  Prefactor     1.0119        .72175E-01    .29785E-04   -.92333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54407e-10
Minuit parameter uncertainties:
  1  5.42073
  2  0.310013
  3  0.237512
  4  0.0721824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458286': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12792.6789836
delta logL = 2.57001653104

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.184e+01  5.421e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.684e+00  3.100e-01  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.012e+00  7.218e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  7.744e-01  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.38
Ra Dec: 341.061 40.960
Photon Index (Free Index): 2.68 +/- 0.31
Photon Flux (Free Index): 2.68e-07 +/- 7.68e-08
Energy Flux (Free Index): 7.14e-05 +/- 1.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/458286/cmap_HighResolution_459129601_459388801_4FGL_J2244.2+4057_daily_bin848.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/458286

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='7.14e-05', photon_flux_error='6.78e-08', dlogl='2.57e+00', energy_flux='9.54e-05', photon_flux2='2.68e-07', job_status='DONE', time_completed='2021-09-28 19:59:12.229340', photon_index_error2='0.31', photon_index2='2.68', ts='24.81', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.88', time_epoch_completed='1632884352.23', return_code='0', job_id='458286', GAL2='1.01', EG2='0.77', return_code2='0', energy_flux_error='3.92e-05', photon_flux_error2='7.68e-08', ts2='30.38', photon_index='2.03' WHERE bin_id='848' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:59:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 458286: <4FGL_J2244.2+4057_daily_bin848> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin848> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 19:45:23 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:45:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:45:24 2021
Terminated at Tue Sep 28 19:59:12 2021
Results reported at Tue Sep 28 19:59:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin848 341.061 40.9597 459129601 459388801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2244.2+4057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   814.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

The output (if any) is above this job summary.

