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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1543
RA = 213.241, Dec = 50.301
tmin = 639273601, tmax = 639532801
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='260586', job_status='RUN', time_executed='2021-09-09 05:15:35.832298', time_epoch_executed='1631189735.83' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260586/ft1_4FGL_J1412.9+5018_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260586/ft1_4FGL_J1412.9+5018_daily_bin1543.fits outfile=/scratch/kocevski/260586/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1543.fits ra=213.241 dec=50.301 rad=12.0 tmin=639273601.0 tmax=639532801.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.23
user 4.99
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260586/ft1_filtered_4FGL_J1412.9+5018_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/260586/ltcube_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.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/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits
.....................!
real 11.61
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260586/ft1_filtered_4FGL_J1412.9+5018_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/260586/ltcube_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.fits outfile=/scratch/kocevski/260586/expmap_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.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/260586/ltcube_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.fits
.....................!
real 189.93
user 185.39
sys 4.18

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/260586/ft1_filtered_4FGL_J1412.9+5018_daily_bin1543.fits scfile=/scratch/kocevski/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits outfile=/scratch/kocevski/260586/cmap_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=213.241 yref=50.301 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260586/ft1_filtered_4FGL_J1412.9+5018_daily_bin1543.fits scfile=/scratch/kocevski/260586/ft2_4FGL_J1412.9+5018_daily_bin1543.fits outfile=/scratch/kocevski/260586/cmap_HighResolution_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    97.830       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30607E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9733       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    119.77       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33755E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.511       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.627       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.792       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .87868       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.9852       1.0000         .10000E-03   10000.    
    33 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .65195       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2416       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=   5710.888     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     5130 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1938       -.10056E-05** at limit **
   2  Prefactor     13.398        29.418        .21587E-04    .48338E-04
   3  Prefactor     18.427        25.475       -.50479E-05   -.18100E-04
   4  Prefactor     .10000E-03    10.713       -.13395E-05** at limit **
   5  norm          4.2618        5.3884        .21335E-05   -.31054E-03
   6  Prefactor     97.853        61.747        .18258E-04    .13480E-04
   7  Prefactor     .10000E-03    25.791       -.76760E-05** at limit **
   8  norm          .10000E-03    .54965        .17439E-07** at limit **
   9  norm          .10000E-03    23.594        .14408E-05** at limit **
  10  norm          .10000E-03    1.5727       -.31175E-06** at limit **
  11  norm          .10000E-03    8.7702        .13986E-05** at limit **
  12  Prefactor     .10000E-03    116.70       -.97486E-05** at limit **
  13  Prefactor     9.9772        40.044        .51584E-05   -.97355E-05
  14  Prefactor     .10000E-03    6.5287        .19879E-07** at limit **
  15  Prefactor     119.79        56.668        .86993E-05   -.44853E-04
  16  Prefactor     5.8352        5.4991       -.11453E-05   -.20596E-03
  17  Prefactor     .10000E-03    15.043        .84084E-05** at limit **
  18  Prefactor     .10000E-03    26.206       -.88359E-05** at limit **
  19  Prefactor     4.8353        3.4367        .18913E-06   -.35708E-03
  20  Prefactor     .10016E-03    13.054        .40871E-05** at limit **
  21  Prefactor     .10000E-03    9.6903        .64653E-05** at limit **
  22  Prefactor     10.502        26.319       -.42172E-05   -.31393E-04
  23  Prefactor     29.616        62.750       -.16400E-04   -.27814E-05
  24  Prefactor     .10000E-03    42.569        .13340E-04** at limit **
  25  Prefactor     .10000E-03    22.682        .52165E-05** at limit **
  26  Prefactor     .10000E-03    71.490       -.93132E-05** at limit **
  27  Prefactor     19.794        17.865        .24202E-05    .27262E-04
  28  Prefactor     .10000E-03    13.636       -.90132E-06** at limit **
  29  norm          .88026        1.1895        .15003E-06   -.18062E-04
  30  Prefactor     .10000E-03    12.012       -.77476E-05** at limit **
  31  Prefactor     .10002E-03    3.8203       -.10865E-05** at limit **
  32  Prefactor     3.9795        8.3345        .13364E-05    .12171E-04
  33  norm          .10000E-03    2.0488        .29805E-06** at limit **
  34  Normalizat    .65196        .16889       -.65776E-05   -.32625E-04
  35  Prefactor     1.2418        .19256        .16387E-05   -.25648E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 13.3979
  Prefactor  = 18.4267
  Prefactor  = 0.0001
  norm       = 4.26178
  Prefactor  = 97.8528
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97721
  Prefactor  = 0.0001
  Prefactor  = 119.786
  Prefactor  = 5.83523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83532
  Prefactor  = 0.000100161
  Prefactor  = 0.0001
  Prefactor  = 10.5018
  Prefactor  = 29.6162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7943
  Prefactor  = 0.0001
  norm       = 0.880264
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 3.97947
  norm       = 0.0001
  Normalizat = 0.651964
  Prefactor  = 1.24181
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.888     FROM HESSE     STATUS=OK           770 CALLS     5900 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0694        .21599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.398        29.289        .10954E-03   -1.4976    
   3  Prefactor     18.427        25.355        .93296E-04   -1.4849    
   4  Prefactor     .10000E-03    10.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2618        5.3466        .15248E-03   -1.5295    
   6  Prefactor     97.853        61.743        .40641E-04   -1.3726    
   7  Prefactor     .10000E-03    25.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .80218        .10801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5847        .92523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.8263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    116.69        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9772        39.873        .12688E-03   -1.5076    
  14  Prefactor     .10000E-03    6.5310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     119.79        56.609        .36771E-04   -1.3515    
  16  Prefactor     5.8352        5.4942        .16204E-03   -1.5225    
  17  Prefactor     .10000E-03    15.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8353        3.4216        .96596E-04   -1.5268    
  20  Prefactor     .10016E-03    70.813        .51710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.502        26.272        .12358E-03   -1.5060    
  23  Prefactor     29.616        62.628        .73607E-04   -1.4619    
  24  Prefactor     .10000E-03    43.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    71.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.794        17.829        .90029E-04   -1.4818    
  28  Prefactor     .10000E-03    13.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .88026        1.1890        .50920E-04   -1.5520    
  30  Prefactor     .10000E-03    12.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10002E-03    8.5426        .28408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.9795        8.2704        .20204E-03   -1.5309    
  33  norm          .10000E-03    3.5974        .21038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .65196        .19343        .25647E-03   -1.0582    
  35  Prefactor     1.2418        .22667        .23613E-03   -.85054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41439e-09
