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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin92
RA = 213.241, Dec = 50.301
tmin = 263174401, tmax = 263433601
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='250964', job_status='RUN', time_executed='2021-09-09 04:41:17.565582', time_epoch_executed='1631187677.57' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250964

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250964/ft1_4FGL_J1412.9+5018_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250964/ft2_4FGL_J1412.9+5018_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250964/ft1_4FGL_J1412.9+5018_daily_bin92.fits outfile=/scratch/kocevski/250964/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin92.fits ra=213.241 dec=50.301 rad=12.0 tmin=263174401.0 tmax=263433601.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.40
user 1.18
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250964/ft1_filtered_4FGL_J1412.9+5018_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/250964/ft2_4FGL_J1412.9+5018_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/250964/ltcube_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.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/250964/ft2_4FGL_J1412.9+5018_daily_bin92.fits
.....................!
real 11.51
user 11.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250964/ft1_filtered_4FGL_J1412.9+5018_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/250964/ft2_4FGL_J1412.9+5018_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/250964/ltcube_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.fits outfile=/scratch/kocevski/250964/expmap_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.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/250964/ltcube_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.fits
.....................!
real 190.12
user 185.17
sys 4.34

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/250964/ft1_filtered_4FGL_J1412.9+5018_daily_bin92.fits scfile=/scratch/kocevski/250964/ft2_4FGL_J1412.9+5018_daily_bin92.fits outfile=/scratch/kocevski/250964/cmap_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.749       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25488E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    72.270       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87536       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6685       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.862       1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.521       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.4736       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.5649       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0060       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .89834       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=   4938.167     FROM MIGRAD    STATUS=CONVERGED    988 CALLS     5103 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.444        9.8610       -.36902E-07    .13058E-04
   2  Prefactor     72.686        57.179        .28693E-06    .30093E-05
   3  Prefactor     .10000E-03    22.030       -.11544E-05** at limit **
   4  Prefactor     .10000E-03    63.880        .69942E-06** at limit **
   5  norm          4.6998        5.1960        .42095E-06    .38336E-04
   6  Prefactor     .10000E-03    56.883       -.60951E-05** at limit **
   7  Prefactor     .10000E-03    69.121        .38004E-05** at limit **
   8  norm          .10000E-03    .69456        .62332E-07** at limit **
   9  norm          72.272        76.553        .25489E-06    .12876E-05
  10  norm          .10000E-03    2.5316        .10452E-06** at limit **
  11  norm          .10000E-03    4.7096        .44880E-07** at limit **
  12  Prefactor     .10000E-03    734.48       -.30607E-04** at limit **
  13  Prefactor     .10000E-03    13.515        .55988E-06** at limit **
  14  Prefactor     .10000E-03    6.8676        .25119E-06** at limit **
  15  Prefactor     .10000E-03    19.405        .19658E-05** at limit **
  16  Prefactor     .10000E-03    5.7516        .21218E-06** at limit **
  17  Prefactor     .10000E-03    33.990        .58179E-05** at limit **
  18  Prefactor     .10000E-03    6.9331       -.82716E-07** at limit **
  19  Prefactor     .86883        2.8508       -.31484E-05    .15214E-03
  20  Prefactor     .10000E-03    6.6224       -.19602E-06** at limit **
  21  Prefactor     10.195        47.992       -.93490E-05    .55844E-04
  22  Prefactor     1.7096        226.82        .23985E-04    .32143E-04
  23  Prefactor     .10000E-03    28.720       -.44517E-05** at limit **
  24  Prefactor     71.856        32.911        .71485E-06    .58953E-05
  25  Prefactor     53.521        56.274        .73995E-06    .60305E-04
  26  Prefactor     .10000E-03    19.536        .20551E-05** at limit **
  27  Prefactor     .10000E-03    18.032        .14048E-06** at limit **
  28  Prefactor     .10000E-03    10.745       -.16515E-06** at limit **
  29  norm          4.4738        2.0997       -.54374E-07    .14555E-03
  30  Prefactor     .10000E-03    5.7852       -.26475E-06** at limit **
  31  Prefactor     4.5655        4.3388        .12150E-07   -.23029E-05
  32  Prefactor     .10000E-03    16.526       -.29708E-05** at limit **
  33  norm          .10000E-03    2.1542       -.19392E-07** at limit **
  34  Normalizat    1.0064        .19350        .82994E-06    .73349E-05
  35  Prefactor     .89783        .21608       -.10650E-05    .11064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 41.4444
  Prefactor  = 72.6857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 72.2718
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.868829
  Prefactor  = 0.0001
  Prefactor  = 10.1946
  Prefactor  = 1.70961
  Prefactor  = 0.0001
  Prefactor  = 71.8565
  Prefactor  = 53.521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47385
  Prefactor  = 0.0001
  Prefactor  = 4.5655
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00644
  Prefactor  = 0.897835
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.167     FROM HESSE     STATUS=OK           756 CALLS     5859 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.444        9.8637        .62268E-04   -1.4420    
   2  Prefactor     72.686        57.164        .47070E-04   -1.4001    
   3  Prefactor     .10000E-03    22.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.054        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6998        5.1927        .15991E-03   -1.5274    
   6  Prefactor     .10000E-03    57.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2049        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          72.272        76.558        .47224E-04   -1.4006    
  10  norm          .10000E-03    2.5535        .10916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7134        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    737.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8688        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9334        .32893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9374        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86883        2.7972        .17412E-03   -1.5522    
  20  Prefactor     .10000E-03    6.6306        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.195        45.183        .12540E-03   -1.5069    
  22  Prefactor     1.7096        236.55        .32641E-03   -1.5446    
  23  Prefactor     .10000E-03    28.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     71.856        32.968        .47357E-04   -1.4011    
  25  Prefactor     53.521        56.027        .54825E-04   -1.4243    
  26  Prefactor     .10000E-03    19.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.4738        2.0973        .66874E-04   -1.5285    
  30  Prefactor     .10000E-03    5.8079        .16501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.5655        4.3342        .13845E-03   -1.5281    
  32  Prefactor     .10000E-03    17.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    2.1825        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0064        .23080        .22834E-03   -.92815    
  35  Prefactor     .89783        .25630        .28201E-03   -.96217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3457e-10
