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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin960
RA = 213.241, Dec = 50.301
tmin = 488160001, tmax = 488419201
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='256459', job_status='RUN', time_executed='2021-09-09 05:04:27.661829', time_epoch_executed='1631189067.66' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256459/ft1_4FGL_J1412.9+5018_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256459/ft1_4FGL_J1412.9+5018_daily_bin960.fits outfile=/scratch/kocevski/256459/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin960.fits ra=213.241 dec=50.301 rad=12.0 tmin=488160001.0 tmax=488419201.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.35
user 5.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.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/256459/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/256459/ft1_filtered_4FGL_J1412.9+5018_daily_bin960.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/256459/ft1_filtered_4FGL_J1412.9+5018_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/256459/ltcube_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.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/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits
.....................!
real 12.14
user 11.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256459/ft1_filtered_4FGL_J1412.9+5018_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/256459/ltcube_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.fits outfile=/scratch/kocevski/256459/expmap_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.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/256459/ltcube_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.fits
.....................!
real 192.13
user 187.29
sys 4.37

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/256459/ft1_filtered_4FGL_J1412.9+5018_daily_bin960.fits scfile=/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits outfile=/scratch/kocevski/256459/cmap_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256459/ft1_filtered_4FGL_J1412.9+5018_daily_bin960.fits scfile=/scratch/kocevski/256459/ft2_4FGL_J1412.9+5018_daily_bin960.fits outfile=/scratch/kocevski/256459/cmap_HighResolution_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    319.05       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0489       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29552E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62884E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.402       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.028       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    21.828       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.733       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    4.2208       1.0000         .10000E-03   10000.    
    33 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1186       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .71117       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=   3051.063     FROM MIGRAD    STATUS=CONVERGED    979 CALLS     5208 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9178       -.23462E-07** at limit **
   2  Prefactor     .10000E-03    16.196       -.23964E-08** at limit **
   3  Prefactor     .10000E-03    9.3966        .25752E-06** at limit **
   4  Prefactor     .10000E-03    25.428        .57212E-06** at limit **
   5  norm          .10000E-03    1.7241       -.76595E-08** at limit **
   6  Prefactor     319.05        126.17       -.74836E-07   -.58301E-04
   7  Prefactor     .10000E-03    53.039       -.13713E-06** at limit **
   8  norm          .10000E-03    1.0233       -.69157E-07** at limit **
   9  norm          .10000E-03    73.998        .97198E-06** at limit **
  10  norm          2.0488        6.6347       -.31689E-05   -.55458E-04
  11  norm          .10000E-03    6.4670       -.40008E-07** at limit **
  12  Prefactor     .10004E-03    934.73       -.79240E-05** at limit **
  13  Prefactor     7.5610        500.97       -.95547E-05   -.37843E-04
  14  Prefactor     .78263        30.122        .52510E-05    .22601E-03
  15  Prefactor     23.067        61.971       -.54199E-08   -.53566E-04
  16  Prefactor     .10000E-03    2.5399        .21521E-07** at limit **
  17  Prefactor     .67038        104.65       -.14792E-04   -.13999E-04
  18  Prefactor     .30620        146.86       -.19093E-04    .11138E-03
  19  Prefactor     .10001E-03    5.0663        .29564E-05** at limit **
  20  Prefactor     .10000E-03    63.122        .25174E-06** at limit **
  21  Prefactor     .10000E-03    33.239        .32982E-06** at limit **
  22  Prefactor     38.111        69.842       -.67654E-05   -.17782E-03
  23  Prefactor     29.541        218.76        .80187E-05   -.41090E-04
  24  Prefactor     .10000E-03    18.543       -.39646E-06** at limit **
  25  Prefactor     .10000E-03    40.375       -.42479E-06** at limit **
  26  Prefactor     26.030        63.183        .21414E-06   -.13342E-04
  27  Prefactor     .10003E-03    41.708        .36887E-06** at limit **
  28  Prefactor     .10000E-03    9.7380       -.41281E-06** at limit **
  29  norm          21.827        5.2049       -.91976E-07    .41310E-04
  30  Prefactor     10.731        16.337       -.46956E-07   -.14218E-04
  31  Prefactor     .10000E-03    4.0463       -.36149E-07** at limit **
  32  Prefactor     4.2192        14.839       -.26620E-06    .23345E-06
  33  norm          .10000E-03    5.4123       -.17491E-06** at limit **
  34  Normalizat    1.1187        .25527        .13586E-05   -.26024E-03
  35  Prefactor     .71113        .27472       -.48251E-06   -.21657E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 319.053
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.04882
  norm       = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 7.56103
  Prefactor  = 0.782628
  Prefactor  = 23.0673
  Prefactor  = 0.0001
  Prefactor  = 0.670375
  Prefactor  = 0.306197
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.1107
  Prefactor  = 29.5411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0302
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 21.8272
  Prefactor  = 10.7308
  Prefactor  = 0.0001
  Prefactor  = 4.21916
  norm       = 0.000100001
  Normalizat = 1.11873
  Prefactor  = 0.711126
 **********
 **   18 **HESSE 
 **********

 FCN=   3051.063     FROM HESSE     STATUS=OK           764 CALLS     5972 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9242        .74698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4021        .16538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7258        .70829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     319.05        127.25        .11380E-03   -1.2116    
   7  Prefactor     .10000E-03    53.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0479        .10889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    73.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0488        6.6804        .12206E-02   -1.5422    
  11  norm          .10000E-03    6.4705        .13719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    930.22        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5610        487.85        .14597E-03   -1.5158    
  14  Prefactor     .78263        97.642        .45245E-02   -1.5531    
  15  Prefactor     23.067        61.683        .83403E-04   -1.4747    
  16  Prefactor     .10000E-03    2.5407        .85954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .67038        264.11        .53150E-02   -1.5544    
  18  Prefactor     .30620        227.40        .44578E-02   -1.5597    
  19  Prefactor     .10001E-03    101.27        .19916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.111        70.496        .64936E-04   -1.4473    
  23  Prefactor     29.541        219.04        .73888E-04   -1.4620    
  24  Prefactor     .10000E-03    18.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.030        63.225        .78522E-04   -1.4687    
  27  Prefactor     .10003E-03    41.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.7428        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          21.827        5.1987        .58119E-04   -1.4773    
  30  Prefactor     10.731        16.263        .12230E-03   -1.5053    
  31  Prefactor     .10000E-03    4.0539        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     4.2192        14.762        .19614E-03   -1.5297    
  33  norm          .10000E-03    10.855        .24742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1187        .29861        .21912E-03   -.89153    
  35  Prefactor     .71113        .32289        .31039E-03   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76146e-08
