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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin292
RA = 341.061, Dec = 40.9597
tmin = 315014401, tmax = 315273601
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='455316', job_status='RUN', time_executed='2021-09-28 19:35:34.592992', time_epoch_executed='1632882934.59' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455316/ft1_4FGL_J2244.2+4057_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455316/ft2_4FGL_J2244.2+4057_daily_bin292.fits


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

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

Done.
real 3.55
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455316/ft1_filtered_4FGL_J2244.2+4057_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/455316/ft2_4FGL_J2244.2+4057_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/455316/ltcube_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.fits outfile=/scratch/kocevski/455316/expmap_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.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/455316/ltcube_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.fits
.....................!
real 191.78
user 186.21
sys 5.22

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/455316/ft1_filtered_4FGL_J2244.2+4057_daily_bin292.fits scfile=/scratch/kocevski/455316/ft2_4FGL_J2244.2+4057_daily_bin292.fits outfile=/scratch/kocevski/455316/cmap_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.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.54
user 0.35
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.513       1.0000         .10000E-03   10000.    
    11 'norm      '    17.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11214       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7863       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5107       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87426       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=   12304.10     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1442 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1173        .64556        .13111E-07   -.15261E-03
   2  Prefactor     .10000E-03    10.703       -.62625E-06** at limit **
   3  Prefactor     .10000E-03    5.9989        .56662E-08** at limit **
   4  Prefactor     .10000E-03    25.204        .25535E-07** at limit **
   5  Prefactor     .10005E-03    2.5741       -.92182E-06** at limit **
   6  Prefactor     13.577        15.429        .33582E-06    .79229E-04
   7  norm          1.1848        4.0358        .39086E-05   -.56636E-03
   8  Prefactor     11.411        17.274        .65892E-06    .50455E-04
   9  Prefactor     9.9611        9.0251       -.11556E-05   -.50274E-03
  10  Prefactor     74.496        30.805       -.15439E-05   -.48536E-03
  11  norm          17.667        2.7233        .17824E-07   -.17536E-03
  12  Prefactor     .21128        5.8409        .29069E-06   -.14748E-03
  13  norm          4.7872        5.9811        .14179E-06   -.61444E-04
  14  norm          4.5099        4.7210       -.94519E-08    .95437E-04
  15  norm          .10000E-03    .85635       -.75897E-08** at limit **
  16  Normalizat    1.2585        .22935        .68051E-06   -.11720E-03
  17  Prefactor     .87437        .63727E-01   -.16811E-06   -.10662E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 13.5769
  norm       = 1.18483
  Prefactor  = 11.411
  Prefactor  = 9.96114
  Prefactor  = 74.4963
  norm       = 17.6674
  Prefactor  = 0.211282
  norm       = 4.78724
  norm       = 4.50991
  norm       = 0.0001
  Normalizat = 1.25853
  Prefactor  = 0.874367
 **********
 **   18 **HESSE 
 **********

 FCN=   12304.10     FROM HESSE     STATUS=OK           235 CALLS     1677 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1173        .63356        .65042E-04   -1.5497    
   2  Prefactor     .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    10.888        .32618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.577        15.453        .10871E-03   -1.4971    
   7  norm          1.1848        4.1124        .36681E-03   -1.5490    
   8  Prefactor     11.411        17.316        .11855E-03   -1.5032    
   9  Prefactor     9.9611        8.8376        .12685E-03   -1.5077    
  10  Prefactor     74.496        31.839        .23257E-03   -1.3980    
  11  norm          17.667        2.7292        .67958E-04   -1.4867    
  12  Prefactor     .21128        7.6891        .78891E-01   -1.5616    
  13  norm          4.7872        5.9704        .18390E-03   -1.5270    
  14  norm          4.5099        4.7270        .18956E-03   -1.5283    
  15  norm          .10000E-03    .87313        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2585        .25597        .44793E-03   -.84813    
  17  Prefactor     .87437        .71451E-01    .15090E-03   -.97043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25626e-09
Minuit parameter uncertainties:
  1  0.633564
  2  7.98242e-05
  3  6.35667e-07
  4  1.47691e-06
  5  0.00142241
  6  15.458
  7  4.11342
  8  17.3233
  9  8.83875
  10  31.8463
  11  2.72922
  12  2.54892
  13  5.97116
  14  4.72742
  15  4.21834e-07
  16  0.25623
  17  0.0714587
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.185e+00  4.113e+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.744e-01  7.146e-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.259e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455316/likelihoodResults_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.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) = 12303.8246741
delta logL = 0.275043568608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12303.8235041
delta logL = 0.276213545287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0629       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0653       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87843       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=   12303.82     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      252 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0614        5.3631        .14044E-03    .48069E-03
   2  alpha         3.0642        3.6759        .20493E-01    .50854E-04
   3  Normalizat    1.2229        .25149        .45337E-03    .12573E-03
   4  Prefactor     .87839        .71443E-01    .15054E-03   -.38580E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06137
  alpha      = 3.06421
  Normalizat = 1.22288
  Prefactor  = 0.878387
 **********
 **   18 **HESSE 
 **********

 FCN=   12303.82     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0614        2.4889        .56175E-05   -1.5502    
   2  alpha         3.0642        1.2385        .81972E-03    .22765    
   3  Normalizat    1.2229        .24972        .18135E-04   -.85899    
   4  Prefactor     .87839        .70754E-01    .30109E-04   -.96900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07911e-10
Minuit parameter uncertainties:
  1  2.48911
  2  1.29923
  3  0.249967
  4  0.0707616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455316': 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) = 12303.8235009
delta logL = 0.276216744633

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.061e+00  2.489e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  3.064e+00  1.299e+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.784e-01  7.076e-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.223e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 341.061 40.960

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/455316/cmap_HighResolution_315014401_315273601_4FGL_J2244.2+4057_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-05', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-28 19:49:38.934352', job_id='455316', GAL2='0.88', fit_tolerance='1e-08', EG2='1.22', EG='1.26', time_epoch_completed='1632883778.93', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.76e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='292' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 455316: <4FGL_J2244.2+4057_daily_bin292> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin292> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:35:15 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:35:18 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:35:18 2021
Terminated at Tue Sep 28 19:49:39 2021
Results reported at Tue Sep 28 19:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin292 341.061 40.9597 315014401 315273601 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 :                                   841.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

