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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1027
RA = 341.061, Dec = 40.9597
tmin = 505526401, tmax = 505785601
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='458546', job_status='RUN', time_executed='2021-09-28 19:47:44.872448', time_epoch_executed='1632883664.87' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458546/ft1_4FGL_J2244.2+4057_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458546/ft1_4FGL_J2244.2+4057_daily_bin1027.fits outfile=/scratch/kocevski/458546/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1027.fits ra=341.061 dec=40.9597 rad=12.0 tmin=505526401.0 tmax=505785601.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.52
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.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/458546/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.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/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/458546/ltcube_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.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/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/458546/ltcube_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.fits outfile=/scratch/kocevski/458546/expmap_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.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/458546/ltcube_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.fits
.....................!
real 190.73
user 185.19
sys 5.14

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/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits outfile=/scratch/kocevski/458546/cmap_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits outfile=/scratch/kocevski/458546/cmap_HighResolution_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.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/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/458546/ft2_4FGL_J2244.2+4057_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458546/Model_4FGL_J2244.2+4057_daily_bin1027.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/458546/ft1_filtered_4FGL_J2244.2+4057_daily_bin1027.fits.....................!
real 167.41
user 165.85
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    93.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3081       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.563       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4757       1.0000         .10000E-03   10000.    
    14 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90198       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97636       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=   14494.10     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1580 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9760        .90535       -.83466E-08   -.19549E-03
   2  Prefactor     .10000E-03    4.5605        .20938E-05** at limit **
   3  Prefactor     .10000E-03    2.6119        .74941E-07** at limit **
   4  Prefactor     93.565        89.530       -.36160E-05   -.97173E-05
   5  Prefactor     9.3088        8.3106       -.17472E-06   -.15376E-04
   6  Prefactor     .10000E-03    5.6075       -.48015E-05** at limit **
   7  norm          16.745        6.0480        .85068E-07    .30573E-04
   8  Prefactor     2.1044        9.8219        .13331E-05   -.61680E-03
   9  Prefactor     .10000E-03    2.8052       -.35259E-06** at limit **
  10  Prefactor     15.565        19.560        .32580E-05    .41149E-04
  11  norm          3.1456        1.2774       -.29915E-07   -.25816E-04
  12  Prefactor     .10000E-03    9.5908       -.19522E-05** at limit **
  13  norm          3.4755        3.2293       -.13712E-08   -.21744E-02
  14  norm          .10000E-03    7.1698        .59666E-05** at limit **
  15  norm          .10000E-03    .95566       -.63811E-07** at limit **
  16  Normalizat    .90207        .19615        .16575E-06   -.98841E-06
  17  Prefactor     .97634        .59098E-01   -.56095E-07   -.37610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.97598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.5649
  Prefactor  = 9.30876
  Prefactor  = 0.0001
  norm       = 16.7449
  Prefactor  = 2.10436
  Prefactor  = 0.0001
  Prefactor  = 15.5648
  norm       = 3.14559
  Prefactor  = 0.0001
  norm       = 3.47549
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.902067
  Prefactor  = 0.976344
 **********
 **   18 **HESSE 
 **********

 FCN=   14494.10     FROM HESSE     STATUS=OK           225 CALLS     1805 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9760        .90625        .46909E-04   -1.5262    
   2  Prefactor     .10000E-03    4.5670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     93.565        89.552        .41547E-04   -1.3770    
   5  Prefactor     9.3088        8.2948        .13136E-03   -1.5098    
   6  Prefactor     .10000E-03    5.6300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.745        6.0416        .97883E-04   -1.4889    
   8  Prefactor     2.1044        19.087        .14222E-02   -1.5418    
   9  Prefactor     .10000E-03    2.8157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.565        19.590        .10153E-03   -1.4919    
  11  norm          3.1456        1.2770        .83149E-04   -1.5353    
  12  Prefactor     .10000E-03    9.7908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4755        4.0985        .10845E-02   -1.5335    
  14  norm          .10000E-03    7.2361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0003        .22981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .90207        .20983        .49273E-03   -.96388    
  17  Prefactor     .97634        .63730E-01    .14541E-03   -.93522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13269e-09
Minuit parameter uncertainties:
  1  0.906249
  2  1.1581e-05
  3  4.08543e-07
  4  89.6815
  5  8.29585
  6  2.85757e-05
  7  6.04179
  8  12.6803
  9  2.38426e-06
  10  19.5978
  11  1.27696
  12  2.11826e-05
  13  4.0988
  14  1.70496e-06
  15  4.76137e-07
  16  0.210018
  17  0.0637352
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.674e+01  6.042e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.763e-01  6.374e-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:  9.021e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.37
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 5.15e-08
Energy Flux (Fixed Index): 8.25e-05 +/- 2.98e-05

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) = 14493.2739859
delta logL = 0.828717221273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14493.2561556
delta logL = 0.846547533096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.781       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3958       1.0000          .0000       5.0000    
     3 'Normalizat'    .84843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98341       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=   14493.26     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      290 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.781        5.3913        .10790E-03   -.63072E-03
   2  alpha         2.3957        .30257        .85465E-02    .58836E-03
   3  Normalizat    .84860        .20994        .50565E-03   -.91552E-04
   4  Prefactor     .98333        .63466E-01    .14485E-03   -.15164E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7811
  alpha      = 2.39575
  Normalizat = 0.848604
  Prefactor  = 0.983334
 **********
 **   18 **HESSE 
 **********

 FCN=   14493.26     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.781        5.1937        .43159E-05   -1.4965    
   2  alpha         2.3957        .29128        .17093E-02   -.41713E-01
   3  Normalizat    .84860        .20972        .20226E-04   -.98290    
   4  Prefactor     .98333        .63442E-01    .57939E-05   -.93287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42472e-11
Minuit parameter uncertainties:
  1  5.19383
  2  0.291948
  3  0.209916
  4  0.0634472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458546': 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) = 14493.2561548
delta logL = 0.84654835792

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.378e+01  5.194e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.396e+00  2.919e-01  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.833e-01  6.345e-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:  8.486e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.29
Ra Dec: 341.061 40.960
Photon Index (Free Index): 2.40 +/- 0.29
Photon Flux (Free Index): 1.97e-07 +/- 6.65e-08
Energy Flux (Free Index): 6.84e-05 +/- 2.10e-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/458546/cmap_HighResolution_505526401_505785601_4FGL_J2244.2+4057_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='6.84e-05', photon_flux_error='5.15e-08', dlogl='8.47e-01', energy_flux='8.25e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-28 20:02:07.633694', photon_index_error2='0.29', photon_index2='2.40', ts='23.37', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.90', time_epoch_completed='1632884527.63', return_code='0', job_id='458546', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='6.65e-08', ts2='25.29', photon_index='2.03' WHERE bin_id='1027' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 458546: <4FGL_J2244.2+4057_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1027 341.061 40.9597 505526401 505785601 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 :                                   861.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             312.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

