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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin95
RA = 214.894, Dec = 38.3657
tmin = 263952001, tmax = 264211201
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='338870', job_status='RUN', time_executed='2021-09-09 09:19:23.092442', time_epoch_executed='1631204363.09' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338870

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338870/ft1_4FGL_J1419.5+3821_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338870/ft1_4FGL_J1419.5+3821_daily_bin95.fits outfile=/scratch/kocevski/338870/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin95.fits ra=214.894 dec=38.3657 rad=12.0 tmin=263952001.0 tmax=264211201.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.70
user 1.51
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.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/338870/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.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.52
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/338870/ltcube_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.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/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits
.....................!
real 12.70
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/338870/ltcube_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits outfile=/scratch/kocevski/338870/expmap_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.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/338870/ltcube_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits
.....................!
real 191.32
user 186.11
sys 4.85

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits outfile=/scratch/kocevski/338870/cmap_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.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=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits outfile=/scratch/kocevski/338870/cmap_HighResolution_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.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=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338870/Model_4FGL_J1419.5+3821_daily_bin95.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/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits.....................!
real 48.74
user 47.35
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits', '/scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits', expMap='/scratch/kocevski/338870/expmap_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits', expCube='/scratch/kocevski/338870/ltcube_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338870/Model_4FGL_J1419.5+3821_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.5+3821'

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.993e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/338870/ft1_filtered_4FGL_J1419.5+3821_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/338870/ft2_4FGL_J1419.5+3821_daily_bin95.fits
Exposure map: /scratch/kocevski/338870/expmap_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits
Exposure cube: /scratch/kocevski/338870/ltcube_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338870/Model_4FGL_J1419.5+3821_daily_bin95.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) = 6183.61638387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9599       1.0000         .10000E-03   10000.    
     5 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.183       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13607E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1398       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8607       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.735       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33724       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7926       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15625       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2562       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6183.611     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3120 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.879       -.49569E-05** at limit **
   2  Prefactor     .10000E-03    19.297       -.13635E-05** at limit **
   3  norm          .20548        .92845        .34970E-06   -.16117E-03
   4  Prefactor     4.9592        3.5191        .65271E-07    .98360E-05
   5  norm          .10000E-03    16.190        .34686E-06** at limit **
   6  Prefactor     .10000E-03    5.5139       -.21436E-06** at limit **
   7  Prefactor     .10000E-03    18.956       -.14474E-05** at limit **
   8  Prefactor     .10000E-03    1.2121       -.27955E-07** at limit **
   9  Prefactor     22.181        17.960        .51136E-06    .25158E-05
  10  norm          .10000E-03    1.8830       -.17938E-07** at limit **
  11  Prefactor     .10000E-03    20.787       -.13764E-05** at limit **
  12  Prefactor     2.1375        28.209        .20815E-05    .23567E-04
  13  Prefactor     2.8599        3.2542        .16679E-05    .66435E-03
  14  norm          .10000E-03    5.7743       -.25249E-07** at limit **
  15  Prefactor     24.736        20.188        .24493E-06   -.29287E-04
  16  norm          .10000E-03    4.7016        .27176E-07** at limit **
  17  Prefactor     .10000E-03    28.218        .35510E-05** at limit **
  18  Prefactor     .10000E-03    16.093        .12460E-05** at limit **
  19  norm          6.1457        7.3167       -.93721E-07   -.33894E-04
  20  Prefactor     .10000E-03    4.6374        .27320E-07** at limit **
  21  Prefactor     .32694        7.6526        .36174E-05   -.39810E-03
  22  norm          3.7929        1.8880       -.28343E-08   -.53648E-03
  23  Prefactor     .54736E-01    6.5126       -.50815E-06    .98713E-04
  24  Prefactor     .10000E-03    29.847        .22992E-05** at limit **
  25  Normalizat    1.2563        .17227       -.56964E-06   -.82084E-04
  26  Prefactor     .70602        .18580       -.43967E-06   -.10831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.205482
  Prefactor  = 4.95918
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.181
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.13754
  Prefactor  = 2.85985
  norm       = 0.0001
  Prefactor  = 24.7359
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.14574
  Prefactor  = 0.0001
  Prefactor  = 0.326941
  norm       = 3.79293
  Prefactor  = 0.054736
  Prefactor  = 0.0001
  Normalizat = 1.2563
  Prefactor  = 0.70602
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.611     FROM HESSE     STATUS=OK           462 CALLS     3582 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20548        1.6769        .14142E-02   -1.5617    
   4  Prefactor     4.9592        3.5210        .11989E-03   -1.5263    
   5  norm          .10000E-03    16.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5186        .18035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2151        .84542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.181        18.037        .85044E-04   -1.4766    
  10  norm          .10000E-03    1.9024        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1375        28.016        .28177E-03   -1.5416    
  13  Prefactor     2.8599        3.4622        .76529E-03   -1.5370    
  14  norm          .10000E-03    5.7804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.736        20.183        .80543E-04   -1.4713    
  16  norm          .10000E-03    4.7566        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1457        7.3108        .16192E-03   -1.5212    
  20  Prefactor     .10000E-03    4.6467        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32694        14.374        .31316E-02   -1.5594    
  22  norm          3.7929        1.8665        .67865E-04   -1.5318    
  23  Prefactor     .54736E-01    11.107        .65320E-01   -1.5661    
  24  Prefactor     .10000E-03    29.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2563        .20239        .20331E-03   -.84880    
  26  Prefactor     .70602        .21750        .30042E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60718e-08
