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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin73
RA = 213.241, Dec = 50.301
tmin = 258249601, tmax = 258508801
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='250929', job_status='RUN', time_executed='2021-09-09 04:43:54.775484', time_epoch_executed='1631187834.78' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250929

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250929/ft1_4FGL_J1412.9+5018_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250929/ft1_4FGL_J1412.9+5018_daily_bin73.fits outfile=/scratch/kocevski/250929/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin73.fits ra=213.241 dec=50.301 rad=12.0 tmin=258249601.0 tmax=258508801.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.29
user 0.99
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.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/250929/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/250929/ft1_filtered_4FGL_J1412.9+5018_daily_bin73.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.87
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250929/ft1_filtered_4FGL_J1412.9+5018_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/250929/ltcube_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.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/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits
.....................!
real 9.57
user 9.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250929/ft1_filtered_4FGL_J1412.9+5018_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/250929/ltcube_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.fits outfile=/scratch/kocevski/250929/expmap_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.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/250929/ltcube_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.fits
.....................!
real 191.03
user 184.36
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/250929/ft1_filtered_4FGL_J1412.9+5018_daily_bin73.fits scfile=/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits outfile=/scratch/kocevski/250929/cmap_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.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.78
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250929/ft1_filtered_4FGL_J1412.9+5018_daily_bin73.fits scfile=/scratch/kocevski/250929/ft2_4FGL_J1412.9+5018_daily_bin73.fits outfile=/scratch/kocevski/250929/cmap_HighResolution_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.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.93
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.898       1.0000         .10000E-03   10000.    
     5 'norm      '    .10992E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.407       1.0000         .10000E-03   10000.    
     9 'norm      '    .10736E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4755       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11203E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1010       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.316       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    119.14       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14082E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.557       1.0000         .10000E-03   10000.    
    29 'norm      '    .10717E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.661       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .51972       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2050       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=   3170.982     FROM MIGRAD    STATUS=CONVERGED    976 CALLS     5109 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9570        .29094E-06** at limit **
   2  Prefactor     .10001E-03    39.855        .94650E-06** at limit **
   3  Prefactor     25.053        29.705        .75967E-06    .38177E-04
   4  Prefactor     23.942        72.653        .22187E-06    .14538E-03
   5  norm          .10000E-03    10.229        .55427E-07** at limit **
   6  Prefactor     .10000E-03    31.377        .24496E-06** at limit **
   7  Prefactor     .10000E-03    21.984       -.10765E-06** at limit **
   8  norm          13.407        3.9073        .73998E-07    .12419E-03
   9  norm          .10002E-03    115.15       -.24296E-05** at limit **
  10  norm          8.4741        7.7436        .32914E-06   -.17031E-03
  11  norm          .10000E-03    6.7865       -.22084E-07** at limit **
  12  Prefactor     .10001E-03    262.46        .17493E-05** at limit **
  13  Prefactor     .10000E-03    32.711        .85601E-07** at limit **
  14  Prefactor     1.0958        75.855        .35109E-04   -.30736E-05
  15  Prefactor     .10000E-03    93.618       -.31411E-06** at limit **
  16  Prefactor     .10000E-03    10.088       -.17860E-06** at limit **
  17  Prefactor     48.240        43.666        .59076E-06    .37249E-04
  18  Prefactor     28.316        28.395       -.16674E-05    .32036E-05
  19  Prefactor     11.474        5.5492       -.72560E-09    .74213E-04
  20  Prefactor     .10000E-03    24.669       -.31860E-06** at limit **
  21  Prefactor     16.247        50.369        .89499E-06    .60875E-05
  22  Prefactor     .10000E-03    24.624       -.29879E-06** at limit **
  23  Prefactor     119.13        117.99        .14110E-05   -.23192E-05
  24  Prefactor     .10000E-03    53.674       -.25639E-06** at limit **
  25  Prefactor     .10000E-03    34.265       -.88988E-07** at limit **
  26  Prefactor     .10001E-03    84.934        .76411E-06** at limit **
  27  Prefactor     .10000E-03    99.420       -.19500E-05** at limit **
  28  Prefactor     31.546        26.746        .36769E-06    .13291E-03
  29  norm          .10000E-03    1.8909       -.21811E-06** at limit **
  30  Prefactor     20.661        14.944        .11650E-06    .31105E-04
  31  Prefactor     .10000E-03    2.5943        .10290E-07** at limit **
  32  Prefactor     .10000E-03    4.2019       -.25056E-07** at limit **
  33  norm          .10000E-03    1.7134       -.61582E-08** at limit **
  34  Normalizat    .51963        .26517       -.30138E-05    .12076E-04
  35  Prefactor     1.2051        .26364        .11004E-05    .11380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 25.0527
  Prefactor  = 23.9419
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.4073
  norm       = 0.000100016
  norm       = 8.47413
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 1.09584
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.2397
  Prefactor  = 28.3156
  Prefactor  = 11.4736
  Prefactor  = 0.0001
  Prefactor  = 16.2465
  Prefactor  = 0.0001
  Prefactor  = 119.128
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 31.5461
  norm       = 0.0001
  Prefactor  = 20.6607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.519625
  Prefactor  = 1.20508
 **********
 **   18 **HESSE 
 **********

 FCN=   3170.982     FROM HESSE     STATUS=OK           758 CALLS     5867 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9894        .94584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    39.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.053        29.458        .80039E-04   -1.4706    
   4  Prefactor     23.942        73.105        .81940E-04   -1.4729    
   5  norm          .10000E-03    10.363        .34703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.407        3.9128        .54001E-04   -1.4975    
   9  norm          .10002E-03    116.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4741        7.7473        .13770E-03   -1.5126    
  11  norm          .10000E-03    6.7904        .14328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    263.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0958        76.059        .22636E-02   -1.5499    
  15  Prefactor     .10000E-03    93.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.162        .17441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.240        44.129        .57734E-04   -1.4318    
  18  Prefactor     28.316        28.436        .75288E-04   -1.4643    
  19  Prefactor     11.474        5.5422        .84463E-04   -1.5030    
  20  Prefactor     .10000E-03    24.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.247        50.510        .99369E-04   -1.4902    
  22  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     119.13        117.85        .36866E-04   -1.3521    
  24  Prefactor     .10000E-03    54.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    85.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    100.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     31.546        26.143        .71326E-04   -1.4584    
  29  norm          .10000E-03    3.3843        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     20.661        14.939        .88117E-04   -1.4799    
  31  Prefactor     .10000E-03    2.5972        .88571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.2077        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    1.7142        .71987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .51963        .30365        .31006E-03   -1.1151    
  35  Prefactor     1.2051        .30434        .24809E-03   -.86175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10261e-09
