/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 12 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1412.9+5018_daily_bin72
RA = 213.241, Dec = 50.301
tmin = 257990401, tmax = 258249601
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='250927', job_status='RUN', time_executed='2021-09-09 04:41:28.563559', time_epoch_executed='1631187688.56' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250927/ft1_4FGL_J1412.9+5018_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250927/ft1_4FGL_J1412.9+5018_daily_bin72.fits outfile=/scratch/kocevski/250927/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin72.fits ra=213.241 dec=50.301 rad=12.0 tmin=257990401.0 tmax=258249601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.94
user 1.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250927/ft1_filtered_4FGL_J1412.9+5018_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/250927/ltcube_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.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/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits
.....................!
real 13.16
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250927/ft1_filtered_4FGL_J1412.9+5018_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/250927/ltcube_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.fits outfile=/scratch/kocevski/250927/expmap_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.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/250927/ltcube_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.fits
.....................!
real 192.70
user 185.86
sys 4.74

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/250927/ft1_filtered_4FGL_J1412.9+5018_daily_bin72.fits scfile=/scratch/kocevski/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits outfile=/scratch/kocevski/250927/cmap_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.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 1.00
user 0.38
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250927/ft1_filtered_4FGL_J1412.9+5018_daily_bin72.fits scfile=/scratch/kocevski/250927/ft2_4FGL_J1412.9+5018_daily_bin72.fits outfile=/scratch/kocevski/250927/cmap_HighResolution_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.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.89
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    114.73       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9534       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7713       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0513       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.801       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.129       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .58571E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.722       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1323       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.3793       1.0000         .10000E-03   10000.    
    33 'norm      '    6.0321       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0311       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .81461       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=   4382.621     FROM MIGRAD    STATUS=CONVERGED   1001 CALLS     5164 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .94025        .33599E-08** at limit **
   2  Prefactor     .10000E-03    38.390       -.48220E-06** at limit **
   3  Prefactor     24.581        21.224        .46866E-06   -.25264E-04
   4  Prefactor     .10000E-03    53.883        .40312E-06** at limit **
   5  norm          1.4555        3.3310        .48474E-06   -.92707E-05
   6  Prefactor     23.813        72.227       -.77119E-06   -.34199E-04
   7  Prefactor     114.81        78.046        .22256E-05    .45731E-04
   8  norm          5.9540        2.2535        .17420E-06   -.29535E-03
   9  norm          .10000E-03    32.941       -.56569E-06** at limit **
  10  norm          3.7706        5.7582        .41812E-06   -.50153E-04
  11  norm          .10000E-03    6.1087       -.11122E-08** at limit **
  12  Prefactor     .10024E-03    1016.8       -.32031E-04** at limit **
  13  Prefactor     .10000E-03    28.048        .92776E-06** at limit **
  14  Prefactor     .10000E-03    8.2810       -.12781E-07** at limit **
  15  Prefactor     48.739        44.288        .14613E-05   -.51708E-05
  16  Prefactor     .10015E-03    6.2812        .30981E-05** at limit **
  17  Prefactor     4.0856        12.955       -.83554E-07   -.11423E-03
  18  Prefactor     .10000E-03    20.703       -.52204E-06** at limit **
  19  Prefactor     7.0522        4.2527        .47275E-07   -.19598E-03
  20  Prefactor     56.882        27.729        .32759E-06   -.55952E-04
  21  Prefactor     .10000E-03    18.061       -.26190E-06** at limit **
  22  Prefactor     .10000E-03    11.413        .96280E-07** at limit **
  23  Prefactor     29.720        57.069       -.24283E-06    .36392E-04
  24  Prefactor     12.134        24.748        .87100E-06   -.18247E-04
  25  Prefactor     .10000E-03    23.640       -.54387E-06** at limit **
  26  Prefactor     .10000E-03    25.382        .28834E-06** at limit **
  27  Prefactor     .10001E-03    20.386        .62387E-06** at limit **
  28  Prefactor     12.717        13.118       -.63919E-06   -.10754E-03
  29  norm          .10000E-03    .48815        .41203E-08** at limit **
  30  Prefactor     .10001E-03    41.030       -.28572E-05** at limit **
  31  Prefactor     1.1341        10.148        .34486E-05   -.21990E-04
  32  Prefactor     6.3804        11.964        .53386E-05   -.45727E-04
  33  norm          6.0336        6.5114        .24137E-06   -.62199E-04
  34  Normalizat    1.0309        .21751       -.33349E-05   -.27576E-03
  35  Prefactor     .81457        .22789       -.75428E-06   -.32092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5808
  Prefactor  = 0.0001
  norm       = 1.45554
  Prefactor  = 23.8132
  Prefactor  = 114.813
  norm       = 5.95403
  norm       = 0.0001
  norm       = 3.77057
  norm       = 0.0001
  Prefactor  = 0.000100245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7387
  Prefactor  = 0.000100146
  Prefactor  = 4.08562
  Prefactor  = 0.0001
  Prefactor  = 7.05222
  Prefactor  = 56.8818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7198
  Prefactor  = 12.1344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 12.7169
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.13414
  Prefactor  = 6.38035
  norm       = 6.03357
  Normalizat = 1.03086
  Prefactor  = 0.814569
 **********
 **   18 **HESSE 
 **********

 FCN=   4382.621     FROM HESSE     STATUS=OK           762 CALLS     5926 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .94105        .62692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.581        21.160        .80805E-04   -1.4716    
   4  Prefactor     .10000E-03    54.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4555        3.2752        .17042E-03   -1.5467    
   6  Prefactor     23.813        72.365        .82100E-04   -1.4732    
   7  Prefactor     114.81        78.453        .37560E-04   -1.3561    
   8  norm          5.9540        2.2616        .57525E-04   -1.5220    
   9  norm          .10000E-03    32.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7706        5.7270        .18077E-03   -1.5320    
  11  norm          .10000E-03    6.1187        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10024E-03    1048.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.739        43.986        .57409E-04   -1.4311    
  16  Prefactor     .10015E-03    19.191        .29227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0856        12.907        .19931E-03   -1.5304    
  18  Prefactor     .10000E-03    20.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0522        4.2489        .99140E-04   -1.5177    
  20  Prefactor     56.882        27.830        .53193E-04   -1.4198    
  21  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.720        55.616        .73393E-04   -1.4617    
  24  Prefactor     12.134        24.750        .11502E-03   -1.5011    
  25  Prefactor     .10000E-03    23.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    25.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    113.98        .55143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.717        13.074        .11231E-03   -1.4995    
  29  norm          .10000E-03    .49028        .45158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    42.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1341        10.148        .39515E-03   -1.5495    
  32  Prefactor     6.3804        12.123        .79457E-03   -1.5203    
  33  norm          6.0336        6.4916        .16348E-03   -1.5217    
  34  Normalizat    1.0309        .25782        .23126E-03   -.92003    
  35  Prefactor     .81457        .27096        .29506E-03   -.99194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16679e-09
