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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin747
RA = 213.241, Dec = 50.301
tmin = 432950401, tmax = 433209601
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='255000', job_status='RUN', time_executed='2021-09-09 04:57:22.482411', time_epoch_executed='1631188642.48' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255000/ft1_4FGL_J1412.9+5018_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255000/ft1_4FGL_J1412.9+5018_daily_bin747.fits outfile=/scratch/kocevski/255000/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin747.fits ra=213.241 dec=50.301 rad=12.0 tmin=432950401.0 tmax=433209601.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.78
user 5.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/255000/ltcube_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.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/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits
.....................!
real 12.16
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/255000/ltcube_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits outfile=/scratch/kocevski/255000/expmap_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.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/255000/ltcube_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits
.....................!
real 189.79
user 184.94
sys 4.48

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/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits scfile=/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits outfile=/scratch/kocevski/255000/cmap_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits scfile=/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits outfile=/scratch/kocevski/255000/cmap_HighResolution_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits', '/scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits', expMap='/scratch/kocevski/255000/expmap_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits', expCube='/scratch/kocevski/255000/ltcube_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255000/Model_4FGL_J1412.9+5018_daily_bin747.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/255000/ft1_filtered_4FGL_J1412.9+5018_daily_bin747.fits
Spacecraft file(s): /scratch/kocevski/255000/ft2_4FGL_J1412.9+5018_daily_bin747.fits
Exposure map: /scratch/kocevski/255000/expmap_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits
Exposure cube: /scratch/kocevski/255000/ltcube_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255000/Model_4FGL_J1412.9+5018_daily_bin747.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) = 2894.37447922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11527E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.951       1.0000         .10000E-03   10000.    
     8 'norm      '    6.7126       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29859E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    173.15       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    102.41       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7223       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.2078       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.0364       1.0000         .10000E-03   10000.    
    32 'Prefactor '    20.241       1.0000         .10000E-03   10000.    
    33 'norm      '    4.4128       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .32103       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=   2894.335     FROM MIGRAD    STATUS=CONVERGED    976 CALLS     5128 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.9310        .15604E-05** at limit **
   2  Prefactor     .10000E-03    58.252        .15327E-05** at limit **
   3  Prefactor     .10000E-03    8.2091        .44151E-06** at limit **
   4  Prefactor     .10000E-03    62.881        .17977E-05** at limit **
   5  norm          8.0690        5.0700       -.64799E-07   -.98721E-04
   6  Prefactor     .10000E-03    35.364        .81408E-06** at limit **
   7  Prefactor     33.952        36.893       -.13444E-06   -.36474E-05
   8  norm          6.7123        2.6025       -.57050E-07   -.12210E-03
   9  norm          .10000E-03    37.452        .25866E-06** at limit **
  10  norm          .10000E-03    1.4333        .18795E-06** at limit **
  11  norm          .10000E-03    12.850        .55660E-06** at limit **
  12  Prefactor     .10000E-03    417.48       -.21558E-05** at limit **
  13  Prefactor     .10000E-03    312.48        .48603E-05** at limit **
  14  Prefactor     .10000E-03    9.7912        .13970E-06** at limit **
  15  Prefactor     .10005E-03    663.80       -.11449E-04** at limit **
  16  Prefactor     .10000E-03    3.9827        .23626E-06** at limit **
  17  Prefactor     49.654        34.588       -.38881E-06   -.23268E-05
  18  Prefactor     12.980        18.722        .40204E-07   -.11054E-04
  19  Prefactor     7.7642        4.8727       -.67042E-06   -.38014E-03
  20  Prefactor     .10000E-03    34.243        .89536E-06** at limit **
  21  Prefactor     .10000E-03    21.797        .66717E-06** at limit **
  22  Prefactor     .10000E-03    41.836        .72374E-06** at limit **
  23  Prefactor     173.36        150.65        .62816E-06   -.41835E-04
  24  Prefactor     .10000E-03    61.808        .23771E-05** at limit **
  25  Prefactor     .10000E-03    32.193       -.10123E-07** at limit **
  26  Prefactor     102.39        108.82        .11607E-06    .78207E-05
  27  Prefactor     2.6576        139.68       -.70679E-05   -.43078E-04
  28  Prefactor     .10000E-03    74.396       -.29641E-05** at limit **
  29  norm          4.2086        3.1199       -.17649E-06   -.12527E-03
  30  Prefactor     .10000E-03    43.526        .11319E-05** at limit **
  31  Prefactor     3.0376        8.3357       -.62834E-06   -.48316E-04
  32  Prefactor     20.241        24.818       -.39978E-06   -.19544E-04
  33  norm          4.4129        6.2365       -.12796E-06   -.28826E-05
  34  Normalizat    1.2233        .26392        .20905E-05   -.29412E-03
  35  Prefactor     .32087        .28994       -.59098E-05   -.14913E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.06896
  Prefactor  = 0.0001
  Prefactor  = 33.9524
  norm       = 6.71234
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 49.6544
  Prefactor  = 12.9797
  Prefactor  = 7.76421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 173.363
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 102.388
  Prefactor  = 2.65764
  Prefactor  = 0.0001
  norm       = 4.2086
  Prefactor  = 0.0001
  Prefactor  = 3.03759
  Prefactor  = 20.2411
  norm       = 4.41287
  Normalizat = 1.22334
  Prefactor  = 0.320869
 **********
 **   18 **HESSE 
 **********

 FCN=   2894.335     FROM HESSE     STATUS=OK           764 CALLS     5892 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.8394        .19883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2267        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0690        5.0812        .92144E-04   -1.5140    
   6  Prefactor     .10000E-03    35.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.952        36.886        .68773E-04   -1.4542    
   8  norm          6.7123        2.6106        .25627E-03   -1.5190    
   9  norm          .10000E-03    37.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4379        .62955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    417.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    316.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7926        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    650.37        .87691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9943        .10483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.654        34.562        .56915E-04   -1.4297    
  18  Prefactor     12.980        18.642        .11120E-03   -1.4987    
  19  Prefactor     7.7642        4.8884        .88899E-04   -1.5151    
  20  Prefactor     .10000E-03    34.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     173.36        151.08        .15332E-03   -1.3067    
  24  Prefactor     .10000E-03    62.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     102.39        108.68        .39731E-04   -1.3681    
  27  Prefactor     2.6576        140.52        .24682E-03   -1.5382    
  28  Prefactor     .10000E-03    75.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.2086        3.1054        .78241E-04   -1.5298    
  30  Prefactor     .10000E-03    43.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.0376        8.2707        .23286E-03   -1.5359    
  32  Prefactor     20.241        24.813        .89027E-04   -1.4808    
  33  norm          4.4129        6.2206        .15472E-03   -1.5288    
  34  Normalizat    1.2233        .27456        .19203E-03   -.85885    
  35  Prefactor     .32087        .29508        .40687E-03   -1.2106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.675e-09
