/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 1 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 = 7381
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2244.2+4057_daily_bin105
RA = 341.061, Dec = 40.9597
tmin = 266544001, tmax = 266803201
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='454060', job_status='RUN', time_executed='2021-09-28 19:30:52.687606', time_epoch_executed='1632882652.69' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454060/ft1_4FGL_J2244.2+4057_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454060/ft1_4FGL_J2244.2+4057_daily_bin105.fits outfile=/scratch/kocevski/454060/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin105.fits ra=341.061 dec=40.9597 rad=12.0 tmin=266544001.0 tmax=266803201.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 1.40
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454060/ft1_filtered_4FGL_J2244.2+4057_daily_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/454060/ltcube_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.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/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits
.....................!
real 12.45
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454060/ft1_filtered_4FGL_J2244.2+4057_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/454060/ltcube_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.fits outfile=/scratch/kocevski/454060/expmap_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.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/454060/ltcube_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.fits
.....................!
real 190.12
user 185.73
sys 4.07

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/454060/ft1_filtered_4FGL_J2244.2+4057_daily_bin105.fits scfile=/scratch/kocevski/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits outfile=/scratch/kocevski/454060/cmap_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454060/ft1_filtered_4FGL_J2244.2+4057_daily_bin105.fits scfile=/scratch/kocevski/454060/ft2_4FGL_J2244.2+4057_daily_bin105.fits outfile=/scratch/kocevski/454060/cmap_HighResolution_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8709       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.406       1.0000         .10000E-03   10000.    
    15 'norm      '    .17051E-01   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2128       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86010       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=   12449.53     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1582 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8928        1.0656       -.22239E-07   -.29984E-04
   2  Prefactor     .10000E-03    7.9553        .13710E-06** at limit **
   3  Prefactor     15.249        13.796        .11081E-05   -.29513E-04
   4  Prefactor     23.969        58.282        .15101E-04   -.90915E-06
   5  Prefactor     .10000E-03    3.5960        .64938E-07** at limit **
   6  Prefactor     .10000E-03    10.126        .49687E-06** at limit **
   7  norm          .10000E-03    1.4473        .56998E-07** at limit **
   8  Prefactor     10.937        11.185        .28159E-07    .25835E-04
   9  Prefactor     8.3538        6.3705       -.27291E-06   -.93821E-04
  10  Prefactor     .10000E-03    33.572       -.98558E-05** at limit **
  11  norm          2.0298        1.2234       -.18912E-08   -.31138E-03
  12  Prefactor     6.8470        11.001        .19283E-05    .73738E-04
  13  norm          .10000E-03    2.5265        .97465E-07** at limit **
  14  norm          17.394        10.440        .24043E-05    .98760E-04
  15  norm          .53861E-01    1.0680       -.75406E-06    .51850E-03
  16  Normalizat    1.2128        .20944       -.12862E-05    .11848E-03
  17  Prefactor     .86004        .60852E-01    .47359E-07    .26597E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.89282
  Prefactor  = 0.0001
  Prefactor  = 15.2493
  Prefactor  = 23.9687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9366
  Prefactor  = 8.35384
  Prefactor  = 0.0001
  norm       = 2.02984
  Prefactor  = 6.84697
  norm       = 0.0001
  norm       = 17.3935
  norm       = 0.053861
  Normalizat = 1.21284
  Prefactor  = 0.860037
 **********
 **   18 **HESSE 
 **********

 FCN=   12449.53     FROM HESSE     STATUS=OK           225 CALLS     1807 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8928        1.0654        .16543E-04   -1.5222    
   2  Prefactor     .10000E-03    7.9591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.249        13.764        .10258E-03   -1.4927    
   4  Prefactor     23.969        58.202        .81832E-04   -1.4728    
   5  Prefactor     .10000E-03    3.6391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4579        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.937        11.185        .12115E-03   -1.5046    
   9  Prefactor     8.3538        6.3680        .13871E-03   -1.5130    
  10  Prefactor     .10000E-03    33.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0298        1.2213        .91918E-04   -1.5423    
  12  Prefactor     6.8470        10.984        .15306E-03   -1.5185    
  13  norm          .10000E-03    2.5395        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.394        10.492        .96000E-04   -1.4874    
  15  norm          .53861E-01    17.407        .21651E-02   -1.5662    
  16  Normalizat    1.2128        .23134        .42660E-03   -.86207    
  17  Prefactor     .86004        .67761E-01    .14874E-03   -.97552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72217e-09
