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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1035
RA = 341.061, Dec = 40.9597
tmin = 507600001, tmax = 507859201
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='458558', job_status='RUN', time_executed='2021-09-28 19:47:57.038125', time_epoch_executed='1632883677.04' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458558/ft1_4FGL_J2244.2+4057_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458558/ft1_4FGL_J2244.2+4057_daily_bin1035.fits outfile=/scratch/kocevski/458558/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1035.fits ra=341.061 dec=40.9597 rad=12.0 tmin=507600001.0 tmax=507859201.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.58
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.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/458558/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/458558/ft1_filtered_4FGL_J2244.2+4057_daily_bin1035.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/458558/ft1_filtered_4FGL_J2244.2+4057_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/458558/ltcube_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.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/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits
.....................!
real 11.94
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458558/ft1_filtered_4FGL_J2244.2+4057_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/458558/ltcube_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.fits outfile=/scratch/kocevski/458558/expmap_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.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/458558/ltcube_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.fits
.....................!
real 190.28
user 185.06
sys 4.82

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/458558/ft1_filtered_4FGL_J2244.2+4057_daily_bin1035.fits scfile=/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits outfile=/scratch/kocevski/458558/cmap_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458558/ft1_filtered_4FGL_J2244.2+4057_daily_bin1035.fits scfile=/scratch/kocevski/458558/ft2_4FGL_J2244.2+4057_daily_bin1035.fits outfile=/scratch/kocevski/458558/cmap_HighResolution_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11088       1.0000         .10000E-03   10000.    
     7 'norm      '    19.024       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.0072       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0057       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5041       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .81805       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=   12081.53     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1412 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6054        .74449       -.37700E-07   -.10777E-02
   2  Prefactor     .10000E-03    13.748        .41991E-06** at limit **
   3  Prefactor     .10003E-03    8.0920        .75786E-06** at limit **
   4  Prefactor     .10000E-03    32.162       -.12973E-04** at limit **
   5  Prefactor     2.1507        4.6000       -.22383E-05   -.63065E-03
   6  Prefactor     .10002E-03    9.4998       -.87659E-07** at limit **
   7  norm          19.019        5.8214        .98894E-06   -.37843E-03
   8  Prefactor     .10000E-03    17.225       -.82684E-06** at limit **
   9  Prefactor     .10000E-03    6.4353       -.25980E-07** at limit **
  10  Prefactor     .10000E-03    29.141        .10839E-04** at limit **
  11  norm          1.7600        1.2930       -.65737E-07   -.64222E-03
  12  Prefactor     .10000E-03    6.2035       -.11642E-06** at limit **
  13  norm          .10000E-03    4.3677        .10105E-06** at limit **
  14  norm          9.0001        7.5040       -.73944E-07    .30751E-04
  15  norm          3.0059        2.5568       -.91283E-07   -.61819E-03
  16  Normalizat    1.5042        .21946       -.31842E-06   -.73443E-04
  17  Prefactor     .81805        .61314E-01    .40613E-07   -.22805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60544
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.000100004
  Prefactor  = 2.1507
  Prefactor  = 0.00010002
  norm       = 19.0192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.75999
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.00012
  norm       = 3.00589
  Normalizat = 1.50421
  Prefactor  = 0.818054
 **********
 **   18 **HESSE 
 **********

 FCN=   12081.53     FROM HESSE     STATUS=OK           231 CALLS     1643 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6054        .72252        .60249E-04   -1.5455    
   2  Prefactor     .10000E-03    13.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    47.861        .57818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1507        4.8013        .28082E-03   -1.5415    
   6  Prefactor     .10002E-03    10.178        .12394       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          19.019        5.8699        .91828E-04   -1.4835    
   8  Prefactor     .10000E-03    17.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7600        1.2908        .10306E-03   -1.5443    
  12  Prefactor     .10000E-03    6.2425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.0001        7.5032        .13355E-03   -1.5108    
  15  norm          3.0059        2.5568        .15721E-03   -1.5361    
  16  Normalizat    1.5042        .25117        .41053E-03   -.77660    
  17  Prefactor     .81805        .70575E-01    .15180E-03   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4627e-09
Minuit parameter uncertainties:
  1  0.722525
  2  3.00315e-05
  3  0.00255983
  4  0.000714073
  5  4.80221
  6  0.000892734
  7  5.87004
  8  1.65531e-05
  9  3.46307e-05
  10  0.000610077
  11  1.29082
  12  4.11102e-06
  13  7.45402e-09
  14  7.50394
  15  2.55686
  16  0.251383
  17  0.0705833
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.902e+01  5.870e+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.181e-01  7.058e-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.504e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.08
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 5.00e-08
Energy Flux (Fixed Index): 9.37e-05 +/- 2.89e-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) = 12080.9988328
delta logL = 0.531081131974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12080.9852014
delta logL = 0.544712543388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.888       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3063       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82396       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=   12080.99     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.888        5.6306        .97460E-04    .57158E-04
   2  alpha         2.3064        .27377        .83530E-02    .92120E-04
   3  Normalizat    1.4561        .25100        .41564E-03    .45678E-04
   4  Prefactor     .82390        .70155E-01    .15123E-03    .16794E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8879
  alpha      = 2.30639
  Normalizat = 1.45609
  Prefactor  = 0.8239
 **********
 **   18 **HESSE 
 **********

 FCN=   12080.99     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.888        5.5027        .38984E-05   -1.4886    
   2  alpha         2.3064        .26735        .33412E-03   -.77520E-01
   3  Normalizat    1.4561        .25096        .16626E-04   -.79020    
   4  Prefactor     .82390        .70172E-01    .30246E-04   -.98853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84943e-11
Minuit parameter uncertainties:
  1  5.5029
  2  0.267862
  3  0.251177
  4  0.0701795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458558': 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) = 12080.9852008
delta logL = 0.544713064042

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.689e+01  5.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.306e+00  2.679e-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.239e-01  7.018e-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.456e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.27
Ra Dec: 341.061 40.960
Photon Index (Free Index): 2.31 +/- 0.27
Photon Flux (Free Index): 2.11e-07 +/- 7.32e-08
Energy Flux (Free Index): 8.13e-05 +/- 2.40e-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/458558/cmap_HighResolution_507600001_507859201_4FGL_J2244.2+4057_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='8.13e-05', photon_flux_error='5.00e-08', dlogl='5.45e-01', energy_flux='9.37e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-28 20:00:22.364424', photon_index_error2='0.27', photon_index2='2.31', ts='35.08', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.50', time_epoch_completed='1632884422.36', return_code='0', job_id='458558', GAL2='0.82', EG2='1.46', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='7.32e-08', ts2='36.27', photon_index='2.03' WHERE bin_id='1035' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:00:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 458558: <4FGL_J2244.2+4057_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1035 341.061 40.9597 507600001 507859201 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

