/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 0 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2244.2+4057_daily_bin251
RA = 341.061, Dec = 40.9597
tmin = 304387201, tmax = 304646401
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='454278', job_status='RUN', time_executed='2021-09-28 19:31:08.373109', time_epoch_executed='1632882668.37' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454278/ft1_4FGL_J2244.2+4057_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454278/ft1_4FGL_J2244.2+4057_daily_bin251.fits outfile=/scratch/kocevski/454278/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin251.fits ra=341.061 dec=40.9597 rad=12.0 tmin=304387201.0 tmax=304646401.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 4.08
user 3.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.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/454278/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/454278/ltcube_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.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/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/454278/ltcube_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits outfile=/scratch/kocevski/454278/expmap_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.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/454278/ltcube_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits
.....................!
real 190.39
user 185.59
sys 4.47

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/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits outfile=/scratch/kocevski/454278/cmap_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits outfile=/scratch/kocevski/454278/cmap_HighResolution_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/454278/Model_4FGL_J2244.2+4057_daily_bin251.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/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits.....................!
real 149.20
user 147.78
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits', '/scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits', expMap='/scratch/kocevski/454278/expmap_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits', expCube='/scratch/kocevski/454278/ltcube_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/454278/Model_4FGL_J2244.2+4057_daily_bin251.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/454278/ft1_filtered_4FGL_J2244.2+4057_daily_bin251.fits
Spacecraft file(s): /scratch/kocevski/454278/ft2_4FGL_J2244.2+4057_daily_bin251.fits
Exposure map: /scratch/kocevski/454278/expmap_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits
Exposure cube: /scratch/kocevski/454278/ltcube_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/454278/Model_4FGL_J2244.2+4057_daily_bin251.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) = 12478.1375632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3054       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63577E-02   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .73254       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99599       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.

 FCN=   12478.13     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1596 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5811        1.2546        .34211E-02    .14883E-02
   2  Prefactor     10.879        19.065        .30369E-02   -.31968E-03
   3  Prefactor     .10000E-03    5.7593        .90712E-02** at limit **
   4  Prefactor     43.754        75.961        .15152E-02    .15059E-03
   5  Prefactor     11.496        8.4749        .29538E-02    .23946E-03
   6  Prefactor     .10000E-03    23.238        .90712E-02** at limit **
   7  norm          6.3056        5.5025        .39964E-02    .48305E-03
   8  Prefactor     .10000E-03    15.787        .90712E-02** at limit **
   9  Prefactor     .10000E-03    6.2127        .90712E-02** at limit **
  10  Prefactor     .10000E-03    7.6128        .90712E-02** at limit **
  11  norm          9.6504        2.3016        .32249E-02    .89435E-03
  12  Prefactor     1.3004        33.565        .96585E-02    .32169E-03
  13  norm          .10000E-03    3.2118        .90712E-02** at limit **
  14  norm          .10000E-03    6.4860        .90712E-02** at limit **
  15  norm          .10000E-03    1.2095        .64714E-01** at limit **
  16  Normalizat    .73259        .25055        .12933        .38015E-03
  17  Prefactor     .99598        .69350E-01    .33203E-01    .13922E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.58106
  Prefactor  = 10.8791
  Prefactor  = 0.0001
  Prefactor  = 43.7539
  Prefactor  = 11.4961
  Prefactor  = 0.0001
  norm       = 6.30558
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 9.65038
  Prefactor  = 1.3004
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Normalizat = 0.732593
  Prefactor  = 0.995983
 **********
 **   18 **HESSE 
 **********

 FCN=   12478.13     FROM HESSE     STATUS=OK           227 CALLS     1823 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5811        1.2557        .44432E-04   -1.5122    
   2  Prefactor     10.879        19.074        .12148E-03   -1.5048    
   3  Prefactor     .10000E-03    5.7691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.754        75.924        .60608E-04   -1.4384    
   5  Prefactor     11.496        8.4473        .11815E-03   -1.5030    
   6  Prefactor     .10000E-03    23.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3056        5.4814        .15986E-03   -1.5206    
   8  Prefactor     .10000E-03    15.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6504        2.3009        .78231E-04   -1.5087    
  12  Prefactor     1.3004        32.706        .38634E-03   -1.5480    
  13  norm          .10000E-03    3.2395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.5416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8964        .42626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .73259        .25781        .57403E-03   -1.0262    
  17  Prefactor     .99598        .73054E-01    .14672E-03   -.92864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54395e-09
Minuit parameter uncertainties:
  1  1.25571
  2  19.0847
  3  3.31072e-05
  4  76.092
  5  8.44817
  6  0.000122807
  7  5.48184
  8  4.55573e-05
  9  0.00032778
  10  8.45641e-05
  11  2.30092
  12  13.0505
  13  6.97672e-06
  14  0.000347423
  15  2.79644e-05
  16  0.258236
  17  0.073061
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  6.306e+00  5.482e+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.960e-01  7.306e-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.326e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 2.70e-05

TS (Fixed Index): 2.82
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454278/likelihoodResults_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.txt

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) = 12477.7314968
delta logL = 0.402973231458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12477.7286639
delta logL = 0.405806149756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3770       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4928       1.0000          .0000       5.0000    
     3 'Normalizat'    .70135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99943       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=   12477.73     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      306 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3776        4.4712        .15332E-03   -.18368E-02
   2  alpha         2.4929        .55202        .14515E-01   -.19321E-03
   3  Normalizat    .70131        .24426        .58535E-03    .21224E-03
   4  Prefactor     .99943        .71711E-01    .14643E-03    .10596E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37762
  alpha      = 2.49293
  Normalizat = 0.701311
  Prefactor  = 0.99943
 **********
 **   18 **HESSE 
 **********

 FCN=   12477.73     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3776        4.1935        .61326E-05   -1.5244    
   2  alpha         2.4929        .51772        .58061E-03   -.28287E-02
   3  Normalizat    .70131        .24402        .23414E-04   -1.0384    
   4  Prefactor     .99943        .71663E-01    .29286E-04   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64641e-09
Minuit parameter uncertainties:
  1  4.19373
  2  0.521489
  3  0.244401
  4  0.07167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454278': 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) = 12477.7286637
delta logL = 0.40580629684

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  5.378e+00  4.194e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.493e+00  5.215e-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:  9.994e-01  7.167e-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.013e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 341.061 40.960
Photon Index (Free Index): 2.49 +/- 0.52
Photon Flux (Free Index): 8.95e-08 +/- 6.35e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.80e-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/454278/cmap_HighResolution_304387201_304646401_4FGL_J2244.2+4057_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-05', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='2.81e-05', photon_flux_error='4.67e-08', dlogl='4.06e-01', energy_flux='3.11e-05', photon_flux2='8.95e-08', job_status='DONE', time_completed='2021-09-28 19:45:40.825737', photon_index_error2='0.52', photon_index2='2.49', ts='2.82', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.80e-05', EG='0.73', time_epoch_completed='1632883540.83', return_code='0', job_id='454278', GAL2='1.00', EG2='0.70', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='6.35e-08', ts2='3.67', photon_index='2.03' WHERE bin_id='251' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 454278: <4FGL_J2244.2+4057_daily_bin251> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin251> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 19:30:57 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:30:58 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:30:58 2021
Terminated at Tue Sep 28 19:45:41 2021
Results reported at Tue Sep 28 19:45:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin251 341.061 40.9597 304387201 304646401 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 :                                   866.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             366.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

