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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin4
RA = 193.637, Dec = 22.1808
tmin = 240364801, tmax = 240624001
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='984967', job_status='RUN', time_executed='2021-09-06 08:56:46.188921', time_epoch_executed='1630943806.19' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984967/ft1_4FGL_J1254.5+2210_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984967/ft1_4FGL_J1254.5+2210_daily_bin4.fits outfile=/scratch/kocevski/984967/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin4.fits ra=193.637 dec=22.1808 rad=12.0 tmin=240364801.0 tmax=240624001.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.43
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.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/984967/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/984967/ft1_filtered_4FGL_J1254.5+2210_daily_bin4.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984967/ft1_filtered_4FGL_J1254.5+2210_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/984967/ltcube_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.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/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits
.....................!
real 12.73
user 12.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984967/ft1_filtered_4FGL_J1254.5+2210_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/984967/ltcube_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.fits outfile=/scratch/kocevski/984967/expmap_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.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/984967/ltcube_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.fits
.....................!
real 193.02
user 187.48
sys 5.05

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/984967/ft1_filtered_4FGL_J1254.5+2210_daily_bin4.fits scfile=/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits outfile=/scratch/kocevski/984967/cmap_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984967/ft1_filtered_4FGL_J1254.5+2210_daily_bin4.fits scfile=/scratch/kocevski/984967/ft2_4FGL_J1254.5+2210_daily_bin4.fits outfile=/scratch/kocevski/984967/cmap_HighResolution_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66739       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9364       1.0000         .10000E-03   10000.    
     7 'norm      '    .21723       1.0000         .10000E-03   10000.    
     8 'norm      '    6.1422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.984       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.386       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3003       1.0000         .10000E-03   10000.    
    16 'norm      '    .78498E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.159       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5010       1.0000         .10000E-03   10000.    
    20 'norm      '    37.953       1.0000         .10000E-03   10000.    
    21 'norm      '    23.181       1.0000         .10000E-03   10000.    
    22 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.377       1.0000         .10000E-03   10000.    
    25 'norm      '    9.3813       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0984       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92325       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5957.539     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3119 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6045        2.5449        .75826E-08    .25621E-04
   2  Prefactor     .66686        2.0471        .59742E-06    .21817E-04
   3  norm          7.0060        3.2681       -.69816E-07    .10285E-04
   4  Prefactor     .39087        1.2310        .40430E-06    .53502E-05
   5  Prefactor     9.8789        3.2824       -.48890E-06   -.68443E-03
   6  Prefactor     3.9358        1.9527        .18664E-05    .63594E-03
   7  norm          .21717        .21378        .10082E-07    .76408E-04
   8  norm          6.1422        3.9222        .34740E-05    .35064E-02
   9  Prefactor     .10000E-03    4.1171        .37703E-05** at limit **
  10  Prefactor     16.999        10.492        .22911E-05    .25589E-02
  11  Prefactor     .10000E-03    13.874        .24666E-05** at limit **
  12  Prefactor     .10001E-03    46.478       -.67521E-05** at limit **
  13  Prefactor     58.443        12.943        .40618E-06   -.44443E-02
  14  Prefactor     .10000E-03    2.5543       -.42605E-06** at limit **
  15  Prefactor     4.2939        4.0931       -.12148E-05   -.15585E-02
  16  norm          .10010E-03    1.5060       -.63430E-06** at limit **
  17  Prefactor     7.0485        2.4049       -.48629E-06   -.16886E-02
  18  Prefactor     42.348        41.744        .95245E-06   -.85333E-03
  19  norm          1.4996        4.1479        .57378E-06    .10620E-03
  20  norm          37.952        4.6698       -.40611E-06    .22936E-02
  21  norm          23.203        4.1509        .62407E-06   -.39997E-02
  22  norm          .10000E-03    10.685        .37125E-05** at limit **
  23  norm          .10000E-03    4.3781        .28120E-05** at limit **
  24  Prefactor     11.337        8.7811        .18130E-05   -.75164E-02
  25  norm          9.3817        1.2665        .23448E-06   -.19774E-02
  26  Prefactor     6.1005        1.0669        .39695E-07   -.35183E-04
  27  Prefactor     .10000E-03    8.6691        .27077E-05** at limit **
  28  Normalizat    .92333        .21293        .39408E-05    .16939E-04
  29  Prefactor     1.0331        .21653       -.46189E-05    .19288E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60451
  Prefactor  = 0.666856
  norm       = 7.00601
  Prefactor  = 0.390869
  Prefactor  = 9.87893
  Prefactor  = 3.93581
  norm       = 0.217167
  norm       = 6.14219
  Prefactor  = 0.0001
  Prefactor  = 16.999
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 58.4433
  Prefactor  = 0.0001
  Prefactor  = 4.2939
  norm       = 0.000100101
  Prefactor  = 7.04852
  Prefactor  = 42.3484
  norm       = 1.49961
  norm       = 37.9516
  norm       = 23.2031
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 11.3374
  norm       = 9.38166
  Prefactor  = 6.10054
  Prefactor  = 0.0001
  Normalizat = 0.923328
  Prefactor  = 1.03311
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.539     FROM HESSE     STATUS=OK           629 CALLS     3748 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6045        2.5613        .53203E-02   -1.5328    
   2  Prefactor     .66686        2.1144        .11936E-01   -1.5545    
   3  norm          7.0060        3.2690        .37894E-02   -1.5179    
   4  Prefactor     .39087        1.2986        .34970E-01   -1.5583    
   5  Prefactor     9.8789        3.3009        .31870E-02   -1.5079    
   6  Prefactor     3.9358        6.3439        .50832E-02   -1.5311    
   7  norm          .21717        .22738        .76295E-02   -1.5615    
   8  norm          6.1422        4.6517        .40497E-02   -1.5212    
   9  Prefactor     .10000E-03    4.1052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.999        11.990        .24296E-02   -1.4883    
  11  Prefactor     .10000E-03    13.836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    46.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.443        51.836        .13126E-02   -1.4178    
  14  Prefactor     .10000E-03    2.5489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2939        13.605        .48567E-02   -1.5294    
  16  norm          .10010E-03    3.8550        .74014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0485        14.509        .37759E-02   -1.5177    
  18  Prefactor     42.348        48.276        .15435E-02   -1.4406    
  19  norm          1.4996        4.1902        .87374E-02   -1.5463    
  20  norm          37.952        12.826        .16265E-02   -1.4475    
  21  norm          23.203        20.478        .20799E-02   -1.4744    
  22  norm          .10000E-03    11.176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.3082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.337        26.323        .29694E-02   -1.5034    
  25  norm          9.3817        7.2701        .32711E-02   -1.5095    
  26  Prefactor     6.1005        13.702        .40645E-02   -1.5214    
  27  Prefactor     .10000E-03    8.6607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92333        .19108        .45198E-01   -.95645    
  29  Prefactor     1.0331        .18641        .59475E-01   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04293e-07
