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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1044
RA = 341.061, Dec = 40.9597
tmin = 509932801, tmax = 510192001
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='458571', job_status='RUN', time_executed='2021-09-28 19:48:02.074082', time_epoch_executed='1632883682.07' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458571/ft1_4FGL_J2244.2+4057_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458571/ft2_4FGL_J2244.2+4057_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458571/ft1_4FGL_J2244.2+4057_daily_bin1044.fits outfile=/scratch/kocevski/458571/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1044.fits ra=341.061 dec=40.9597 rad=12.0 tmin=509932801.0 tmax=510192001.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.51
user 3.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458571/ft1_filtered_4FGL_J2244.2+4057_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/458571/ft2_4FGL_J2244.2+4057_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/458571/ltcube_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.fits outfile=/scratch/kocevski/458571/expmap_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.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/458571/ltcube_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.fits
.....................!
real 190.33
user 185.46
sys 4.51

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/458571/ft1_filtered_4FGL_J2244.2+4057_daily_bin1044.fits scfile=/scratch/kocevski/458571/ft2_4FGL_J2244.2+4057_daily_bin1044.fits outfile=/scratch/kocevski/458571/cmap_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458571/ft1_filtered_4FGL_J2244.2+4057_daily_bin1044.fits scfile=/scratch/kocevski/458571/ft2_4FGL_J2244.2+4057_daily_bin1044.fits outfile=/scratch/kocevski/458571/cmap_HighResolution_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6614       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19763E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3075       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3054       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89090       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=   12288.01     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1904 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6620        .80148       -.39372E-06    .34219E-03
   2  Prefactor     8.5586        16.957        .27466E-05    .31102E-03
   3  Prefactor     .10025E-03    10.659        .58650E-07** at limit **
   4  Prefactor     .10000E-03    36.806       -.47733E-05** at limit **
   5  Prefactor     .41650        5.9340        .30656E-05   -.12289E-03
   6  Prefactor     .10000E-03    4.7943       -.10554E-07** at limit **
   7  norm          13.812        4.7699       -.39095E-06   -.37820E-03
   8  Prefactor     .10000E-03    13.235       -.10870E-06** at limit **
   9  Prefactor     5.6462        5.9864        .12599E-05    .16032E-04
  10  Prefactor     .10000E-03    21.454        .11560E-05** at limit **
  11  norm          2.3074        1.6072        .20122E-06   -.83486E-04
  12  Prefactor     .10000E-03    6.6039        .66230E-07** at limit **
  13  norm          .10000E-03    1.8444        .19715E-07** at limit **
  14  norm          .10000E-03    4.9257        .88798E-07** at limit **
  15  norm          1.3050        1.5830        .14151E-06    .94553E-05
  16  Normalizat    1.1737        .20369       -.11515E-05   -.85975E-04
  17  Prefactor     .89094        .60405E-01   -.74066E-06   -.99923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66201
  Prefactor  = 8.55859
  Prefactor  = 0.000100254
  Prefactor  = 0.0001
  Prefactor  = 0.416497
  Prefactor  = 0.0001
  norm       = 13.8117
  Prefactor  = 0.0001
  Prefactor  = 5.64617
  Prefactor  = 0.0001
  norm       = 2.3074
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.305
  Normalizat = 1.17371
  Prefactor  = 0.890939
 **********
 **   18 **HESSE 
 **********

 FCN=   12288.01     FROM HESSE     STATUS=OK           233 CALLS     2137 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6620        .80061        .50716E-04   -1.5382    
   2  Prefactor     8.5586        21.629        .13678E-03   -1.5123    
   3  Prefactor     .10025E-03    18.419        .85601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .41650        6.1881        .43702E-03   -1.5579    
   6  Prefactor     .10000E-03    4.7972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.812        4.7178        .10779E-03   -1.4965    
   8  Prefactor     .10000E-03    13.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6462        5.9707        .16901E-03   -1.5233    
  10  Prefactor     .10000E-03    21.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3074        1.6073        .11061E-03   -1.5404    
  12  Prefactor     .10000E-03    6.7201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8505        .14700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3050        1.5653        .14944E-03   -1.5479    
  16  Normalizat    1.1737        .22510        .42524E-03   -.87419    
  17  Prefactor     .89094        .66731E-01    .14421E-03   -.96458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12801e-10
Minuit parameter uncertainties:
  1  0.800609
  2  21.6487
  3  0.00433068
  4  0.000134738
  5  3.21081
  6  1.7736e-06
  7  4.71794
  8  5.12517e-06
  9  5.97134
  10  4.52033e-05
  11  1.60735
  12  1.28573e-05
  13  1.08033e-06
  14  7.11272e-06
  15  1.56533
  16  0.225289
  17  0.0667374
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.381e+01  4.718e+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.909e-01  6.674e-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.174e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.74
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.02e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 2.32e-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) = 12287.9598916
delta logL = 0.0537733562651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12287.9531913
delta logL = 0.0604736515761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.289       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9272       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89008       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=   12287.95     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.289        4.8174        .10596E-03   -.37745E-03
   2  alpha         1.9270        .28447        .10730E-01   -.75174E-04
   3  Normalizat    1.1822        .21905        .42400E-03    .26170E-04
   4  Prefactor     .89006        .65840E-01    .14429E-03    .78473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2886
  alpha      = 1.92701
  Normalizat = 1.18215
  Prefactor  = 0.890063
 **********
 **   18 **HESSE 
 **********

 FCN=   12287.95     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.289        4.7880        .42384E-05   -1.4952    
   2  alpha         1.9270        .28265        .42921E-03   -.23125    
   3  Normalizat    1.1822        .21911        .16960E-04   -.87156    
   4  Prefactor     .89006        .65868E-01    .57718E-05   -.96489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01247e-10
Minuit parameter uncertainties:
  1  4.78817
  2  0.283289
  3  0.219279
  4  0.0658735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458571': 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) = 12287.9531911
delta logL = 0.0604738744551

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.429e+01  4.788e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.927e+00  2.833e-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.901e-01  6.587e-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.182e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.88
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.93 +/- 0.28
Photon Flux (Free Index): 1.08e-07 +/- 4.51e-08
Energy Flux (Free Index): 7.45e-05 +/- 3.17e-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/458571/cmap_HighResolution_509932801_510192001_4FGL_J2244.2+4057_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='7.45e-05', photon_flux_error='4.02e-08', dlogl='6.05e-02', energy_flux='6.80e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-28 20:01:57.986963', photon_index_error2='0.28', photon_index2='1.93', ts='32.74', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='1.17', time_epoch_completed='1632884517.99', return_code='0', job_id='458571', GAL2='0.89', EG2='1.18', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='4.51e-08', ts2='32.88', photon_index='2.03' WHERE bin_id='1044' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:01:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 458571: <4FGL_J2244.2+4057_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1044 341.061 40.9597 509932801 510192001 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 :                                   835.00 sec.
    Max Memory :                                 1245 MB
    Average Memory :                             302.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

