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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1569
RA = 193.637, Dec = 22.1808
tmin = 646012801, tmax = 646272001
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='993042', job_status='RUN', time_executed='2021-09-06 09:22:59.318896', time_epoch_executed='1630945379.32' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993042/ft1_4FGL_J1254.5+2210_daily_bin1569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993042/ft1_4FGL_J1254.5+2210_daily_bin1569.fits outfile=/scratch/kocevski/993042/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1569.fits ra=193.637 dec=22.1808 rad=12.0 tmin=646012801.0 tmax=646272001.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.62
user 4.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.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/993042/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1569.fits evtable="EVENTS" outfile="/scratch/kocevski/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits" evtable="EVENTS" scfile=/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits sctable="SC_DATA" outfile=/scratch/kocevski/993042/ltcube_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.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/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits
.....................!
real 12.02
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits evtable="EVENTS" scfile=/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits sctable="SC_DATA" expcube=/scratch/kocevski/993042/ltcube_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits outfile=/scratch/kocevski/993042/expmap_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.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/993042/ltcube_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits
.....................!
real 190.80
user 185.68
sys 4.70

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/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits scfile=/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits outfile=/scratch/kocevski/993042/cmap_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits scfile=/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits outfile=/scratch/kocevski/993042/cmap_HighResolution_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits', '/scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits', expMap='/scratch/kocevski/993042/expmap_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits', expCube='/scratch/kocevski/993042/ltcube_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993042/Model_4FGL_J1254.5+2210_daily_bin1569.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/993042/ft1_filtered_4FGL_J1254.5+2210_daily_bin1569.fits
Spacecraft file(s): /scratch/kocevski/993042/ft2_4FGL_J1254.5+2210_daily_bin1569.fits
Exposure map: /scratch/kocevski/993042/expmap_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits
Exposure cube: /scratch/kocevski/993042/ltcube_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993042/Model_4FGL_J1254.5+2210_daily_bin1569.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) = 5795.56266926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8007       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.600       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55189E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.792       1.0000         .10000E-03   10000.    
    19 'norm      '    .53222       1.0000         .10000E-03   10000.    
    20 'norm      '    21.286       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1581       1.0000         .10000E-03   10000.    
    22 'norm      '    .58242E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.711       1.0000         .10000E-03   10000.    
    25 'norm      '    12.850       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.212       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.797       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2971       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70234       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.

 FCN=   5795.546     FROM MIGRAD    STATUS=CONVERGED   1326 CALLS     4438 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6798        .95275E-03** at limit **
   2  Prefactor     .10000E-03    2.8117        .24550E-03** at limit **
   3  norm          .10000E-03    2.5612        .23423E-03** at limit **
   4  Prefactor     .10000E-03    1.2863        .83513E-03** at limit **
   5  Prefactor     4.3716        2.8078        .97690E-04   -.46783E-04
   6  Prefactor     7.8003        6.6857        .14357E-03   -.48699E-04
   7  norm          .10000E-03    .19056        .50318E-03** at limit **
   8  norm          10.039        5.8463        .12647E-03   -.68949E-04
   9  Prefactor     12.554        10.044        .11306E-03   -.50278E-04
  10  Prefactor     .10000E-03    4.1778        .15183E-02** at limit **
  11  Prefactor     .10000E-03    35.901        .18142E-02** at limit **
  12  Prefactor     72.264        97.575        .23559E-03   -.68766E-04
  13  Prefactor     .10000E-03    13.779        .18142E-02** at limit **
  14  Prefactor     .10000E-03    10.347        .29396E-02** at limit **
  15  Prefactor     .10001E-03    21.497        .36079E-02** at limit **
  16  norm          3.3232        5.6351        .21309E-03   -.24845E-03
  17  Prefactor     .10000E-03    10.052        .18142E-02** at limit **
  18  Prefactor     39.770        38.232        .63543E-04    .18428E-04
  19  norm          .53199        1.7716        .18128E-03   -.16782E-03
  20  norm          21.294        9.5542        .86816E-04    .13933E-03
  21  norm          2.1461        14.734        .14021E-02   -.35782E-04
  22  norm          .10002E-03    15.945        .97180E-01** at limit **
  23  norm          .10000E-03    14.182        .32394E-02** at limit **
  24  Prefactor     18.708        21.925        .92593E-04   -.10191E-04
  25  norm          12.855        9.6317        .11174E-03   -.41285E-03
  26  Prefactor     21.211        18.564        .86967E-04   -.10458E-04
  27  Prefactor     31.796        26.789        .71058E-04   -.24959E-04
  28  Normalizat    1.2969        .22705        .23414E-03   -.42128E-03
  29  Prefactor     .70264        .21659        .30133E-03   -.41742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37164
  Prefactor  = 7.80034
  norm       = 0.0001
  norm       = 10.0388
  Prefactor  = 12.5542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.2643
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100009
  norm       = 3.32321
  Prefactor  = 0.0001
  Prefactor  = 39.7701
  norm       = 0.531993
  norm       = 21.2941
  norm       = 2.14608
  norm       = 0.00010002
  norm       = 0.0001
  Prefactor  = 18.7084
  norm       = 12.8554
  Prefactor  = 21.211
  Prefactor  = 31.7956
  Normalizat = 1.29691
  Prefactor  = 0.70264
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.546     FROM HESSE     STATUS=OK           535 CALLS     4973 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6802        .19055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8118        .49101E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5613        .46845E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2865        .16703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3716        2.8077        .39076E-05   -1.5290    
   6  Prefactor     7.8003        6.6855        .57428E-05   -1.5149    
   7  norm          .10000E-03    .19100        .10064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.039        5.8463        .50587E-05   -1.5074    
   9  Prefactor     12.554        10.044        .45224E-05   -1.4999    
  10  Prefactor     .10000E-03    4.1780        .30366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     72.264        97.570        .94235E-05   -1.4006    
  13  Prefactor     .10000E-03    13.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.425        .58792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    21.763        .72157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3232        5.6335        .85238E-05   -1.5343    
  17  Prefactor     .10000E-03    10.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.770        38.243        .25417E-05   -1.4446    
  19  norm          .53199        1.7715        .72512E-05   -1.5562    
  20  norm          21.294        9.4393        .34727E-05   -1.4785    
  21  norm          2.1461        14.375        .56084E-04   -1.5415    
  22  norm          .10002E-03    16.011        .96813E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.258        .64789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.708        21.929        .37037E-05   -1.4843    
  25  norm          12.855        9.6236        .44698E-05   -1.4991    
  26  Prefactor     21.211        18.564        .34787E-05   -1.4787    
  27  Prefactor     31.796        26.789        .28423E-05   -1.4580    
  28  Normalizat    1.2969        .22720        .46828E-04   -.83659    
  29  Prefactor     .70264        .21675        .60266E-04   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40329e-09
