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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1056
RA = 341.061, Dec = 40.9597
tmin = 513043201, tmax = 513302401
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='459595', job_status='RUN', time_executed='2021-09-28 19:52:38.781830', time_epoch_executed='1632883958.78' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459595/ft1_4FGL_J2244.2+4057_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459595/ft2_4FGL_J2244.2+4057_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459595/ft1_4FGL_J2244.2+4057_daily_bin1056.fits outfile=/scratch/kocevski/459595/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1056.fits ra=341.061 dec=40.9597 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.45
user 6.14
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459595/ft1_filtered_4FGL_J2244.2+4057_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/459595/ft2_4FGL_J2244.2+4057_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/459595/ltcube_513043201_513302401_4FGL_J2244.2+4057_daily_bin1056.fits outfile=/scratch/kocevski/459595/expmap_513043201_513302401_4FGL_J2244.2+4057_daily_bin1056.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/459595/ltcube_513043201_513302401_4FGL_J2244.2+4057_daily_bin1056.fits
.....................!
real 190.65
user 184.99
sys 5.17

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/459595/ft1_filtered_4FGL_J2244.2+4057_daily_bin1056.fits scfile=/scratch/kocevski/459595/ft2_4FGL_J2244.2+4057_daily_bin1056.fits outfile=/scratch/kocevski/459595/cmap_513043201_513302401_4FGL_J2244.2+4057_daily_bin1056.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.51
user 0.36
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15755E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.524       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3563       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4486       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98534       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98143       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=   8601.405     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1421 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2782        1.2532        .36631E-07   -.39840E-03
   2  Prefactor     .10002E-03    15.092       -.11193E-06** at limit **
   3  Prefactor     .10000E-03    30.928        .44405E-05** at limit **
   4  Prefactor     .10000E-03    26.969       -.13258E-05** at limit **
   5  Prefactor     .10000E-03    2.4972       -.51998E-07** at limit **
   6  Prefactor     .10000E-03    8.6971        .38854E-06** at limit **
   7  norm          11.524        4.8168        .24471E-07   -.75132E-04
   8  Prefactor     .10000E-03    5.0828       -.48527E-07** at limit **
   9  Prefactor     .10000E-03    2.2640        .11681E-06** at limit **
  10  Prefactor     .10000E-03    37.495       -.58650E-05** at limit **
  11  norm          1.6703        1.4006        .11764E-07   -.60522E-03
  12  Prefactor     .10004E-03    7.8850        .45845E-06** at limit **
  13  norm          .10000E-03    5.8199       -.12087E-06** at limit **
  14  norm          5.3564        6.1609        .48037E-05    .41144E-04
  15  norm          2.4490        2.5345       -.16534E-06   -.42279E-03
  16  Normalizat    .98534        .24988       -.55436E-06   -.76453E-04
  17  Prefactor     .98143        .77390E-01   -.17788E-07   -.11589E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.27821
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.67033
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 5.35642
  norm       = 2.44897
  Normalizat = 0.985337
  Prefactor  = 0.981429
 **********
 **   18 **HESSE 
 **********

 FCN=   8601.405     FROM HESSE     STATUS=OK           233 CALLS     1654 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2782        1.2540        .47375E-04   -1.5248    
   2  Prefactor     .10002E-03    16.338        .11861       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5041        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.524        4.8117        .11801E-03   -1.5029    
   8  Prefactor     .10000E-03    5.0836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2782        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6703        1.3879        .96031E-04   -1.5449    
  12  Prefactor     .10004E-03    74.016        .49025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3564        6.1788        .17365E-03   -1.5245    
  15  norm          2.4490        2.5167        .14475E-03   -1.5395    
  16  Normalizat    .98534        .26755        .46102E-03   -.93523    
  17  Prefactor     .98143        .84620E-01    .14573E-03   -.93351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3748e-10
Minuit parameter uncertainties:
  1  1.25403
  2  0.00123202
  3  6.3626e-05
  4  1.46761e-06
  5  1.44686e-07
  6  9.03552e-07
  7  4.81185
  8  2.63091e-07
  9  3.35286e-08
  10  2.73641e-05
  11  1.38792
  12  0.00359451
  13  4.07785e-06
  14  6.17951
  15  2.5168
  16  0.267917
  17  0.084631
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.152e+01  4.812e+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.814e-01  8.463e-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.853e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.07
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 9.82e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 5.68e-05 +/- 2.37e-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) = 8601.29206273
delta logL = 0.112548711633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8601.28742581
delta logL = 0.117185638286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.393       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1961       1.0000          .0000       5.0000    
     3 'Normalizat'    .97410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98268       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=   8601.287     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      278 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.393        5.1950        .11808E-03   -.17985E-03
   2  alpha         2.1962        .36412        .97570E-02   -.51673E-04
   3  Normalizat    .97419        .26351        .46326E-03    .17080E-04
   4  Prefactor     .98267        .83570E-01    .14563E-03    .73070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3929
  alpha      = 2.19623
  Normalizat = 0.974192
  Prefactor  = 0.982672
 **********
 **   18 **HESSE 
 **********

 FCN=   8601.287     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.393        5.0792        .47232E-05   -1.5063    
   2  alpha         2.1962        .35597        .39028E-03   -.12181    
   3  Normalizat    .97419        .26355        .18531E-04   -.93900    
   4  Prefactor     .98267        .83595E-01    .58251E-05   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27581e-11
Minuit parameter uncertainties:
  1  5.07944
  2  0.3572
  3  0.2639
  4  0.0836057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459595': 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) = 8601.28742564
delta logL = 0.117185800491

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.039e+01  5.079e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.196e+00  3.572e-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.827e-01  8.361e-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.742e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.28
Ra Dec: 341.061 40.960
Photon Index (Free Index): 2.20 +/- 0.36
Photon Flux (Free Index): 1.11e-07 +/- 5.21e-08
Energy Flux (Free Index): 4.94e-05 +/- 2.41e-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/459595/cmap_HighResolution_513043201_513302401_4FGL_J2244.2+4057_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.82e-08', energy_flux2='4.94e-05', photon_flux_error='4.10e-08', dlogl='1.17e-01', energy_flux='5.68e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-28 20:03:30.375301', photon_index_error2='0.36', photon_index2='2.20', ts='13.07', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.99', time_epoch_completed='1632884610.38', return_code='0', job_id='459595', GAL2='0.98', EG2='0.97', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='5.21e-08', ts2='13.28', photon_index='2.03' WHERE bin_id='1056' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 459595: <4FGL_J2244.2+4057_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin1056> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:50:11 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:50:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:50:13 2021
Terminated at Tue Sep 28 20:03:30 2021
Results reported at Tue Sep 28 20:03:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1056 341.061 40.9597 513043201 513302401 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 :                                   648.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

