/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1412.9+5018_daily_bin90
RA = 213.241, Dec = 50.301
tmin = 262656001, tmax = 262915201
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='250960', job_status='RUN', time_executed='2021-09-09 04:42:30.771039', time_epoch_executed='1631187750.77' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250960/ft1_4FGL_J1412.9+5018_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250960/ft2_4FGL_J1412.9+5018_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250960/ft1_4FGL_J1412.9+5018_daily_bin90.fits outfile=/scratch/kocevski/250960/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin90.fits ra=213.241 dec=50.301 rad=12.0 tmin=262656001.0 tmax=262915201.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.44
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250960/ft1_filtered_4FGL_J1412.9+5018_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/250960/ft2_4FGL_J1412.9+5018_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/250960/ltcube_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.fits outfile=/scratch/kocevski/250960/expmap_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.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/250960/ltcube_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.fits
.....................!
real 189.59
user 185.08
sys 3.84

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/250960/ft1_filtered_4FGL_J1412.9+5018_daily_bin90.fits scfile=/scratch/kocevski/250960/ft2_4FGL_J1412.9+5018_daily_bin90.fits outfile=/scratch/kocevski/250960/cmap_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250960/ft1_filtered_4FGL_J1412.9+5018_daily_bin90.fits scfile=/scratch/kocevski/250960/ft2_4FGL_J1412.9+5018_daily_bin90.fits outfile=/scratch/kocevski/250960/cmap_HighResolution_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69946E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.260       1.0000         .10000E-03   10000.    
     8 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.656       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12519E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.759       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6373       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.388       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.697       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    17.841       1.0000         .10000E-03   10000.    
    33 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .77291       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=   3999.780     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     5108 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.416        6.7640       -.60874E-07    .15841E-03
   2  Prefactor     .10010E-03    583.79        .49169E-04** at limit **
   3  Prefactor     7.8492        14.049       -.10616E-05    .13536E-03
   4  Prefactor     .10000E-03    16.604        .29272E-07** at limit **
   5  norm          .10001E-03    4.3587       -.33621E-06** at limit **
   6  Prefactor     8.7326        240.54       -.16762E-04    .14352E-04
   7  Prefactor     67.204        99.189       -.12916E-05   -.64641E-04
   8  norm          .10001E-03    1.0460       -.81286E-06** at limit **
   9  norm          .10000E-03    39.665        .14558E-07** at limit **
  10  norm          .10000E-03    6.4320       -.36244E-06** at limit **
  11  norm          22.659        19.679       -.80679E-06    .22677E-04
  12  Prefactor     .10000E-03    612.93        .75893E-06** at limit **
  13  Prefactor     12.197        78.702       -.18194E-07   -.16874E-04
  14  Prefactor     .10000E-03    8.2789       -.43518E-07** at limit **
  15  Prefactor     .10000E-03    18.773        .41080E-08** at limit **
  16  Prefactor     .10000E-03    8.0281       -.51092E-06** at limit **
  17  Prefactor     .10000E-03    9.3895       -.94685E-07** at limit **
  18  Prefactor     .10000E-03    9.3399       -.51292E-07** at limit **
  19  Prefactor     .10000E-03    2.5441        .32624E-06** at limit **
  20  Prefactor     .10000E-03    7.7754       -.37231E-07** at limit **
  21  Prefactor     49.796        56.238       -.94064E-06   -.31200E-04
  22  Prefactor     1.6281        182.41       -.15201E-04   -.71159E-04
  23  Prefactor     .10000E-03    59.687       -.52812E-06** at limit **
  24  Prefactor     .10000E-03    44.612       -.72308E-06** at limit **
  25  Prefactor     41.388        48.887        .28409E-06    .33138E-05
  26  Prefactor     .10000E-03    39.727       -.71356E-07** at limit **
  27  Prefactor     21.698        17.996        .99012E-07    .37310E-04
  28  Prefactor     .10000E-03    17.507       -.30100E-06** at limit **
  29  norm          .10000E-03    .69212       -.11426E-06** at limit **
  30  Prefactor     .10000E-03    34.408       -.34512E-06** at limit **
  31  Prefactor     .10000E-03    2.0401       -.76020E-07** at limit **
  32  Prefactor     17.839        11.107       -.29251E-07    .20460E-03
  33  norm          .10000E-03    3.0027        .19475E-06** at limit **
  34  Normalizat    1.0573        .24302        .88640E-05    .15950E-03
  35  Prefactor     .77300        .26132       -.88306E-05    .16474E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4156
  Prefactor  = 0.000100097
  Prefactor  = 7.84919
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 8.7326
  Prefactor  = 67.2035
  norm       = 0.000100009
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.6591
  Prefactor  = 0.0001
  Prefactor  = 12.197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7956
  Prefactor  = 1.62808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3881
  Prefactor  = 0.0001
  Prefactor  = 21.6984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8391
  norm       = 0.000100001
  Normalizat = 1.05729
  Prefactor  = 0.772999
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.780     FROM HESSE     STATUS=OK           772 CALLS     5880 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.416        6.7548        .95967E-04   -1.4873    
   2  Prefactor     .10010E-03    43.929        .11153       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8492        13.408        .14299E-03   -1.5148    
   4  Prefactor     .10000E-03    16.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    8.8478        .23161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7326        236.88        .13776E-03   -1.5117    
   7  Prefactor     67.204        98.593        .48939E-04   -1.4067    
   8  norm          .10001E-03    6.5616        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    39.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5142        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.659        19.686        .84153E-04   -1.4756    
  12  Prefactor     .10000E-03    612.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.197        78.248        .11433E-03   -1.5009    
  14  Prefactor     .10000E-03    8.2808        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3678        .34989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5548        .97657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7868        .17224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     49.796        54.822        .56850E-04   -1.4295    
  22  Prefactor     1.6281        178.81        .33030E-03   -1.5453    
  23  Prefactor     .10000E-03    59.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     41.388        48.859        .62310E-04   -1.4420    
  26  Prefactor     .10000E-03    39.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.698        17.979        .85990E-04   -1.4776    
  28  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .71872        .10272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    35.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.0459        .88224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     17.839        11.073        .94822E-04   -1.4863    
  33  norm          .10000E-03    11.304        .21294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0573        .24895        .21272E-03   -.91135    
  35  Prefactor     .77300        .26527        .28363E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23858e-09