Minuit parameter uncertainties:
  1  1.13263e-06
  2  1.48107e-05
  3  21.1665
  4  0.000242073
  5  3.27556
  6  72.6331
  7  78.5239
  8  2.26162
  9  0.000100367
  10  5.72782
  11  8.93797e-06
  12  0.0326386
  13  0.000118664
  14  3.64353e-06
  15  44.0154
  16  0.0033447
  17  12.9153
  18  3.40053e-05
  19  4.24912
  20  27.8367
  21  2.08439e-05
  22  2.67315e-06
  23  55.7128
  24  24.7705
  25  7.07079e-05
  26  5.84596e-05
  27  0.00172616
  28  13.0768
  29  4.26189e-07
  30  0.000944671
  31  6.78619
  32  12.128
  33  6.49232
  34  0.258132
  35  0.271404
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  4.874e+01  4.402e+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:  8.146e-01  2.714e-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.031e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 213.241 50.301
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 9.67e-06

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

Saving results to:
/scratch/kocevski/250927/likelihoodResults_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.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) = 4382.55255194
delta logL = 0.0682362880734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4382.55079205
delta logL = 0.0699961801347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.761       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3831       1.0000          .0000       10.000    
     3 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4382.551     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.921        1823.1        .12975E-02    .72812E-04
   2  Index         2.3858        5.7636        .22383        .75265E-04
   3  Normalizat    1.0379        .96598E-01    .41443E-01    .81767E-04
   4  Prefactor     .80805        .10677        .66931E-01    .65852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9214
  Index      = 2.38579
  Normalizat = 1.03792
  Prefactor  = 0.808048
 **********
 **   18 **HESSE 
 **********

 FCN=   4382.551     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.921        58.597        .51900E-04   -1.4158    
   2  Index         2.3858        .72077        .80293E-02   -.55018    
   3  Normalizat    1.0379        .23187        .23056E-03   -.91771    
   4  Prefactor     .80805        .26571        .29610E-03   -.99432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81283e-11
Minuit parameter uncertainties:
  1  58.6537
  2  0.724251
  3  0.232094
  4  0.266131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250927': 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) = 4382.55077441
delta logL = 0.0700138239454

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.080e-01  2.661e-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.038e+00  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 213.241 50.301
Photon Index (Free Index): 2.39 +/- 0.72
Photon Flux (Free Index): 3.78e-08 +/- 3.75e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.32e-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/250927/cmap_HighResolution_257990401_258249601_4FGL_J1412.9+5018_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.26e-05', photon_flux_error='3.90e-08', dlogl='7.00e-02', energy_flux='1.07e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-09 04:56:12.839659', photon_index_error2='0.72', photon_index2='2.39', ts='2.29', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.32e-05', EG='1.03', time_epoch_completed='1631188572.84', return_code='0', job_id='250927', GAL2='0.81', EG2='1.04', return_code2='0', energy_flux_error='9.67e-06', photon_flux_error2='3.75e-08', ts2='2.42', photon_index='2.66' WHERE bin_id='72' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 250927: <4FGL_J1412.9+5018_daily_bin72> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin72> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 04:40:53 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:40:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 04:40:54 2021
Terminated at Thu Sep  9 04:56:13 2021
Results reported at Thu Sep  9 04:56:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin72 213.241 50.301 257990401 258249601 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 :                                   876.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

