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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin31
RA = 341.061, Dec = 40.9597
tmin = 247363201, tmax = 247622401
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='453952', job_status='RUN', time_executed='2021-09-28 19:32:47.901437', time_epoch_executed='1632882767.9' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453952/ft1_4FGL_J2244.2+4057_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453952/ft1_4FGL_J2244.2+4057_daily_bin31.fits outfile=/scratch/kocevski/453952/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin31.fits ra=341.061 dec=40.9597 rad=12.0 tmin=247363201.0 tmax=247622401.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.44
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.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/453952/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/453952/ltcube_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.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/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits
.....................!
real 12.38
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/453952/ltcube_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits outfile=/scratch/kocevski/453952/expmap_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.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/453952/ltcube_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits
.....................!
real 190.50
user 185.80
sys 4.35

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/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.fits scfile=/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits outfile=/scratch/kocevski/453952/cmap_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.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.37
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.fits', '/scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits', expMap='/scratch/kocevski/453952/expmap_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits', expCube='/scratch/kocevski/453952/ltcube_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453952/Model_4FGL_J2244.2+4057_daily_bin31.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/453952/ft1_filtered_4FGL_J2244.2+4057_daily_bin31.fits
Spacecraft file(s): /scratch/kocevski/453952/ft2_4FGL_J2244.2+4057_daily_bin31.fits
Exposure map: /scratch/kocevski/453952/expmap_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits
Exposure cube: /scratch/kocevski/453952/ltcube_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453952/Model_4FGL_J2244.2+4057_daily_bin31.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10094.1111105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12247E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16608E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58931E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5197       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19044E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.622       1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.756       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5747       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3389       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89477       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=   10094.02     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1456 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2805        .92516        .39425E-07   -.36503E-06
   2  Prefactor     .10000E-03    5.9441        .82733E-07** at limit **
   3  Prefactor     .10000E-03    3.7024        .32180E-08** at limit **
   4  Prefactor     .10000E-03    28.677       -.13433E-05** at limit **
   5  Prefactor     .94538        7.0125        .20250E-05   -.31956E-03
   6  Prefactor     .10089E-03    11.737        .38981E-05** at limit **
   7  norm          1.1004        3.0632       -.60028E-06   -.50207E-03
   8  Prefactor     .10002E-03    80.945       -.68599E-05** at limit **
   9  Prefactor     1.5312        7.1017        .42433E-05    .41486E-03
  10  Prefactor     .10000E-03    10.086        .18086E-06** at limit **
  11  norm          .10000E-03    .49165        .23813E-07** at limit **
  12  Prefactor     20.554        14.338        .11261E-05    .40784E-03
  13  norm          .10000E-03    1.7962       -.20877E-07** at limit **
  14  norm          17.742        10.713        .41632E-06    .23525E-03
  15  norm          4.5766        3.2568       -.12324E-07   -.14287E-04
  16  Normalizat    1.3392        .24305       -.14711E-05   -.14289E-03
  17  Prefactor     .89472        .70050E-01   -.36265E-07   -.36382E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.945382
  Prefactor  = 0.000100889
  norm       = 1.10044
  Prefactor  = 0.000100018
  Prefactor  = 1.5312
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5535
  norm       = 0.0001
  norm       = 17.7418
  norm       = 4.57662
  Normalizat = 1.3392
  Prefactor  = 0.894724
 **********
 **   18 **HESSE 
 **********

 FCN=   10094.02     FROM HESSE     STATUS=OK           227 CALLS     1683 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2805        .92279        .58816E-04   -1.5406    
   2  Prefactor     .10000E-03    5.9461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .94538        9.0079        .50369E-03   -1.5514    
   6  Prefactor     .10089E-03    63.920        .56826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1004        2.7749        .24573E-02   -1.5498    
   8  Prefactor     .10002E-03    85.567        .37934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5312        7.3836        .34663E-03   -1.5460    
  10  Prefactor     .10000E-03    10.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9120        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.554        14.420        .88200E-04   -1.4801    
  13  norm          .10000E-03    1.8006        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.742        10.724        .95049E-04   -1.4865    
  15  norm          4.5766        3.2524        .14560E-03   -1.5280    
  16  Normalizat    1.3392        .26888        .42465E-03   -.82404    
  17  Prefactor     .89472        .78741E-01    .15021E-03   -.96326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45046e-08
Minuit parameter uncertainties:
  1  0.922798
  2  7.88561e-06
  3  1.21842e-06
  4  0.000259769
  5  5.83726
  6  0.0150904
  7  2.77526
  8  0.00249578
  9  6.72593
  10  1.69204e-05
  11  1.79012e-06
  12  14.4226
  13  5.72483e-07
  14  10.7252
  15  3.25251
  16  0.269165
  17  0.0787511
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.100e+00  2.775e+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.947e-01  7.875e-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.339e+00  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453952/likelihoodResults_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.txt

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) = 10093.9551137
delta logL = 0.0697121151934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10093.9540461
delta logL = 0.0707796752486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0419       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5844       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89560       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=   10093.95     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0413        27.420        .41334E-01    .57363E-03
   2  alpha         2.5845        3.7407        .41181       -.24852E-04
   3  Normalizat    1.3297        .36326E-01    .96143E-01    .42851E-03
   4  Prefactor     .89556        .10791E-01    .33978E-01    .12843E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04125
  alpha      = 2.5845
  Normalizat = 1.3297
  Prefactor  = 0.895556
 **********
 **   18 **HESSE 
 **********

 FCN=   10093.95     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0413        2.7587        .19193E-02   -1.5504    
   2  alpha         2.5845        1.6871        .34669E-01    .33804E-01
   3  Normalizat    1.3297        .26314        .42590E-03   -.82684    
   4  Prefactor     .89556        .77884E-01    .15013E-03   -.96297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10966e-09
Minuit parameter uncertainties:
  1  2.75903
  2  1.85216
  3  0.263409
  4  0.0778937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453952': 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) = 10093.9540456
delta logL = 0.0707801546196

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.041e+00  2.759e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.584e+00  1.852e+00  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.956e-01  7.789e-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.330e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 341.061 40.960

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/453952/cmap_HighResolution_247363201_247622401_4FGL_J2244.2+4057_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-28 19:44:57.251937', job_id='453952', GAL2='0.90', fit_tolerance='1e-08', EG2='1.33', EG='1.34', time_epoch_completed='1632883497.25', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.08e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='31' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:44:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 453952: <4FGL_J2244.2+4057_daily_bin31> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin31> 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) <bullet0196>, 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:44:57 2021
Results reported at Tue Sep 28 19:44:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin31 341.061 40.9597 247363201 247622401 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 :                                   728.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             354.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