Minuit parameter uncertainties:
  1  6.75506
  2  0.00413794
  3  13.4132
  4  1.7004e-05
  5  0.000611196
  6  91.3663
  7  98.8338
  8  0.000476303
  9  2.15001e-06
  10  9.01359e-05
  11  19.6913
  12  4.50545e-05
  13  61.905
  14  4.61728e-06
  15  1.17159e-05
  16  2.31817e-05
  17  1.72269e-05
  18  1.14235e-05
  19  1.00966e-05
  20  1.00534e-05
  21  54.8778
  22  34.229
  23  6.05533e-05
  24  0.000139504
  25  48.9059
  26  3.38845e-05
  27  17.9831
  28  6.23683e-05
  29  1.25743e-06
  30  0.000152483
  31  3.44772e-06
  32  11.0739
  33  0.00017954
  34  0.249228
  35  0.265711
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.172e-05  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:  7.730e-01  2.657e-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.057e+00  2.492e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250960/likelihoodResults_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.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) = 3999.78005516
delta logL = -0.000253517496276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3999.77980381
delta logL = -2.17194246943e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3999.780     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      287 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    89.740        .18142E-01** at limit **
   2  Index         2.1686        6.0076        .50000        .23630E-06
   3  Normalizat    1.0573        .95745E-02    .21272E-03    .47538E-02
   4  Prefactor     .77301        .11127E-01    .28362E-03    .35834E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100034
  Index      = 2.16862
  Normalizat = 1.0573
  Prefactor  = 0.773009
 **********
 **   18 **HESSE 
 **********

 FCN=   3999.780     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    559.70        .28932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1686        7.5609        .50000       -.60198    
   3  Normalizat    1.0573        .24669E-01    .42545E-04   -.91135    
   4  Prefactor     .77301        .28668E-01    .56725E-04   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55322e-08
Minuit parameter uncertainties:
  1  0.00878721
  2  1523.27
  3  0.0246697
  4  0.0286688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250960': 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) = 3999.77980127
delta logL = 3.68639575754e-07

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  8.787e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.169e+00  1.523e+03  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:  7.730e-01  2.867e-02  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.057e+00  2.467e-02  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/250960/cmap_HighResolution_262656001_262915201_4FGL_J1412.9+5018_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-09 04:56:07.626100', job_id='250960', GAL2='0.77', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631188567.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='90' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 250960: <4FGL_J1412.9+5018_daily_bin90> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin90> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 04:40:55 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:40:57 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:40:57 2021
Terminated at Thu Sep  9 04:56:08 2021
Results reported at Thu Sep  9 04:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin90 213.241 50.301 262656001 262915201 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 :                                   813.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