Minuit parameter uncertainties:
  1  1.0654
  2  1.31677e-05
  3  13.7667
  4  58.3399
  5  6.83633e-07
  6  3.78956e-06
  7  4.71454e-07
  8  11.1876
  9  6.36851
  10  4.06638e-05
  11  1.22129
  12  10.9872
  13  2.11379e-06
  14  10.4927
  15  1.93533
  16  0.231532
  17  0.0677675
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.000e-04  4.715e-07  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.600e-01  6.777e-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.213e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/454060/likelihoodResults_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.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) = 12449.5285035
delta logL = -0.00326776544171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12449.5252349
delta logL = 8.784882084e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0535       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86004       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12448.61     FROM MIGRAD    STATUS=FAILED       165 CALLS      318 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69238E-01    1.5833        .50725E-02    .73234E-02
   2  alpha         4.7861        2.5801        .50000        .73340E-04
   3  Normalizat    1.1209        .88720E-01    .42660E-02   -.41120E-04
   4  Prefactor     .87295        .26473E-01    .14874E-03   -.67567E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12448.61     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      391 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69238E-01    1.5833        .44610E-04    .73234E-02
   2  alpha         4.7861        2.5801        .78531E-02    .73340E-04
   3  Normalizat    1.1209        .88720E-01    .26990E-03   -.41120E-04
   4  Prefactor     .87295        .26473E-01    .75090E-04   -.67567E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12448.61     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      448 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69238E-01    .24267         .0000        .12884E-02
   2  alpha         4.7861        3.2709         .0000        .28133E-03
   3  Normalizat    1.1209        .23144         .0000       -.38908E-04
   4  Prefactor     .87295        .67595E-01     .0000       -.55796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.069238
  alpha      = 4.78611
  Normalizat = 1.12094
  Prefactor  = 0.872953
 **********
 **   18 **HESSE 
 **********

 FCN=   12448.61     FROM HESSE     STATUS=OK            27 CALLS      475 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69238E-01    .20991        .92731E-05   -1.5655    
   2  alpha         4.7861        3.0016        .11954E-01    1.9875    
   3  Normalizat    1.1209        .23093        .68256E-05   -.89082    
   4  Prefactor     .87295        .67480E-01    .11899E-05   -.97093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77492e-10
Minuit parameter uncertainties:
  1  0.209909
  2  1.46563
  3  0.231142
  4  0.0674861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454060': 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) = 12448.6148211
delta logL = 0.910414594904

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  6.924e-02  2.099e-01  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  4.786e+00  1.466e+00  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.730e-01  6.749e-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.121e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 341.061 40.960
Photon Index (Free Index): 4.79 +/- 1.47
Photon Flux (Free Index): 8.51e-08 +/- 5.06e-07
Energy Flux (Free Index): 1.19e-05 +/- 6.91e-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/454060/cmap_HighResolution_266544001_266803201_4FGL_J2244.2+4057_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='9.10e-01', photon_flux2='8.51e-08', job_status='DONE', time_completed='2021-09-28 19:45:42.265646', photon_index_error2='1.47', photon_index2='4.79', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='5.41e-08', energy_flux_error2='6.91e-05', EG='1.21', time_epoch_completed='1632883542.27', return_code='0', job_id='454060', GAL2='0.87', EG2='1.12', return_code2='0', photon_flux_error2='5.06e-07', ts2='1.96', photon_index='2.03' WHERE bin_id='105' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 454060: <4FGL_J2244.2+4057_daily_bin105> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin105 341.061 40.9597 266544001 266803201 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 :                                   885.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             396.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