Minuit parameter uncertainties:
  1  2.56136
  2  2.11462
  3  3.26906
  4  1.29874
  5  3.30097
  6  6.34499
  7  0.227383
  8  4.652
  9  1.52654e-05
  10  11.992
  11  2.61099e-05
  12  0.00165278
  13  51.8758
  14  8.31093e-07
  15  13.6147
  16  0.00125023
  17  14.5166
  18  48.3204
  19  4.19101
  20  12.8273
  21  20.484
  22  0.000431136
  23  5.66018e-06
  24  26.3494
  25  7.2708
  26  13.7095
  27  3.45818e-05
  28  0.191222
  29  0.186524
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.311e-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:  1.033e+00  1.865e-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:  9.233e-01  1.912e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984967/likelihoodResults_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.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) = 5957.54124098
delta logL = -0.00185309763765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5957.53938788
delta logL = -2.15732143261e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0847       1.0000          .0000       10.000    
     3 'Normalizat'    .92333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0331       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.

 FCN=   5957.539     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    160.35        .90712E-02** at limit **
   2  Index         2.0804        5.4172        .50000        .13846E-04
   3  Normalizat    .92333        .39129E-01    .45199E-01    .17215E-04
   4  Prefactor     1.0331        .40642E-01    .59475E-01    .11756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08036
  Normalizat = 0.923328
  Prefactor  = 1.03311
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.539     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.19        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0804        5.9087        .50000       -.62356    
   3  Normalizat    .92333        .36838E-01    .26754E-03   -.95645    
   4  Prefactor     1.0331        .38268E-01    .26300E-03   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04555e-08
Minuit parameter uncertainties:
  1  1.21363e-05
  2  30.6709
  3  0.0368392
  4  0.0382691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984967': 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) = 5957.53938785
delta logL = 3.04944478557e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.214e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.080e+00  3.067e+01  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:  1.033e+00  3.827e-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:  9.233e-01  3.684e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/984967/cmap_HighResolution_240364801_240624001_4FGL_J1254.5+2210_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-06 09:09:13.329395', job_id='984967', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630944553.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='4' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:09:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 984967: <4FGL_J1254.5+2210_daily_bin4> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin4> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:28 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:29 2021
Terminated at Mon Sep  6 09:09:14 2021
Results reported at Mon Sep  6 09:09:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin4 193.637 22.1808 240364801 240624001 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 :                                   743.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

