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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin765
RA = 213.241, Dec = 50.301
tmin = 437616001, tmax = 437875201
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='255026', job_status='RUN', time_executed='2021-09-09 04:59:18.220084', time_epoch_executed='1631188758.22' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255026/ft1_4FGL_J1412.9+5018_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255026/ft2_4FGL_J1412.9+5018_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255026/ft1_4FGL_J1412.9+5018_daily_bin765.fits outfile=/scratch/kocevski/255026/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin765.fits ra=213.241 dec=50.301 rad=12.0 tmin=437616001.0 tmax=437875201.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.59
user 5.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255026/ft2_4FGL_J1412.9+5018_daily_bin765.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/255026/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin765.fits evtable="EVENTS" outfile="/scratch/kocevski/255026/ft1_filtered_4FGL_J1412.9+5018_daily_bin765.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255026/ft1_filtered_4FGL_J1412.9+5018_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/255026/ft2_4FGL_J1412.9+5018_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/255026/ltcube_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.fits outfile=/scratch/kocevski/255026/expmap_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.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/255026/ltcube_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.fits
.....................!
real 189.39
user 184.73
sys 4.25

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/255026/ft1_filtered_4FGL_J1412.9+5018_daily_bin765.fits scfile=/scratch/kocevski/255026/ft2_4FGL_J1412.9+5018_daily_bin765.fits outfile=/scratch/kocevski/255026/cmap_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255026/ft1_filtered_4FGL_J1412.9+5018_daily_bin765.fits scfile=/scratch/kocevski/255026/ft2_4FGL_J1412.9+5018_daily_bin765.fits outfile=/scratch/kocevski/255026/cmap_HighResolution_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.312       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4701       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16284E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    111.06       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.512       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.226       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0322       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=   3011.036     FROM MIGRAD    STATUS=CONVERGED    978 CALLS     5038 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2202        .90491E-08** at limit **
   2  Prefactor     .10000E-03    19.890        .90311E-07** at limit **
   3  Prefactor     .10000E-03    36.705       -.59200E-07** at limit **
   4  Prefactor     39.308        41.136        .21709E-06    .24279E-05
   5  norm          7.2731        5.9807       -.14782E-06    .68041E-05
   6  Prefactor     .10000E-03    43.033        .58157E-07** at limit **
   7  Prefactor     .10000E-03    32.081        .75830E-07** at limit **
   8  norm          7.4699        2.9212        .30840E-07    .48830E-05
   9  norm          .10000E-03    46.444        .69150E-07** at limit **
  10  norm          .10000E-03    11.284        .39630E-06** at limit **
  11  norm          .10000E-03    9.7011        .88877E-07** at limit **
  12  Prefactor     .10000E-03    299.14        .11564E-05** at limit **
  13  Prefactor     .10001E-03    956.74       -.13216E-04** at limit **
  14  Prefactor     .10000E-03    20.300       -.12389E-07** at limit **
  15  Prefactor     111.05        74.223       -.12564E-05    .14321E-04
  16  Prefactor     .10000E-03    5.2592        .20034E-07** at limit **
  17  Prefactor     .10000E-03    60.138        .12858E-07** at limit **
  18  Prefactor     33.060        35.806       -.20975E-05   -.10314E-04
  19  Prefactor     1.8197        5.0696       -.32535E-05    .24508E-04
  20  Prefactor     .10000E-03    132.31        .12893E-06** at limit **
  21  Prefactor     .10000E-03    28.814        .38327E-06** at limit **
  22  Prefactor     .10000E-03    41.518        .51771E-06** at limit **
  23  Prefactor     .10000E-03    160.05        .62077E-06** at limit **
  24  Prefactor     32.514        44.015        .13974E-06   -.26193E-05
  25  Prefactor     .10000E-03    31.448        .77399E-07** at limit **
  26  Prefactor     .10000E-03    43.351        .14026E-07** at limit **
  27  Prefactor     .10000E-03    42.408        .21982E-06** at limit **
  28  Prefactor     34.227        31.854        .45577E-06   -.75386E-06
  29  norm          .10000E-03    1.7989        .29931E-07** at limit **
  30  Prefactor     .10000E-03    9.9186        .69581E-07** at limit **
  31  Prefactor     .10000E-03    50.834        .48498E-06** at limit **
  32  Prefactor     .10000E-03    13.926        .51788E-07** at limit **
  33  norm          .10000E-03    9.6826       -.88746E-07** at limit **
  34  Normalizat    1.0386        .25524        .13894E-06   -.17919E-04
  35  Prefactor     1.0320        .29518       -.13186E-05    .12608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.308
  norm       = 7.27309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.4699
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 111.051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0604
  Prefactor  = 1.8197
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2272
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.03859
  Prefactor  = 1.032
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.036     FROM HESSE     STATUS=OK           754 CALLS     5792 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2210        .59196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.308        41.197        .63927E-04   -1.4453    
   5  norm          7.2731        5.9627        .11511E-03   -1.5169    
   6  Prefactor     .10000E-03    43.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4699        2.9265        .55513E-04   -1.5161    
   9  norm          .10000E-03    46.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.824        .36078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.7120        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    300.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    951.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     111.05        74.043        .38169E-04   -1.3596    
  16  Prefactor     .10000E-03    5.2813        .12286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.060        35.614        .69694E-04   -1.4557    
  19  Prefactor     1.8197        5.0235        .19095E-03   -1.5438    
  20  Prefactor     .10000E-03    133.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    160.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.514        44.050        .70275E-04   -1.4567    
  25  Prefactor     .10000E-03    31.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    43.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    42.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     34.227        31.781        .68497E-04   -1.4537    
  29  norm          .10000E-03    1.8451        .14364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.9227        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    52.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    13.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    9.7812        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0386        .30358        .23798E-03   -.91749    
  35  Prefactor     1.0320        .34950        .28683E-03   -.91670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29109e-10