Minuit parameter uncertainties:
  1  2.96031e-05
  2  0.00143522
  3  29.4749
  4  73.3801
  5  1.36621e-05
  6  0.000396171
  7  8.8452e-05
  8  3.9129
  9  0.00270227
  10  7.74817
  11  8.38554e-06
  12  0.00382627
  13  0.000219171
  14  18.2825
  15  0.000703385
  16  2.88895e-05
  17  44.1589
  18  28.45
  19  5.54245
  20  2.51703e-05
  21  50.6431
  22  5.14202e-05
  23  118.079
  24  0.000647767
  25  4.99203e-05
  26  0.00152826
  27  0.000350461
  28  26.1521
  29  1.7527e-05
  30  14.9419
  31  6.24801e-06
  32  4.73386e-06
  33  2.70212e-06
  34  0.304624
  35  0.304784
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.034e-04  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.205e+00  3.048e-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:  5.196e-01  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250929/likelihoodResults_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.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) = 3170.98221033
delta logL = -5.06798837705e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3170.98215968
delta logL = -3.05467438011e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6195       1.0000          .0000       10.000    
     3 'Normalizat'    .51963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2051       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=   3170.982     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.296        .18142E-02** at limit **
   2  Index         2.6457        6.3211        .50000       -.27510E-05
   3  Normalizat    .51963        .24530        .31007E-03    .35070E-04
   4  Prefactor     1.2051        .29157        .24809E-03    .34667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.64568
  Normalizat = 0.519628
  Prefactor  = 1.20508
 **********
 **   18 **HESSE 
 **********

 FCN=   3170.982     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6457        6.3151        .50000       -.49027    
   3  Normalizat    .51963        .24544        .12403E-04   -1.1151    
   4  Prefactor     1.2051        .29173        .49618E-04   -.86175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84731e-11
Minuit parameter uncertainties:
  1  0.000513924
  2  4.41831
  3  0.245954
  4  0.292123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250929': 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) = 3170.98215967
delta logL = -1.19634933071e-08

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  5.139e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.646e+00  4.418e+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:  1.205e+00  2.921e-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:  5.196e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 213.241 50.301

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250929/cmap_HighResolution_258249601_258508801_4FGL_J1412.9+5018_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-09 04:55:53.537035', job_id='250929', GAL2='1.21', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1631188553.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-1.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='73' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 250929: <4FGL_J1412.9+5018_daily_bin73> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin73> 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) <bullet0167>, 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:55:54 2021
Results reported at Thu Sep  9 04:55:54 2021

Your job looked like:

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

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