Minuit parameter uncertainties:
  1  1.02942e-05
  2  3.69337e-05
  3  1.45393e-05
  4  5.26814e-05
  5  6.40333e-06
  6  127.36
  7  0.000208096
  8  1.9272e-05
  9  0.000376611
  10  6.68287
  11  1.90003e-05
  12  0.0123974
  13  122.526
  14  17.5115
  15  61.8544
  16  1.11454e-05
  17  26.7297
  18  16.7503
  19  0.00225985
  20  0.000135234
  21  0.00017064
  22  70.6505
  23  161.719
  24  0.000122193
  25  0.00026223
  26  63.3886
  27  0.00216683
  28  2.83152e-05
  29  5.19884
  30  16.2693
  31  1.11068e-05
  32  14.7745
  33  0.000218032
  34  0.29906
  35  0.323744
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.307e+01  6.185e+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:  7.111e-01  3.237e-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.119e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/256459/likelihoodResults_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.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): 0
logL (Free Index) = 3051.06348007
delta logL = 1.46354418575e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3051.06347269
delta logL = 2.20072511183e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.235       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6533       1.0000          .0000       10.000    
     3 'Normalizat'    1.1188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71118       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=   3051.063     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      260 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.234        66.113        .83099E-04    .79555E-04
   2  Index         2.6528        1.8282        .15203E-01    .26368E-04
   3  Normalizat    1.1189        .27295        .21910E-03   -.73266E-04
   4  Prefactor     .71097        .31329        .31043E-03   -.55850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2337
  Index      = 2.65278
  Normalizat = 1.11892
  Prefactor  = 0.71097
 **********
 **   18 **HESSE 
 **********

 FCN=   3051.063     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.234        63.607        .16620E-04   -1.4744    
   2  Index         2.6528        1.7614        .60811E-03   -.48866    
   3  Normalizat    1.1189        .27307        .43820E-04   -.89147    
   4  Prefactor     .71097        .31336        .12417E-04   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52507e-10
Minuit parameter uncertainties:
  1  63.7931
  2  1.81187
  3  0.273413
  4  0.314145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256459': 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) = 3051.06347242
delta logL = 2.22853745981e-05

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  7.110e-01  3.141e-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.119e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/256459/cmap_HighResolution_488160001_488419201_4FGL_J1412.9+5018_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-09 05:16:41.448459', job_id='256459', GAL2='0.71', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631189801.45', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.23e-05', ts2='0.19', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='960' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 256459: <4FGL_J1412.9+5018_daily_bin960> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin960> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 05:00:38 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:00:39 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:00:39 2021
Terminated at Thu Sep  9 05:16:42 2021
Results reported at Thu Sep  9 05:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin960 213.241 50.301 488160001 488419201 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 :                                   731.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.77 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.