Minuit parameter uncertainties:
  1  0.000729652
  2  0.000224147
  3  1.91581e-05
  4  0.000255527
  5  5.08143
  6  6.09837e-05
  7  36.9109
  8  2.61061
  9  1.28009e-05
  10  4.99218e-06
  11  3.31342e-05
  12  0.000676299
  13  0.00123997
  14  3.26886e-06
  15  0.0113028
  16  9.87053e-06
  17  34.5756
  18  18.6502
  19  4.88863
  20  0.000102405
  21  6.93706e-05
  22  0.000119937
  23  151.418
  24  0.00042535
  25  6.15613e-05
  26  108.892
  27  38.745
  28  9.09742e-05
  29  3.10552
  30  0.000176023
  31  8.27376
  32  24.8253
  33  6.22155
  34  0.274883
  35  0.296478
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.130e-02  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:  3.209e-01  2.965e-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.223e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 213.241 50.301
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255000/likelihoodResults_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.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) = 2894.33498878
delta logL = -6.88497539159e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2894.33498878
delta logL = -6.88450199959e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6649       1.0000          .0000       10.000    
     3 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32087       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=   2894.335     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      221 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    633.81        .90713E-02** at limit **
   2  Index         2.6209        6.2683        .50000        .32380E-06
   3  Normalizat    1.2233        .51214E-02    .34342E-01   -.14748E-03
   4  Prefactor     .32087        .58602E-02    .91804E-01   -.51888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100132
  Index      = 2.62089
  Normalizat = 1.22334
  Prefactor  = 0.32087
 **********
 **   18 **HESSE 
 **********

 FCN=   2894.335     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      254 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    1622.7        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6209        5.5691        .50000       -.49590    
   3  Normalizat    1.2233        .81746E-02    .19203E-03   -.85885    
   4  Prefactor     .32087        .93243E-02    .40688E-03   -1.2106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.98792e-09
Minuit parameter uncertainties:
  1  0.0300911
  2  581.514
  3  0.00817465
  4  0.00932435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255000': 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) = 2894.33498189
delta logL = 4.45106707048e-09

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.001e-04  3.009e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.621e+00  5.815e+02  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:  3.209e-01  9.324e-03  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.223e+00  8.175e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/255000/cmap_HighResolution_432950401_433209601_4FGL_J1412.9+5018_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-09 05:09:08.429871', job_id='255000', GAL2='0.32', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631189348.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.32', dlogl='4.45e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='747' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 255000: <4FGL_J1412.9+5018_daily_bin747> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin747> 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) <bullet0207>, 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:09:09 2021
Results reported at Thu Sep  9 05:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin747 213.241 50.301 432950401 433209601 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 :                                   705.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