Minuit parameter uncertainties:
  1  0.000139861
  2  3.08139e-05
  3  1.17377
  4  3.52115
  5  2.06846e-05
  6  1.03203e-05
  7  3.80993e-05
  8  9.74411e-07
  9  18.0416
  10  2.51591e-06
  11  0.00029178
  12  15.4855
  13  3.46247
  14  1.02293e-05
  15  20.1882
  16  1.12535e-05
  17  6.26398e-05
  18  2.65122e-05
  19  7.31183
  20  1.50328e-06
  21  4.33608
  22  1.86656
  23  1.55829
  24  5.77287e-05
  25  0.202515
  26  0.217758
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.918e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.060e-01  2.178e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.256e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338870/likelihoodResults_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.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): 102
logL (Free Index) = 6183.61132447
delta logL = -0.000227733460633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6183.61109765
delta logL = -9.15630153031e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6182.956     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      267 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25761        3.8904        .81164E-02    .22566E-02
   2  Index         4.6786        2.7065        .10542        .18506E-03
   3  Normalizat    1.1869        .34634E-01    .33632E-01    .11623E-05
   4  Prefactor     .75735        .39758E-01    .65770E-01    .67669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.257613
  Index      = 4.67856
  Normalizat = 1.18691
  Prefactor  = 0.757355
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.956     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25761        11.227        .37108E-03   -1.5606    
   2  Index         4.6786        7.2397        .53929E-02   -.64333E-01
   3  Normalizat    1.1869        .13759        .20815E-03   -.87008    
   4  Prefactor     .75735        .15461        .29098E-03   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73965e-11
Minuit parameter uncertainties:
  1  3.40137
  2  6.10395
  3  0.137636
  4  0.154697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338870': 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): 102
logL (Free Index) = 6182.95649908
delta logL = 0.654597652543

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.576e-01  3.401e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  4.679e+00  6.104e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.574e-01  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.187e+00  1.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 214.894 38.366
Photon Index (Free Index): 4.68 +/- 6.10
Photon Flux (Free Index): 5.03e-08 +/- 4.66e-08
Energy Flux (Free Index): 6.89e-06 +/- 8.59e-06

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/338870/cmap_HighResolution_263952001_264211201_4FGL_J1419.5+3821_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', comment='SUCCESS', energy_flux2='6.89e-06', dlogl='6.55e-01', photon_flux2='5.03e-08', job_status='DONE', time_completed='2021-09-09 09:31:19.903096', photon_index_error2='6.10', photon_index2='4.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='7.22e-08', energy_flux_error2='8.59e-06', EG='1.26', time_epoch_completed='1631205079.9', return_code='0', job_id='338870', GAL2='0.76', EG2='1.19', return_code2='102', photon_flux_error2='4.66e-08', ts2='1.40', photon_index='2.47' WHERE bin_id='95' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 338870: <4FGL_J1419.5+3821_daily_bin95> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin95> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:46 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:15:48 2021
Terminated at Thu Sep  9 09:31:20 2021
Results reported at Thu Sep  9 09:31:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin95 214.894 38.3657 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.5+3821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