Minuit parameter uncertainties:
  1  4.82458e-07
  2  3.07932e-05
  3  5.23779e-05
  4  41.2265
  5  5.96314
  6  4.05148e-05
  7  2.85139e-05
  8  2.92658
  9  4.66537e-05
  10  0.000165563
  11  2.57113e-05
  12  0.00199966
  13  0.00665304
  14  9.44324e-06
  15  74.1051
  16  1.31951e-05
  17  0.000102337
  18  35.6368
  19  5.02471
  20  0.000905291
  21  0.000145628
  22  0.000283314
  23  0.00061555
  24  44.0938
  25  2.94374e-05
  26  1.60729e-05
  27  7.28139e-05
  28  31.797
  29  2.6265e-06
  30  1.85744e-05
  31  0.0001634
  32  1.19396e-05
  33  1.86095e-05
  34  0.304083
  35  0.350269
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.032e+00  3.503e-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.039e+00  3.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.10
Ra Dec: 213.241 50.301
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 6.57e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.63e-05

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): 0
logL (Free Index) = 3010.56372089
delta logL = 0.472284526143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3010.5633895
delta logL = 0.472615923105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    172.81       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0457       1.0000          .0000       10.000    
     3 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98095       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=   3010.563     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      281 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     172.18        115.34        .15347E-03    .19815E-04
   2  Index         2.0462        .53939        .61747E-02    .10455E-04
   3  Normalizat    1.0853        .29025        .23345E-03    .15515E-03
   4  Prefactor     .98107        .34776        .29301E-03    .13230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 172.178
  Index      = 2.04617
  Normalizat = 1.08526
  Prefactor  = 0.981074
 **********
 **   18 **HESSE 
 **********

 FCN=   3010.563     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     172.18        114.84        .30695E-04   -1.3076    
   2  Index         2.0462        .53697        .24699E-03   -.63201    
   3  Normalizat    1.0853        .29045        .46691E-04   -.90226    
   4  Prefactor     .98107        .34797        .58601E-04   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32497e-11
Minuit parameter uncertainties:
  1  114.991
  2  0.538569
  3  0.290873
  4  0.34877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255026': 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): 0
logL (Free Index) = 3010.56337454
delta logL = 0.472630880334

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.722e+02  1.150e+02  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.046e+00  5.386e-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:  9.811e-01  3.488e-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.085e+00  2.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 213.241 50.301
Photon Index (Free Index): 2.05 +/- 0.54
Photon Flux (Free Index): 7.61e-08 +/- 5.81e-08
Energy Flux (Free Index): 4.71e-05 +/- 5.12e-05

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/255026/cmap_HighResolution_437616001_437875201_4FGL_J1412.9+5018_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='4.71e-05', photon_flux_error='6.57e-08', dlogl='4.73e-01', energy_flux='2.44e-05', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-09-09 05:09:52.955869', photon_index_error2='0.54', photon_index2='2.05', ts='5.10', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.12e-05', EG='1.04', time_epoch_completed='1631189392.96', return_code='0', job_id='255026', GAL2='0.98', EG2='1.09', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.81e-08', ts2='6.06', photon_index='2.66' WHERE bin_id='765' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 255026: <4FGL_J1412.9+5018_daily_bin765> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin765> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 04:55:30 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:55:31 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:31 2021
Terminated at Thu Sep  9 05:09:53 2021
Results reported at Thu Sep  9 05:09:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin765 213.241 50.301 437616001 437875201 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 :                                   633.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

