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


Performing analysis on: 4FGL_J1253.2+5301_daily_bin55
RA = 193.307, Dec = 53.0173
tmin = 253584001, tmax = 253843201
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='953525', job_status='RUN', time_executed='2021-09-06 07:23:58.466105', time_epoch_executed='1630938238.47' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953525/ft1_4FGL_J1253.2+5301_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953525/ft1_4FGL_J1253.2+5301_daily_bin55.fits outfile=/scratch/kocevski/953525/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin55.fits ra=193.307 dec=53.0173 rad=12.0 tmin=253584001.0 tmax=253843201.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.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.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/953525/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/953525/ltcube_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.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/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits
.....................!
real 12.88
user 12.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/953525/ltcube_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits outfile=/scratch/kocevski/953525/expmap_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.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/953525/ltcube_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits
.....................!
real 190.53
user 184.70
sys 5.33

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
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits outfile=/scratch/kocevski/953525/cmap_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.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=193.307 yref=53.0173 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits outfile=/scratch/kocevski/953525/cmap_HighResolution_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.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=193.307 yref=53.0173 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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953525/Model_4FGL_J1253.2+5301_daily_bin55.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits.....................!
real 43.01
user 40.81
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits', '/scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits', expMap='/scratch/kocevski/953525/expmap_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits', expCube='/scratch/kocevski/953525/ltcube_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953525/Model_4FGL_J1253.2+5301_daily_bin55.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953525/ft1_filtered_4FGL_J1253.2+5301_daily_bin55.fits
Spacecraft file(s): /scratch/kocevski/953525/ft2_4FGL_J1253.2+5301_daily_bin55.fits
Exposure map: /scratch/kocevski/953525/expmap_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits
Exposure cube: /scratch/kocevski/953525/ltcube_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953525/Model_4FGL_J1253.2+5301_daily_bin55.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) = 4327.32007343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37494       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4887       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.866       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95825E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .33145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1622       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13338E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0457       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0163       1.0000         .10000E-03   10000.    
    26 'norm      '    .10589E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85579       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1513       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   4327.276     FROM MIGRAD    STATUS=CONVERGED   1374 CALLS     4536 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37702        5.6149        .20938E-02    .35705E-03
   2  norm          2.5165        7.2984        .23716E-03    .41610E-04
   3  Prefactor     .10000E-03    6.8504        .16810E-02** at limit **
   4  Prefactor     11.021        13.689        .12064E-03   -.99984E-04
   5  Prefactor     .10000E-03    16.509        .18142E-02** at limit **
   6  norm          2.4888        2.4391        .96926E-04   -.11729E-04
   7  Prefactor     .10000E-03    30.305        .18142E-02** at limit **
   8  norm          11.820        9.6479        .11653E-03   -.21640E-03
   9  Prefactor     .10000E-03    35.537        .18142E-02** at limit **
  10  Prefactor     .10015E-03    23.534        .32955E-02** at limit **
  11  norm          4.6372        2.9589        .87270E-04    .82630E-03
  12  Prefactor     16.871        22.265        .97524E-04   -.49660E-04
  13  norm          .10000E-03    .89887        .60754E-03** at limit **
  14  Prefactor     .10035E-03    61.520        .15288    ** at limit **
  15  Prefactor     .10000E-03    16.994        .18142E-02** at limit **
  16  Prefactor     .10000E-03    18.122        .18142E-02** at limit **
  17  norm          .10000E-03    5.0568        .14444E-02** at limit **
  18  norm          .33157        3.0470        .22357E-03    .58325E-04
  19  Prefactor     .10000E-03    10.521        .18142E-02** at limit **
  20  Prefactor     27.685        36.078        .76158E-04    .79714E-04
  21  Prefactor     .10000E-03    9.9297        .18142E-02** at limit **
  22  norm          2.1578        8.3816        .12398E-02   -.16526E-03
  23  Prefactor     .10000E-03    99.702        .18142E-02** at limit **
  24  Prefactor     5.9632        186.36        .16329E-03   -.13855E-04
  25  norm          2.0164        1.6979        .76446E-04   -.68409E-04
  26  norm          .10000E-03    51.742        .18142E-02** at limit **
  27  norm          .10000E-03    3.0803        .11226E-02** at limit **
  28  Prefactor     .10000E-03    44.242        .18142E-02** at limit **
  29  Normalizat    .85588        .23042        .23825E-03   -.20590E-03
  30  Prefactor     1.1511        .27097        .25959E-03    .12482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.377021
  norm       = 2.51646
  Prefactor  = 0.0001
  Prefactor  = 11.0207
  Prefactor  = 0.0001
  norm       = 2.48882
  Prefactor  = 0.0001
  norm       = 11.82
  Prefactor  = 0.000100001
  Prefactor  = 0.000100149
  norm       = 4.63724
  Prefactor  = 16.8709
  norm       = 0.0001
  Prefactor  = 0.000100355
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.331575
  Prefactor  = 0.0001
  Prefactor  = 27.6851
  Prefactor  = 0.0001
  norm       = 2.15777
  Prefactor  = 0.0001
  Prefactor  = 5.96324
  norm       = 2.01644
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.855879
  Prefactor  = 1.15107
 **********
 **   18 **HESSE 
 **********

 FCN=   4327.276     FROM HESSE     STATUS=OK           570 CALLS     5106 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37702        5.6000        .83752E-04   -1.5585    
   2  norm          2.5165        7.2921        .94863E-05   -1.5391    
   3  Prefactor     .10000E-03    6.8505        .33620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.021        13.678        .48256E-05   -1.5044    
   5  Prefactor     .10000E-03    16.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4888        2.4391        .38771E-05   -1.5392    
   7  Prefactor     .10000E-03    30.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.820        9.6468        .46610E-05   -1.5020    
   9  Prefactor     .10000E-03    35.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10015E-03    23.704        .65910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6372        2.9547        .17454E-04   -1.5277    
  12  Prefactor     16.871        22.264        .39009E-05   -1.4886    
  13  norm          .10000E-03    .89889        .12151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10035E-03    61.189        .15350       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0569        .28888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .33157        3.0465        .89429E-05   -1.5593    
  19  Prefactor     .10000E-03    10.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.685        35.647        .30463E-05   -1.4655    
  21  Prefactor     .10000E-03    9.9298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1578        8.2744        .49593E-04   -1.5414    
  23  Prefactor     .10000E-03    99.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.9632        186.44        .65318E-05   -1.5220    
  25  norm          2.0164        1.6979        .30578E-05   -1.5424    
  26  norm          .10000E-03    51.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.0807        .22453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    44.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85588        .23042        .47651E-04   -.98028    
  30  Prefactor     1.1511        .27122        .10384E-04   -.87850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31792e-09
