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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1377
RA = 193.637, Dec = 22.1808
tmin = 596246401, tmax = 596505601
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='992770', job_status='RUN', time_executed='2021-09-06 09:20:38.002312', time_epoch_executed='1630945238.0' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992770/ft1_4FGL_J1254.5+2210_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992770/ft1_4FGL_J1254.5+2210_daily_bin1377.fits outfile=/scratch/kocevski/992770/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1377.fits ra=193.637 dec=22.1808 rad=12.0 tmin=596246401.0 tmax=596505601.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 4.89
user 4.61
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.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/992770/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1377.fits evtable="EVENTS" outfile="/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.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/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/992770/ltcube_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.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/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits
.....................!
real 11.68
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/992770/ltcube_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits outfile=/scratch/kocevski/992770/expmap_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.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/992770/ltcube_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits
.....................!
real 191.21
user 185.45
sys 5.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
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits outfile=/scratch/kocevski/992770/cmap_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.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.637 yref=22.1808 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits outfile=/scratch/kocevski/992770/cmap_HighResolution_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.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.637 yref=22.1808 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992770/Model_4FGL_J1254.5+2210_daily_bin1377.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/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits.....................!
real 59.71
user 58.32
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits', '/scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits', expMap='/scratch/kocevski/992770/expmap_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits', expCube='/scratch/kocevski/992770/ltcube_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992770/Model_4FGL_J1254.5+2210_daily_bin1377.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992770/ft1_filtered_4FGL_J1254.5+2210_daily_bin1377.fits
Spacecraft file(s): /scratch/kocevski/992770/ft2_4FGL_J1254.5+2210_daily_bin1377.fits
Exposure map: /scratch/kocevski/992770/expmap_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits
Exposure cube: /scratch/kocevski/992770/ltcube_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992770/Model_4FGL_J1254.5+2210_daily_bin1377.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) = 7028.08425958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18244E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24000       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17066E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.606       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3881       1.0000         .10000E-03   10000.    
    20 'norm      '    32.990       1.0000         .10000E-03   10000.    
    21 'norm      '    4.3950       1.0000         .10000E-03   10000.    
    22 'norm      '    34.849       1.0000         .10000E-03   10000.    
    23 'norm      '    6.3411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.043       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8747       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8588       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4379       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7028.079     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3723 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4820        .31879E-06** at limit **
   2  Prefactor     .10000E-03    .68495        .96154E-07** at limit **
   3  norm          7.1618        3.7799       -.63764E-07   -.30380E-03
   4  Prefactor     .10000E-03    1.6059        .18319E-06** at limit **
   5  Prefactor     1.3383        1.5978        .47739E-07   -.75828E-04
   6  Prefactor     .10000E-03    2.6226        .20090E-06** at limit **
   7  norm          .24001        .19371        .70784E-07    .22275E-03
   8  norm          5.8283        3.5954       -.38415E-07    .17813E-05
   9  Prefactor     .10060E-03    9.1845        .12460E-05** at limit **
  10  Prefactor     .10000E-03    3.7304       -.60098E-07** at limit **
  11  Prefactor     .10000E-03    33.621        .69657E-06** at limit **
  12  Prefactor     24.243        91.036       -.21364E-05   -.43868E-04
  13  Prefactor     .10000E-03    12.972        .71966E-07** at limit **
  14  Prefactor     .10000E-03    1.9929        .99074E-07** at limit **
  15  Prefactor     .10000E-03    5.5631        .23809E-06** at limit **
  16  norm          .10000E-03    1.3916       -.10603E-05** at limit **
  17  Prefactor     5.8334        14.362        .46087E-06   -.11156E-04
  18  Prefactor     30.606        30.001        .35812E-07    .19389E-04
  19  norm          4.3879        3.3418       -.11740E-07   -.39302E-04
  20  norm          32.986        10.805       -.42563E-06    .25461E-04
  21  norm          4.4010        16.049        .19515E-05    .66885E-05
  22  norm          34.848        22.898       -.47531E-07   -.32972E-05
  23  norm          6.3409        5.7473       -.77221E-06   -.31141E-04
  24  Prefactor     19.043        22.704        .12955E-06   -.40279E-05
  25  norm          6.8738        8.8163        .38214E-05   -.29639E-04
  26  Prefactor     .10000E-03    11.156        .35030E-06** at limit **
  27  Prefactor     6.8586        12.348        .55088E-07   -.87692E-06
  28  Normalizat    1.4381        .19466        .14905E-05   -.32004E-03
  29  Prefactor     .84544        .19013       -.34932E-05   -.37832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16179
  Prefactor  = 0.0001
  Prefactor  = 1.33834
  Prefactor  = 0.0001
  norm       = 0.240011
  norm       = 5.82834
  Prefactor  = 0.000100603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.83336
  Prefactor  = 30.6062
  norm       = 4.38789
  norm       = 32.9865
  norm       = 4.401
  norm       = 34.8482
  norm       = 6.34087
  Prefactor  = 19.0426
  norm       = 6.87381
  Prefactor  = 0.0001
  Prefactor  = 6.85862
  Normalizat = 1.43808
  Prefactor  = 0.845441
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.079     FROM HESSE     STATUS=OK           565 CALLS     4288 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5228        .19933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .68757        .67756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1618        3.3701        .10129E-03   -1.5173    
   4  Prefactor     .10000E-03    4.8034        .18245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3383        1.5775        .11029E-03   -1.5477    
   6  Prefactor     .10000E-03    2.6406        .13257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24001        .18554        .31763E-03   -1.5610    
   8  norm          5.8283        3.5958        .12110E-03   -1.5225    
   9  Prefactor     .10060E-03    11.639        .75241E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7451        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.243        91.475        .81019E-04   -1.4723    
  13  Prefactor     .10000E-03    12.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9956        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3885        .96363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8334        14.365        .16625E-03   -1.5225    
  18  Prefactor     30.606        30.017        .72424E-04   -1.4601    
  19  norm          4.3879        3.3449        .12922E-03   -1.5289    
  20  norm          32.986        10.579        .69764E-04   -1.4559    
  21  norm          4.4010        15.704        .19211E-03   -1.5288    
  22  norm          34.848        22.889        .67884E-04   -1.4527    
  23  norm          6.3409        5.7400        .15940E-03   -1.5204    
  24  Prefactor     19.043        22.710        .91782E-04   -1.4835    
  25  norm          6.8738        8.9202        .76509E-03   -1.5184    
  26  Prefactor     .10000E-03    11.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.8586        12.343        .15320E-03   -1.5184    
  28  Normalizat    1.4381        .22900        .24731E-03   -.79533    
  29  Prefactor     .84544        .22000        .30990E-03   -.98074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34567e-10
