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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1370
RA = 341.061, Dec = 40.9597
tmin = 594432001, tmax = 594691201
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='460048', job_status='RUN', time_executed='2021-09-28 19:52:42.666936', time_epoch_executed='1632883962.67' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460048/ft1_4FGL_J2244.2+4057_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460048/ft1_4FGL_J2244.2+4057_daily_bin1370.fits outfile=/scratch/kocevski/460048/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1370.fits ra=341.061 dec=40.9597 rad=12.0 tmin=594432001.0 tmax=594691201.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.37
user 4.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/460048/ltcube_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.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/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits
.....................!
real 11.79
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/460048/ltcube_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.fits outfile=/scratch/kocevski/460048/expmap_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.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/460048/ltcube_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.fits
.....................!
real 192.54
user 186.36
sys 4.96

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/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits scfile=/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits outfile=/scratch/kocevski/460048/cmap_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits scfile=/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits outfile=/scratch/kocevski/460048/cmap_HighResolution_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.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/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/460048/ft2_4FGL_J2244.2+4057_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460048/Model_4FGL_J2244.2+4057_daily_bin1370.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/460048/ft1_filtered_4FGL_J2244.2+4057_daily_bin1370.fits.....................!
real 136.15
user 134.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.666       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6044       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0849       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4016       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2556       1.0000         .10000E-03   10000.    
    15 'norm      '    .19714E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2262       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82684       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=   10959.26     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1645 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6411        .91908        .15637E-06   -.16996E-03
   2  Prefactor     8.9217        16.891       -.23444E-05   -.21248E-04
   3  Prefactor     7.7788        11.955       -.41768E-05   -.71798E-04
   4  Prefactor     20.258        50.359       -.37605E-05   -.21899E-05
   5  Prefactor     2.4217        6.0158        .57724E-05   -.65222E-03
   6  Prefactor     45.665        28.355        .94746E-06   -.14065E-05
   7  norm          1.6042        2.2249       -.11979E-05   -.43494E-03
   8  Prefactor     .10000E-03    9.2095        .82466E-07** at limit **
   9  Prefactor     .10000E-03    1.9802        .34985E-07** at limit **
  10  Prefactor     1.0301        15.365       -.21192E-05   -.30540E-04
  11  norm          1.3597        1.3278       -.10725E-06   -.67986E-03
  12  Prefactor     .10000E-03    6.0407        .18318E-06** at limit **
  13  norm          5.4015        6.6779        .23248E-05   -.14076E-03
  14  norm          4.2547        5.3734       -.35273E-05   -.56319E-05
  15  norm          .10000E-03    1.3597        .12821E-06** at limit **
  16  Normalizat    1.2262        .22627       -.11320E-05    .28103E-04
  17  Prefactor     .82682        .62393E-01    .20760E-06   -.40896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64114
  Prefactor  = 8.92166
  Prefactor  = 7.77876
  Prefactor  = 20.2581
  Prefactor  = 2.42171
  Prefactor  = 45.6652
  norm       = 1.60424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.03012
  norm       = 1.35974
  Prefactor  = 0.0001
  norm       = 5.40155
  norm       = 4.25473
  norm       = 0.0001
  Normalizat = 1.22622
  Prefactor  = 0.826821
 **********
 **   18 **HESSE 
 **********

 FCN=   10959.26     FROM HESSE     STATUS=OK           235 CALLS     1880 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6411        .91877        .47310E-04   -1.5326    
   2  Prefactor     8.9217        16.851        .13422E-03   -1.5110    
   3  Prefactor     7.7788        11.985        .14374E-03   -1.5150    
   4  Prefactor     20.258        50.384        .88627E-04   -1.4807    
   5  Prefactor     2.4217        5.7065        .26312E-03   -1.5397    
   6  Prefactor     45.665        28.379        .59331E-04   -1.4355    
   7  norm          1.6042        2.1905        .16611E-03   -1.5455    
   8  Prefactor     .10000E-03    9.2268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9861        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0301        110.33        .79110E-02   -1.5505    
  11  norm          1.3597        1.3108        .11353E-03   -1.5475    
  12  Prefactor     .10000E-03    6.0746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4015        6.6498        .17290E-03   -1.5243    
  14  norm          4.2547        5.3994        .19532E-03   -1.5295    
  15  norm          .10000E-03    3.4037        .23697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2262        .25017        .42849E-03   -.85797    
  17  Prefactor     .82682        .69775E-01    .14408E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51989e-08
Minuit parameter uncertainties:
  1  0.918769
  2  16.8602
  3  11.9889
  4  50.4897
  5  5.70782
  6  28.3869
  7  2.19057
  8  2.5725e-06
  9  4.6174e-06
  10  21.3607
  11  1.31082
  12  6.37612e-06
  13  6.65068
  14  5.40002
  15  2.13649e-05
  16  0.250411
  17  0.0697823
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.604e+00  2.191e+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.268e-01  6.978e-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.226e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 7.90e-06 +/- 1.08e-05

TS (Fixed Index): 1.29
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460048/likelihoodResults_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.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) = 10959.1232769
delta logL = 0.132883750735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10959.1194647
delta logL = 0.136695966632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4311       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4968       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82638       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=   10959.12     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4310        1.8564        .90272E-02    .55147E-03
   2  alpha         1.4967        .74200        .46408       -.77226E-04
   3  Normalizat    1.2318        .21805        .96530E-01    .25901E-04
   4  Prefactor     .82638        .61780E-01    .32616E-01   -.10552E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43097
  alpha      = 1.49672
  Normalizat = 1.23181
  Prefactor  = 0.826382
 **********
 **   18 **HESSE 
 **********

 FCN=   10959.12     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4310        1.9539        .15305E-03   -1.5469    
   2  alpha         1.4967        .91272        .32483E-01   -.41295    
   3  Normalizat    1.2318        .24214        .42765E-03   -.85625    
   4  Prefactor     .82638        .68866E-01    .14412E-03   -.98763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04596e-10
Minuit parameter uncertainties:
  1  1.95397
  2  0.938803
  3  0.242364
  4  0.0688735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460048': 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) = 10959.1194646
delta logL = 0.136695968829

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.431e+00  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.497e+00  9.388e-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.264e-01  6.887e-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.232e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.50 +/- 0.94
Photon Flux (Free Index): 7.27e-09 +/- 1.23e-08
Energy Flux (Free Index): 1.32e-05 +/- 2.32e-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/460048/cmap_HighResolution_594432001_594691201_4FGL_J2244.2+4057_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='1.32e-05', photon_flux_error='1.87e-08', dlogl='1.37e-01', energy_flux='7.90e-06', photon_flux2='7.27e-09', job_status='DONE', time_completed='2021-09-28 20:06:17.655573', photon_index_error2='0.94', photon_index2='1.50', ts='1.29', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.88e-08', energy_flux_error2='2.32e-05', EG='1.23', time_epoch_completed='1632884777.66', return_code='0', job_id='460048', GAL2='0.83', EG2='1.23', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.23e-08', ts2='1.56', photon_index='2.03' WHERE bin_id='1370' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 460048: <4FGL_J2244.2+4057_daily_bin1370> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin1370> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:50:42 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:50:44 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:50:44 2021
Terminated at Tue Sep 28 20:06:18 2021
Results reported at Tue Sep 28 20:06:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1370 341.061 40.9597 594432001 594691201 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

