/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 5 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 = 7734
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2244.2+4057_daily_bin734
RA = 341.061, Dec = 40.9597
tmin = 429580801, tmax = 429840001
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='457087', job_status='RUN', time_executed='2021-09-28 19:41:04.441372', time_epoch_executed='1632883264.44' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457087/ft1_4FGL_J2244.2+4057_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457087/ft2_4FGL_J2244.2+4057_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457087/ft1_4FGL_J2244.2+4057_daily_bin734.fits outfile=/scratch/kocevski/457087/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin734.fits ra=341.061 dec=40.9597 rad=12.0 tmin=429580801.0 tmax=429840001.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 6.49
user 6.01
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/457087/ft2_4FGL_J2244.2+4057_daily_bin734.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/457087/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/457087/ft1_filtered_4FGL_J2244.2+4057_daily_bin734.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457087/ft1_filtered_4FGL_J2244.2+4057_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/457087/ft2_4FGL_J2244.2+4057_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/457087/ltcube_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.fits outfile=/scratch/kocevski/457087/expmap_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.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/457087/ltcube_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.fits
.....................!
real 190.82
user 185.99
sys 4.52

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/457087/ft1_filtered_4FGL_J2244.2+4057_daily_bin734.fits scfile=/scratch/kocevski/457087/ft2_4FGL_J2244.2+4057_daily_bin734.fits outfile=/scratch/kocevski/457087/cmap_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457087/ft1_filtered_4FGL_J2244.2+4057_daily_bin734.fits scfile=/scratch/kocevski/457087/ft2_4FGL_J2244.2+4057_daily_bin734.fits outfile=/scratch/kocevski/457087/cmap_HighResolution_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14334E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6233       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.636       1.0000         .10000E-03   10000.    
    15 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84666       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=   5028.668     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1584 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .22202       -.84536E-08** at limit **
   2  Prefactor     .10000E-03    14.274       -.88266E-06** at limit **
   3  Prefactor     4.9525        13.348       -.25007E-07   -.21750E-04
   4  Prefactor     .10000E-03    57.094       -.10122E-06** at limit **
   5  Prefactor     .10000E-03    15.860        .82196E-06** at limit **
   6  Prefactor     15.876        33.919       -.94749E-05   -.38526E-03
   7  norm          5.5082        5.8104        .18177E-05   -.12402E-02
   8  Prefactor     .10000E-03    29.331       -.24954E-06** at limit **
   9  Prefactor     6.2796        12.877       -.15331E-05   -.81135E-04
  10  Prefactor     .10000E-03    11.274        .55822E-06** at limit **
  11  norm          6.3667        2.8716       -.24360E-07    .78333E-04
  12  Prefactor     4.6231        12.787        .40018E-05   -.48225E-03
  13  norm          .10000E-03    18.373       -.16335E-05** at limit **
  14  norm          10.623        19.600       -.12534E-05   -.11182E-03
  15  norm          .10000E-03    2.4931       -.24222E-08** at limit **
  16  Normalizat    1.0132        .32818        .49754E-06   -.42036E-04
  17  Prefactor     .84659        .90000E-01   -.26004E-06   -.74088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.876
  norm       = 5.5082
  Prefactor  = 0.0001
  Prefactor  = 6.27959
  Prefactor  = 0.0001
  norm       = 6.36669
  Prefactor  = 4.62309
  norm       = 0.000100001
  norm       = 10.6229
  norm       = 0.0001
  Normalizat = 1.01318
  Prefactor  = 0.846589
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.668     FROM HESSE     STATUS=OK           219 CALLS     1803 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .22302        .32615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9525        13.326        .18072E-03   -1.5263    
   4  Prefactor     .10000E-03    57.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.876        36.982        .10045E-03   -1.4911    
   7  norm          5.5082        6.1532        .84909E-03   -1.5239    
   8  Prefactor     .10000E-03    29.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2796        12.915        .16026E-03   -1.5207    
  10  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3667        2.8818        .76473E-04   -1.5203    
  12  Prefactor     4.6231        13.550        .93593E-03   -1.5278    
  13  norm          .10000E-03    18.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.623        19.616        .12286E-03   -1.5056    
  15  norm          .10000E-03    2.5241        .10922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0132        .36087        .45337E-03   -.92590    
  17  Prefactor     .84659        .99167E-01    .13911E-03   -.98033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28386e-09
Minuit parameter uncertainties:
  1  1.83072e-07
  2  0.000107866
  3  13.3341
  4  2.94321e-05
  5  7.05301e-05
  6  37.0354
  7  6.15386
  8  4.6222e-05
  9  12.9212
  10  6.44515e-05
  11  2.88185
  12  13.5594
  13  0.000225429
  14  19.6281
  15  5.26084e-06
  16  0.361749
  17  0.0991876
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  5.508e+00  6.154e+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:  8.466e-01  9.919e-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:  1.013e+00  3.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 3.03e-05

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

Saving results to:
/scratch/kocevski/457087/likelihoodResults_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.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) = 5028.66370233
delta logL = 0.00417604178892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.6634715
delta logL = 0.00440687396622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5872       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9360       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84590       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=   5028.663     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5879        5.9654        .16996E-03   -.16736E-03
   2  alpha         1.9360        .92118        .19655E-01    .10648E-05
   3  Normalizat    1.0179        .34567        .45243E-03   -.62493E-04
   4  Prefactor     .84594        .98037E-01    .13916E-03   -.26964E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.58795
  alpha      = 1.93598
  Normalizat = 1.01795
  Prefactor  = 0.845938
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.663     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5879        5.9423        .67984E-05   -1.5235    
   2  alpha         1.9360        .91724        .78622E-03   -.22757    
   3  Normalizat    1.0179        .34558        .18097E-04   -.92432    
   4  Prefactor     .84594        .98048E-01    .27832E-04   -.98057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40756e-11
Minuit parameter uncertainties:
  1  5.94291
  2  0.940435
  3  0.346341
  4  0.0980685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457087': 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) = 5028.66347137
delta logL = 0.00440700208128

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  5.588e+00  5.943e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.936e+00  9.404e-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:  8.459e-01  9.807e-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:  1.018e+00  3.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.94 +/- 0.94
Photon Flux (Free Index): 4.26e-08 +/- 6.33e-08
Energy Flux (Free Index): 2.89e-05 +/- 3.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/457087/cmap_HighResolution_429580801_429840001_4FGL_J2244.2+4057_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-05', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='2.89e-05', photon_flux_error='5.24e-08', dlogl='4.41e-03', energy_flux='2.71e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-28 19:50:06.532334', photon_index_error2='0.94', photon_index2='1.94', ts='1.42', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='3.70e-05', EG='1.01', time_epoch_completed='1632883806.53', return_code='0', job_id='457087', GAL2='0.85', EG2='1.02', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='6.33e-08', ts2='1.43', photon_index='2.03' WHERE bin_id='734' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:50:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 457087: <4FGL_J2244.2+4057_daily_bin734> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin734> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:40:49 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:40:51 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:40:51 2021
Terminated at Tue Sep 28 19:50:06 2021
Results reported at Tue Sep 28 19:50:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin734 341.061 40.9597 429580801 429840001 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 :                                   539.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            557 sec.

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

