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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin745
RA = 213.241, Dec = 50.301
tmin = 432432001, tmax = 432691201
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='254997', job_status='RUN', time_executed='2021-09-09 04:55:43.300553', time_epoch_executed='1631188543.3' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254997/ft1_4FGL_J1412.9+5018_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254997/ft1_4FGL_J1412.9+5018_daily_bin745.fits outfile=/scratch/kocevski/254997/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin745.fits ra=213.241 dec=50.301 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.11
user 4.86
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.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/254997/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/254997/ltcube_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.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/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits
.....................!
real 11.83
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/254997/ltcube_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits outfile=/scratch/kocevski/254997/expmap_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.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/254997/ltcube_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits
.....................!
real 191.00
user 185.90
sys 4.73

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 J1412.9+5018 @ 213.241 50.301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits outfile=/scratch/kocevski/254997/cmap_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.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=213.241 yref=50.301 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits outfile=/scratch/kocevski/254997/cmap_HighResolution_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.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=213.241 yref=50.301 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254997/Model_4FGL_J1412.9+5018_daily_bin745.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/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits.....................!
real 41.30
user 40.05
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits', '/scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits', expMap='/scratch/kocevski/254997/expmap_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits', expCube='/scratch/kocevski/254997/ltcube_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/254997/Model_4FGL_J1412.9+5018_daily_bin745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1412.9+5018'

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  5.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/254997/ft1_filtered_4FGL_J1412.9+5018_daily_bin745.fits
Spacecraft file(s): /scratch/kocevski/254997/ft2_4FGL_J1412.9+5018_daily_bin745.fits
Exposure map: /scratch/kocevski/254997/expmap_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits
Exposure cube: /scratch/kocevski/254997/ltcube_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/254997/Model_4FGL_J1412.9+5018_daily_bin745.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.195       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.900       1.0000         .10000E-03   10000.    
     8 'norm      '    7.4194       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7862       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    396.81       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18724E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5240       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7508       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9429       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.388       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.3583       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.433       1.0000         .10000E-03   10000.    
    29 'norm      '    4.1695       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.6740       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .82946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4611.547     FROM MIGRAD    STATUS=CONVERGED   1016 CALLS     5882 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3703       -.30502E-07** at limit **
   2  Prefactor     .10000E-03    24.867       -.48848E-06** at limit **
   3  Prefactor     .10000E-03    44.848        .20026E-05** at limit **
   4  Prefactor     33.203        34.403       -.22820E-06    .17353E-04
   5  norm          2.2533        5.1496        .23699E-06   -.52017E-03
   6  Prefactor     .10000E-03    47.376        .54052E-05** at limit **
   7  Prefactor     29.946        53.551       -.51277E-05   -.25528E-04
   8  norm          7.4192        2.0128       -.96554E-08    .20886E-03
   9  norm          .10000E-03    40.697       -.62646E-05** at limit **
  10  norm          1.7864        3.8092        .26699E-06   -.15122E-03
  11  norm          .10000E-03    7.3292        .48072E-07** at limit **
  12  Prefactor     397.05        657.91        .19456E-04   -.32990E-06
  13  Prefactor     52.499        53.172        .20249E-05    .43280E-04
  14  Prefactor     .10000E-03    17.371        .29978E-06** at limit **
  15  Prefactor     2.5383        124.87       -.10918E-04   -.12133E-04
  16  Prefactor     8.7680        5.8206        .10902E-06    .25094E-03
  17  Prefactor     .10000E-03    11.533       -.14733E-08** at limit **
  18  Prefactor     .16443E-03    46.278        .16375E-04** at limit **
  19  Prefactor     2.5244        2.9375       -.66492E-07   -.11444E-03
  20  Prefactor     5.6938        26.595       -.20774E-04    .25571E-03
  21  Prefactor     1.9419        87.595        .17980E-05   -.23858E-04
  22  Prefactor     15.009        22.742        .34503E-07    .13082E-04
  23  Prefactor     .10000E-03    66.824       -.37756E-05** at limit **
  24  Prefactor     .10000E-03    10.529        .89664E-07** at limit **
  25  Prefactor     10.388        25.767       -.55372E-06   -.23997E-04
  26  Prefactor     .10000E-03    29.905        .16313E-05** at limit **
  27  Prefactor     7.3562        17.750        .13030E-06    .47273E-04
  28  Prefactor     11.433        16.641       -.70857E-07    .13594E-04
  29  norm          4.1695        2.0676        .24295E-08    .83982E-04
  30  Prefactor     .10000E-03    2.9570        .48359E-08** at limit **
  31  Prefactor     5.6739        6.8492       -.17904E-06   -.71935E-04
  32  Prefactor     .10000E-03    2.1311        .33328E-08** at limit **
  33  norm          .10000E-03    1.7813        .39770E-08** at limit **
  34  Normalizat    1.0230        .19668        .10098E-05   -.16488E-04
  35  Prefactor     .82946        .21549       -.11271E-05    .21831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2028
  norm       = 2.25334
  Prefactor  = 0.0001
  Prefactor  = 29.9459
  norm       = 7.41923
  norm       = 0.0001
  norm       = 1.78639
  norm       = 0.0001
  Prefactor  = 397.049
  Prefactor  = 52.4992
  Prefactor  = 0.0001
  Prefactor  = 2.53829
  Prefactor  = 8.76801
  Prefactor  = 0.0001
  Prefactor  = 0.000164432
  Prefactor  = 2.52439
  Prefactor  = 5.69381
  Prefactor  = 1.94194
  Prefactor  = 15.0086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3879
  Prefactor  = 0.0001
  Prefactor  = 7.35619
  Prefactor  = 11.4335
  norm       = 4.1695
  Prefactor  = 0.0001
  Prefactor  = 5.67386
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02297
  Prefactor  = 0.829464
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.547     FROM HESSE     STATUS=OK           780 CALLS     6662 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.508        .20139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.203        34.399        .69550E-04   -1.4555    
   5  norm          2.2533        5.1169        .21450E-03   -1.5408    
   6  Prefactor     .10000E-03    47.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.946        53.905        .73271E-04   -1.4613    
   8  norm          7.4192        2.0143        .48346E-04   -1.5163    
   9  norm          .10000E-03    40.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7864        3.7583        .18149E-03   -1.5441    
  11  norm          .10000E-03    7.3558        .17955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     397.05        656.79        .10245E-03   -1.1696    
  13  Prefactor     52.499        53.129        .55344E-04   -1.4258    
  14  Prefactor     .10000E-03    17.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5383        125.42        .25768E-03   -1.5389    
  16  Prefactor     8.7680        5.8092        .12723E-03   -1.5116    
  17  Prefactor     .10000E-03    11.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16443E-03    101.59        .99655E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5244        2.8967        .11011E-03   -1.5390    
  20  Prefactor     5.6938        71.768        .16749E-03   -1.5231    
  21  Prefactor     1.9419        83.370        .29782E-03   -1.5429    
  22  Prefactor     15.009        22.591        .10336E-03   -1.4933    
  23  Prefactor     .10000E-03    66.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.388        25.310        .12432E-03   -1.5063    
  26  Prefactor     .10000E-03    29.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.3562        17.704        .14786E-03   -1.5165    
  28  Prefactor     11.433        16.598        .11848E-03   -1.5032    
  29  norm          4.1695        2.0659        .65199E-04   -1.5300    
  30  Prefactor     .10000E-03    2.9651        .11404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.6739        6.8419        .16863E-03   -1.5232    
  32  Prefactor     .10000E-03    2.1349        .96814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    1.7839        .88513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0230        .23568        .21721E-03   -.92265    
  35  Prefactor     .82946        .25634        .28710E-03   -.98651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60431e-09