Minuit parameter uncertainties:
  1  1.25545e-06
  2  9.57757e-08
  3  3.37022
  4  2.61698e-05
  5  1.5775
  6  1.52278e-06
  7  0.185541
  8  3.59597
  9  0.00529987
  10  2.28074e-06
  11  3.73156e-05
  12  92.0105
  13  8.79089e-07
  14  7.88297e-07
  15  1.03549e-06
  16  3.44889e-06
  17  14.3734
  18  30.0313
  19  3.34507
  20  10.5799
  21  15.7188
  22  22.8948
  23  5.7405
  24  22.7207
  25  8.9219
  26  3.96363e-06
  27  12.3472
  28  0.229167
  29  0.220226
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.883e-07  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.454e-01  2.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.438e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992770/likelihoodResults_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.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): 102
logL (Free Index) = 7028.08119116
delta logL = -0.00230693047251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7028.07888387
delta logL = 3.59782461601e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0702       1.0000          .0000       10.000    
     3 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84545       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7028.079     FROM MIGRAD    STATUS=FAILED        86 CALLS      241 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    26.201        .11729E-02** at limit **
   2  Index         2.0218        5.9035        .50000        .67383E-04
   3  Normalizat    1.4381        .16889E-01    .24730E-03    .74556E-04
   4  Prefactor     .84544        .16818E-01    .30990E-03    .46444E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7028.079     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      367 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    26.201        .24889E-03** at limit **
   2  Index         2.0218        5.9035        .46136E-03    .67383E-04
   3  Normalizat    1.4381        .16889E-01    .27983E-05    .74556E-04
   4  Prefactor     .84544        .16818E-01    .31117E-05    .46444E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7028.079     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      414 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.580        .23458E-02** at limit **
   2  Index         1.6372        7.7064        .50000        .20434E-06
   3  Normalizat    1.4381        .16749E-01    .49460E-04   -.14568E-02
   4  Prefactor     .84544        .16679E-01    .12396E-04   -.11519E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.63724
  Normalizat = 1.43808
  Prefactor  = 0.845436
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.079     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    135.09        .46916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6372        6.4994        .50000       -.73765    
   3  Normalizat    1.4381        .37817E-01    .98921E-05   -.79533    
   4  Prefactor     .84544        .37653E-01    .24792E-05   -.98075    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38869e-10
Minuit parameter uncertainties:
  1  0.000141703
  2  520.111
  3  0.0378174
  4  0.037654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992770': 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): 102
logL (Free Index) = 7028.07887994
delta logL = 4.28929706686e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.417e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.637e+00  5.201e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.454e-01  3.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.438e+00  3.782e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/992770/cmap_HighResolution_596246401_596505601_4FGL_J1254.5+2210_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-06 09:35:31.387921', job_id='992770', GAL2='0.85', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630946131.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1377' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 992770: <4FGL_J1254.5+2210_daily_bin1377> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1377> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:29 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:20:30 2021
Terminated at Mon Sep  6 09:35:31 2021
Results reported at Mon Sep  6 09:35:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1377 193.637 22.1808 596246401 596505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   888.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