Minuit parameter uncertainties:
  1  0.00018396
  2  29.3208
  3  25.3701
  4  7.71816e-05
  5  5.34717
  6  61.7837
  7  0.000164892
  8  5.63536e-06
  9  1.65055e-06
  10  1.98286e-05
  11  1.89766e-05
  12  9.39834e-06
  13  39.9372
  14  2.0272e-06
  15  56.6349
  16  5.49472
  17  1.17228e-05
  18  8.7693e-06
  19  3.42171
  20  0.0067706
  21  2.37849e-05
  22  26.3008
  23  62.7677
  24  0.000174418
  25  4.07206e-05
  26  0.000149734
  27  17.8342
  28  8.6569e-05
  29  1.18899
  30  0.000111871
  31  0.000799013
  32  8.27281
  33  4.83687e-05
  34  0.193628
  35  0.226848
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.198e+02  5.663e+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.242e+00  2.268e-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:  6.520e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.86
Ra Dec: 213.241 50.301
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.02e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.24e-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) = 5710.43717992
delta logL = 0.450492212612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5710.43472803
delta logL = 0.452944096181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.095       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2614       1.0000          .0000       10.000    
     3 'Normalizat'    .60731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2833       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=   5710.435     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.099        79.008        .48641E-04   -.71474E-04
   2  Index         3.2614        .86363        .41814E-02   -.19780E-04
   3  Normalizat    .60739        .19008        .26488E-03   -.13177E-04
   4  Prefactor     1.2832        .22995        .23285E-03    .73726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.0992
  Index      = 3.26139
  Normalizat = 0.607389
  Prefactor  = 1.28317
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.435     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.099        65.096        .97281E-05   -1.4056    
   2  Index         3.2614        .71179        .16725E-03   -.35514    
   3  Normalizat    .60739        .18886        .10595E-04   -1.0767    
   4  Prefactor     1.2832        .22852        .46569E-04   -.83809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69603e-11
Minuit parameter uncertainties:
  1  65.1643
  2  0.714555
  3  0.189066
  4  0.228699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260586': 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) = 5710.43472788
delta logL = 0.452944249824

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  6.810e+01  6.516e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  3.261e+00  7.146e-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:  1.283e+00  2.287e-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:  6.074e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.09
Ra Dec: 213.241 50.301
Photon Index (Free Index): 3.26 +/- 0.71
Photon Flux (Free Index): 1.36e-07 +/- 6.03e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.03e-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/260586/cmap_HighResolution_639273601_639532801_4FGL_J1412.9+5018_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.44e-05', photon_flux_error='5.02e-08', dlogl='4.53e-01', energy_flux='2.63e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-09 05:30:55.591598', photon_index_error2='0.71', photon_index2='3.26', ts='7.86', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.65', time_epoch_completed='1631190655.59', return_code='0', job_id='260586', GAL2='1.28', EG2='0.61', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='6.03e-08', ts2='9.09', photon_index='2.66' WHERE bin_id='1543' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:30:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 260586: <4FGL_J1412.9+5018_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1543> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 05:15:24 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 05:15:26 2021
Terminated at Thu Sep  9 05:30:57 2021
Results reported at Thu Sep  9 05:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1543 213.241 50.301 639273601 639532801 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 :                                   915.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

