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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1
RA = 214.894, Dec = 38.3657
tmin = 239587201, tmax = 239846401
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='338724', job_status='RUN', time_executed='2021-09-09 09:17:46.699456', time_epoch_executed='1631204266.7' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338724

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338724/ft1_4FGL_J1419.5+3821_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338724/ft1_4FGL_J1419.5+3821_daily_bin1.fits outfile=/scratch/kocevski/338724/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1.fits ra=214.894 dec=38.3657 rad=12.0 tmin=239587201.0 tmax=239846401.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.30
user 1.15
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.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/338724/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/338724/ltcube_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits outfile=/scratch/kocevski/338724/expmap_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.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/338724/ltcube_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits
.....................!
real 190.71
user 186.41
sys 3.95

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/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.fits scfile=/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits outfile=/scratch/kocevski/338724/cmap_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.fits scfile=/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits outfile=/scratch/kocevski/338724/cmap_HighResolution_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.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.53
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.fits', '/scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits', expMap='/scratch/kocevski/338724/expmap_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits', expCube='/scratch/kocevski/338724/ltcube_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338724/Model_4FGL_J1419.5+3821_daily_bin1.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/338724/ft1_filtered_4FGL_J1419.5+3821_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/338724/ft2_4FGL_J1419.5+3821_daily_bin1.fits
Exposure map: /scratch/kocevski/338724/expmap_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits
Exposure cube: /scratch/kocevski/338724/ltcube_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338724/Model_4FGL_J1419.5+3821_daily_bin1.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) = 4023.32293183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24915E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5004       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21415E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74427E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.567       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .26212E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91721       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99459       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=   4023.258     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2655 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    235.08        .52364E-04** at limit **
   2  Prefactor     .10050E-03    792.78       -.49171E-03** at limit **
   3  norm          2.5002        1.6749        .71961E-07    .68329E-03
   4  Prefactor     10.690        5.3088        .13447E-07    .19874E-03
   5  norm          .10000E-03    6.5178        .79360E-06** at limit **
   6  Prefactor     1.1395        62.460        .43126E-05   -.15516E-03
   7  Prefactor     .10000E-03    244.46        .93273E-05** at limit **
   8  Prefactor     .10001E-03    5.1869        .12683E-05** at limit **
   9  Prefactor     .10000E-03    14.734        .27815E-06** at limit **
  10  norm          .10000E-03    1.0589       -.34729E-07** at limit **
  11  Prefactor     .10000E-03    25.416        .31444E-05** at limit **
  12  Prefactor     .10000E-03    29.771       -.18045E-05** at limit **
  13  Prefactor     .10006E-03    2.1563        .45832E-06** at limit **
  14  norm          .10000E-03    5.3419        .21205E-06** at limit **
  15  Prefactor     .10000E-03    13.275       -.33441E-05** at limit **
  16  norm          .10000E-03    2.4053       -.13191E-06** at limit **
  17  Prefactor     15.643        40.326        .32589E-04    .41358E-05
  18  Prefactor     .10000E-03    14.546       -.96818E-06** at limit **
  19  norm          .10000E-03    2.7903        .70938E-08** at limit **
  20  Prefactor     .10000E-03    5.0217       -.72036E-07** at limit **
  21  Prefactor     .10000E-03    1.9406        .12775E-07** at limit **
  22  norm          .19959E-01    .69804       -.49843E-06    .85633E-03
  23  Prefactor     .10000E-03    5.9465       -.52538E-06** at limit **
  24  Prefactor     .10000E-03    29.510       -.30808E-05** at limit **
  25  Normalizat    .91738        .18161        .20142E-05    .10026E-02
  26  Prefactor     .99494        .20956       -.29278E-05    .72377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100504
  norm       = 2.50025
  Prefactor  = 10.69
  norm       = 0.0001
  Prefactor  = 1.13953
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6433
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0199591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.917381
  Prefactor  = 0.994939
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.258     FROM HESSE     STATUS=OK           446 CALLS     3101 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    236.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10050E-03    794.22        .40042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5002        1.6736        .64721E-04   -1.5392    
   4  Prefactor     10.690        5.3185        .99018E-04   -1.5054    
   5  norm          .10000E-03    6.5317        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1395        63.640        .43012E-03   -1.5494    
   7  Prefactor     .10000E-03    245.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    12.341        .28004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0599        .63739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    22.375        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3441        .14318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4224        .96056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.643        40.307        .10151E-03   -1.4917    
  18  Prefactor     .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7915        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0315        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9423        .86287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .19959E-01    7.4912        .10260E-02   -1.5680    
  23  Prefactor     .10000E-03    5.9549        .15107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91738        .21302        .21587E-03   -.95852    
  26  Prefactor     .99494        .24820        .24342E-03   -.92898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18832e-09
Minuit parameter uncertainties:
  1  0.000343879
  2  0.0405701
  3  1.67359
  4  5.31875
  5  1.12525e-05
  6  17.0501
  7  0.000501692
  8  0.000576694
  9  1.6e-05
  10  1.11106e-06
  11  0.000242314
  12  0.000276672
  13  0.00223498
  14  7.65912e-06
  15  3.74812e-05
  16  2.23852e-05
  17  40.3776
  18  9.47274e-07
  19  1.18443e-06
  20  2.41188e-06
  21  5.76479e-07
  22  0.771508
  23  1.82038e-06
  24  6.40607e-06
  25  0.213214
  26  0.248488
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.423e-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:  9.949e-01  2.485e-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:  9.174e-01  2.132e-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: 8.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338724/likelihoodResults_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.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) = 4023.25773521
delta logL = -0.000184371149317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4023.25755165
delta logL = -8.17728960101e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15367E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5140       1.0000          .0000       10.000    
     3 'Normalizat'    .91741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99492       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4023.254     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      335 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22556        56.178        .36285E-02   -.62990E-03
   2  Index         3.5070        1.2209        .50000        .12161E-04
   3  Normalizat    .91227        .13064E-01    .21587E-03    .29532E-03
   4  Prefactor     .99816        .15358E-01    .24342E-03   -.11022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.225561
  Index      = 3.50701
  Normalizat = 0.912268
  Prefactor  = 0.998164
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.254     FROM HESSE     STATUS=OK            29 CALLS      364 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22556        15.241        .14514E-03   -1.5803    
   2  Index         3.5070        6.7507        .55289E-02   -.30322    
   3  Normalizat    .91227        .21775        .43175E-04   -.96030    
   4  Prefactor     .99816        .24942        .97369E-05   -.92791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5977e-10
Minuit parameter uncertainties:
  1  3.70835
  2  5.82175
  3  0.217961
  4  0.249704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338724': 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) = 4023.25380986
delta logL = 0.00374097524082

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.256e-01  3.708e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.507e+00  5.822e+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:  9.982e-01  2.497e-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:  9.123e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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/338724/cmap_HighResolution_239587201_239846401_4FGL_J1419.5+3821_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-09 09:26:51.114862', job_id='338724', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1631204811.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.74e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 338724: <4FGL_J1419.5+3821_daily_bin1> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:32 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:34 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:34 2021
Terminated at Thu Sep  9 09:26:51 2021
Results reported at Thu Sep  9 09:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1 214.894 38.3657 239587201 239846401 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 :                                   544.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