Minuit parameter uncertainties:
  1  1.06725e-05
  2  2.27778e-06
  3  2.132e-05
  4  34.4193
  5  5.11793
  6  0.000176325
  7  53.993
  8  2.01432
  9  2.21657e-05
  10  3.75884
  11  2.65407e-06
  12  669.846
  13  53.1772
  14  3.6935e-05
  15  35.7641
  16  5.80958
  17  2.44433e-05
  18  0.162089
  19  2.89686
  20  40.4891
  21  25.4854
  22  22.6043
  23  0.000123055
  24  1.18495e-06
  25  25.3359
  26  1.28352e-06
  27  17.7165
  28  16.6048
  29  2.0659
  30  1.97327e-06
  31  6.84284
  32  1.39961e-06
  33  2.35254e-07
  34  0.235919
  35  0.256711
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.538e+00  3.576e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.295e-01  2.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.023e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 213.241 50.301
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254997/likelihoodResults_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.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) = 4611.28458709
delta logL = 0.261953682443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4611.23238483
delta logL = 0.314155945103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29847       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8639       1.0000          .0000       10.000    
     3 'Normalizat'    .97989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4611.232     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29335        6.0028        .10418E-01    .13752E-02
   2  Index         5.8764        3.2326        .20461        .80190E-04
   3  Normalizat    .97929        .30654E-01    .45914E-01   -.12932E-03
   4  Prefactor     .86315        .37103E-01    .63751E-01   -.14002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.293347
  Index      = 5.8764
  Normalizat = 0.979292
  Prefactor  = 0.863147
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.232     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29335        26.553        .49141E-03   -1.5600    
   2  Index         5.8764        7.6101        .71841E-02    .17619    
   3  Normalizat    .97929        .14181        .22121E-03   -.93727    
   4  Prefactor     .86315        .16909        .28197E-03   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9289e-07
Minuit parameter uncertainties:
  1  5.58348
  2  11.15
  3  0.141864
  4  0.169188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254997': 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) = 4611.23237369
delta logL = 0.314167085281

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.933e-01  5.583e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  5.876e+00  1.115e+01  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.631e-01  1.692e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  9.793e-01  1.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 213.241 50.301

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/254997/cmap_HighResolution_432432001_432691201_4FGL_J1412.9+5018_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-09 05:11:59.767100', job_id='254997', GAL2='0.86', fit_tolerance='1e-08', EG2='0.98', EG='1.02', time_epoch_completed='1631189519.77', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.14e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='745' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 254997: <4FGL_J1412.9+5018_daily_bin745> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin745> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 04:55:28 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 04:55:30 2021
Terminated at Thu Sep  9 05:12:00 2021
Results reported at Thu Sep  9 05:12:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin745 213.241 50.301 432432001 432691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1412.9+5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   975.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