Minuit parameter uncertainties:
  1  9.86405
  2  57.2075
  3  8.31072e-05
  4  0.000123816
  5  5.19323
  6  0.000220002
  7  0.000189249
  8  1.07248e-05
  9  76.6624
  10  1.05293e-05
  11  1.57329e-06
  12  0.00388537
  13  2.35312e-05
  14  1.66967e-06
  15  4.71373e-05
  16  6.28873e-06
  17  1.53853e-05
  18  5.68289e-06
  19  2.79761
  20  8.31277e-06
  21  42.9781
  22  40.3821
  23  8.43906e-05
  24  32.9766
  25  56.0827
  26  3.62314e-05
  27  3.04301e-05
  28  1.75727e-06
  29  2.09734
  30  1.58008e-05
  31  4.33449
  32  7.7743e-05
  33  8.30603e-07
  34  0.231028
  35  0.25664
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  4.714e-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:  8.978e-01  2.566e-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.006e+00  2.310e-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: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250964/likelihoodResults_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.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) = 4938.16722055
delta logL = -0.000244898466917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4938.16697727
delta logL = -1.62631567946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2838       1.0000          .0000       10.000    
     3 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89783       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=   4938.167     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2216        .61906E-01** at limit **
   2  Index         4.2863        7.0307        .50000       -.28104E-05
   3  Normalizat    1.0064        .50176E-02    .46247E-01    .11722E-03
   4  Prefactor     .89783        .59159E-02    .44977E-01    .54348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 4.28634
  Normalizat = 1.00644
  Prefactor  = 0.897832
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.167     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6342.4        .21883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.2863        5.4696        .50000       -.14322    
   3  Normalizat    1.0064        .18769        .22834E-03   -.92815    
   4  Prefactor     .89783        .21272        .28201E-03   -.96217    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00072e-08
Minuit parameter uncertainties:
  1  0.00662648
  2  77.2502
  3  0.187811
  4  0.212919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250964': 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) = 4938.16697714
delta logL = -1.48850449477e-06

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  6.626e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  4.286e+00  7.725e+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.978e-01  2.129e-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.006e+00  1.878e-01  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/250964/cmap_HighResolution_263174401_263433601_4FGL_J1412.9+5018_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-09 04:56:58.831441', job_id='250964', GAL2='0.90', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631188618.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='92' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 250964: <4FGL_J1412.9+5018_daily_bin92> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin92> 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) <bullet0111>, 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:59 2021
Results reported at Thu Sep  9 04:56:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin92 213.241 50.301 263174401 263433601 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 :                                   937.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