Minuit parameter uncertainties:
  1  6.26269e-06
  2  1.64147e-05
  3  4.72466e-06
  4  1.46177e-06
  5  2.80783
  6  6.68618
  7  3.29116e-06
  8  5.8466
  9  10.0454
  10  2.6672e-06
  11  9.85507e-05
  12  97.7875
  13  5.81897e-06
  14  0.000412739
  15  0.000899794
  16  5.63437
  17  3.65242e-05
  18  38.2662
  19  1.77169
  20  9.43998
  21  11.112
  22  0.00112654
  23  2.33493e-05
  24  21.9381
  25  9.62475
  26  18.5691
  27  26.7995
  28  0.227377
  29  0.217012
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.127e-04  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:  7.026e-01  2.170e-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.297e+00  2.274e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993042/likelihoodResults_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.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) = 5795.54597144
delta logL = -0.000458550077383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5795.54551433
delta logL = -1.43987017509e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12075E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0972       1.0000          .0000       10.000    
     3 'Normalizat'    1.2971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70247       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=   5795.546     FROM MIGRAD    STATUS=FAILED        94 CALLS      260 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    1698.4        .29236E-02** at limit **
   2  Index         2.2480        6.0967        .10103       -.17020E-05
   3  Normalizat    1.2969        .84501E-01    .23414E-03    .57383E-04
   4  Prefactor     .70264        .83058E-01    .30134E-03    .39463E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5795.546     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      424 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    1698.4        .55919E-03** at limit **
   2  Index         2.2480        6.0967        .20799E-04   -.17020E-05
   3  Normalizat    1.2969        .84501E-01    .91912E-06    .57383E-04
   4  Prefactor     .70264        .83058E-01    .60134E-06    .39463E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5795.546     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      471 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.174        .58472E-03** at limit **
   2  Index         2.3156        6.1494        .40413E-01    .14066E-08
   3  Normalizat    1.2969        .21797        .46827E-04   -.38359E-04
   4  Prefactor     .70264        .21386        .12054E-04   -.34520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31556
  Normalizat = 1.29691
  Prefactor  = 0.702642
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.546     FROM HESSE     STATUS=OK            23 CALLS      494 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.799        .11694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3156        6.5460        .16165E-02   -.56674    
   3  Normalizat    1.2969        .21815        .93654E-05   -.83659    
   4  Prefactor     .70264        .21408        .24107E-05   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95295e-12
Minuit parameter uncertainties:
  1  4.57967e-06
  2  421.332
  3  0.2183
  4  0.214334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993042': 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) = 5795.54551272
delta logL = 1.65261553775e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.580e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.316e+00  4.213e+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:  7.026e-01  2.143e-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.297e+00  2.183e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/993042/cmap_HighResolution_646012801_646272001_4FGL_J1254.5+2210_daily_bin1569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-06 09:36:42.888360', job_id='993042', GAL2='0.70', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630946202.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1569' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 993042: <4FGL_J1254.5+2210_daily_bin1569> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1569> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:50 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:51 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:51 2021
Terminated at Mon Sep  6 09:36:43 2021
Results reported at Mon Sep  6 09:36:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1569 193.637 22.1808 646012801 646272001 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 :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

