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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin33
RA = 341.061, Dec = 40.9597
tmin = 247881601, tmax = 248140801
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='453954', job_status='RUN', time_executed='2021-09-28 19:32:42.890207', time_epoch_executed='1632882762.89' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453954/ft1_4FGL_J2244.2+4057_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453954/ft2_4FGL_J2244.2+4057_daily_bin33.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453954/ft1_filtered_4FGL_J2244.2+4057_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/453954/ft2_4FGL_J2244.2+4057_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/453954/ltcube_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.fits outfile=/scratch/kocevski/453954/expmap_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.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/453954/ltcube_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.fits
.....................!
real 190.10
user 185.33
sys 4.43

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/453954/ft1_filtered_4FGL_J2244.2+4057_daily_bin33.fits scfile=/scratch/kocevski/453954/ft2_4FGL_J2244.2+4057_daily_bin33.fits outfile=/scratch/kocevski/453954/cmap_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453954/ft1_filtered_4FGL_J2244.2+4057_daily_bin33.fits scfile=/scratch/kocevski/453954/ft2_4FGL_J2244.2+4057_daily_bin33.fits outfile=/scratch/kocevski/453954/cmap_HighResolution_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.318       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6873       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.481       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9049       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4739       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4476       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82778       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=   11789.95     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1602 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0607        .84966        .79991E-07    .32513E-04
   2  Prefactor     .10000E-03    9.1976        .15210E-05** at limit **
   3  Prefactor     23.315        15.758       -.96801E-06   -.46327E-04
   4  Prefactor     .10000E-03    31.832       -.18234E-06** at limit **
   5  Prefactor     4.4857        7.3782       -.32383E-08   -.21264E-04
   6  Prefactor     .10000E-03    10.746        .37537E-05** at limit **
   7  norm          4.2816        3.9006        .15193E-07   -.37604E-03
   8  Prefactor     18.435        15.045       -.13639E-06    .39921E-05
   9  Prefactor     4.6875        5.6570       -.26725E-06   -.18294E-04
  10  Prefactor     .10000E-03    10.168       -.52293E-05** at limit **
  11  norm          5.1391        1.9404       -.10730E-07    .34706E-04
  12  Prefactor     23.480        13.334       -.10627E-06    .16850E-04
  13  norm          2.9048        1.3103        .17397E-07   -.10862E-02
  14  norm          .10000E-03    4.0797       -.25433E-07** at limit **
  15  norm          1.4739        1.6779       -.23373E-08    .24173E-05
  16  Normalizat    1.4476        .22151        .94956E-07   -.80688E-05
  17  Prefactor     .82778        .62621E-01    .53376E-07   -.27381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0607
  Prefactor  = 0.0001
  Prefactor  = 23.3146
  Prefactor  = 0.0001
  Prefactor  = 4.48565
  Prefactor  = 0.0001
  norm       = 4.28163
  Prefactor  = 18.4347
  Prefactor  = 4.68747
  Prefactor  = 0.0001
  norm       = 5.13915
  Prefactor  = 23.4805
  norm       = 2.90481
  norm       = 0.0001
  norm       = 1.47387
  Normalizat = 1.44758
  Prefactor  = 0.827777
 **********
 **   18 **HESSE 
 **********

 FCN=   11789.95     FROM HESSE     STATUS=OK           227 CALLS     1829 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0607        .81835        .80680E-04   -1.5502    
   2  Prefactor     .10000E-03    9.2364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.315        15.611        .82952E-04   -1.4742    
   4  Prefactor     .10000E-03    31.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4857        7.3058        .19013E-03   -1.5284    
   6  Prefactor     .10000E-03    10.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2816        3.9591        .87329E-03   -1.5294    
   8  Prefactor     18.435        15.042        .93282E-04   -1.4849    
   9  Prefactor     4.6875        5.6366        .18587E-03   -1.5275    
  10  Prefactor     .10000E-03    10.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1391        1.9518        .87849E-04   -1.5255    
  12  Prefactor     23.480        13.362        .82663E-04   -1.4738    
  13  norm          2.9048        4.5730        .11920E-02   -1.5367    
  14  norm          .10000E-03    4.0855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4739        1.6689        .14504E-03   -1.5465    
  16  Normalizat    1.4476        .25261        .41154E-03   -.79262    
  17  Prefactor     .82778        .71499E-01    .15311E-03   -.98712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63787e-10
Minuit parameter uncertainties:
  1  0.818354
  2  1.85446e-05
  3  15.614
  4  2.51593e-07
  5  7.30723
  6  1.32428e-06
  7  3.95938
  8  15.0455
  9  5.63728
  10  1.48013e-06
  11  1.95186
  12  13.3639
  13  4.57352
  14  3.13744e-08
  15  1.66892
  16  0.252825
  17  0.0715068
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  4.282e+00  3.959e+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.278e-01  7.151e-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.448e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.95e-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) = 11789.9248135
delta logL = 0.0265956298681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11789.921802
delta logL = 0.0296070685727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9850       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8394       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82768       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=   11789.92     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9818        145.87        .50511E-02    .95647E-04
   2  alpha         1.8382        3.1386        .43133       -.14966E-04
   3  Normalizat    1.4537        .22660        .92776E-01    .58175E-04
   4  Prefactor     .82769        .42693E-01    .44076E-01   -.67916E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9818
  alpha      = 1.83818
  Normalizat = 1.45374
  Prefactor  = 0.827692
 **********
 **   18 **HESSE 
 **********

 FCN=   11789.92     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9818        3.8667        .18078E-03   -1.5309    
   2  alpha         1.8382        .78786        .23106E-01   -.26792    
   3  Normalizat    1.4537        .24028        .41089E-03   -.79087    
   4  Prefactor     .82769        .70124E-01    .15314E-03   -.98716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19563e-10
Minuit parameter uncertainties:
  1  3.86691
  2  0.802606
  3  0.240467
  4  0.0701315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453954': 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) = 11789.9218007
delta logL = 0.0296084328875

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  3.982e+00  3.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.838e+00  8.026e-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.277e-01  7.013e-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.454e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.84 +/- 0.80
Photon Flux (Free Index): 2.72e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.05e-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/453954/cmap_HighResolution_247881601_248140801_4FGL_J2244.2+4057_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='2.24e-05', photon_flux_error='3.37e-08', dlogl='2.96e-02', energy_flux='2.11e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-28 19:45:00.821329', photon_index_error2='0.80', photon_index2='1.84', ts='4.91', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.45', time_epoch_completed='1632883500.82', return_code='0', job_id='453954', GAL2='0.83', EG2='1.45', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.29e-08', ts2='4.97', photon_index='2.03' WHERE bin_id='33' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 453954: <4FGL_J2244.2+4057_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin33 341.061 40.9597 247881601 248140801 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 :                                   737.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