Minuit parameter uncertainties:
  1  2.90602
  2  7.29463
  3  1.94426e-05
  4  13.6815
  5  3.96057e-05
  6  2.43915
  7  4.8393e-05
  8  9.64811
  9  0.000383037
  10  0.00375865
  11  2.95479
  12  22.2746
  13  7.54287e-06
  14  0.00932736
  15  5.9229e-06
  16  0.000203348
  17  7.92476e-06
  18  2.00996
  19  3.90485e-05
  20  35.6745
  21  1.42242e-06
  22  8.27877
  23  9.7488e-05
  24  66.9162
  25  1.69789
  26  0.000317473
  27  4.92614e-06
  28  5.70388e-05
  29  0.230681
  30  0.271548
Done.

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

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  7.543e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.151e+00  2.715e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.559e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.307 53.017
Photon Flux Upper Limit: 4.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953525/likelihoodResults_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.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) = 4327.28125835
delta logL = -0.00499083837894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4327.2762677
delta logL = -1.89020283869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9316       1.0000          .0000       5.0000    
     3 'Normalizat'    .85601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   4327.276     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      221 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0246        .60754E-03** at limit **
   2  alpha         1.9393        3.7421        .17033       -.99782E-06
   3  Normalizat    .85588        .21526        .23825E-03    .14602E-04
   4  Prefactor     1.1511        .26904        .25959E-03    .28905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.93933
  Normalizat = 0.855882
  Prefactor  = 1.15107
 **********
 **   18 **HESSE 
 **********

 FCN=   4327.276     FROM HESSE     STATUS=OK            23 CALLS      244 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .89897        .12151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9393        3.1349        .68133E-02   -.22619    
   3  Normalizat    .85588        .21551        .95300E-05   -.98028    
   4  Prefactor     1.1511        .26936        .10384E-04   -.87851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32925e-09
Minuit parameter uncertainties:
  1  9.74402e-05
  2  142.872
  3  0.215723
  4  0.269677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953525': 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) = 4327.2762675
delta logL = 3.5379343899e-09

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  1.000e-04  9.744e-05  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.939e+00  1.429e+02  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.151e+00  2.697e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  8.559e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.307 53.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953525/cmap_HighResolution_253584001_253843201_4FGL_J1253.2+5301_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-06 07:36:38.101196', job_id='953525', GAL2='1.15', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630938998.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='55' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 953525: <4FGL_J1253.2+5301_daily_bin55> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin55> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:20:19 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:20:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:20:20 2021
Terminated at Mon Sep  6 07:36:38 2021
Results reported at Mon Sep  6 07:36:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin55 193.307 53.0173 253584001 253843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

