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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin78
RA = 214.894, Dec = 38.3657
tmin = 259545601, tmax = 259804801
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='338844', job_status='RUN', time_executed='2021-09-09 09:18:07.941851', time_epoch_executed='1631204287.94' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338844/ft1_4FGL_J1419.5+3821_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338844/ft2_4FGL_J1419.5+3821_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338844/ft1_4FGL_J1419.5+3821_daily_bin78.fits outfile=/scratch/kocevski/338844/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin78.fits ra=214.894 dec=38.3657 rad=12.0 tmin=259545601.0 tmax=259804801.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.66
user 1.47
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338844/ft1_filtered_4FGL_J1419.5+3821_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/338844/ft2_4FGL_J1419.5+3821_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/338844/ltcube_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.fits outfile=/scratch/kocevski/338844/expmap_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.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/338844/ltcube_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.fits
.....................!
real 189.31
user 184.92
sys 4.02

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/338844/ft1_filtered_4FGL_J1419.5+3821_daily_bin78.fits scfile=/scratch/kocevski/338844/ft2_4FGL_J1419.5+3821_daily_bin78.fits outfile=/scratch/kocevski/338844/cmap_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338844/ft1_filtered_4FGL_J1419.5+3821_daily_bin78.fits scfile=/scratch/kocevski/338844/ft2_4FGL_J1419.5+3821_daily_bin78.fits outfile=/scratch/kocevski/338844/cmap_HighResolution_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0835       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .40549       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53725E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6025       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.348       1.0000         .10000E-03   10000.    
    16 'norm      '    .47739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.240       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2139       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11119E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10332       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.198       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0302       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79243       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=   6393.056     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3958 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.366        59.134        .57689E-07   -.40871E-04
   2  Prefactor     .10001E-03    254.96        .17071E-04** at limit **
   3  norm          4.0836        1.5231        .42825E-07   -.24375E-03
   4  Prefactor     .10000E-03    1.8578        .45293E-06** at limit **
   5  norm          5.8628        8.3910        .18201E-06   -.27491E-04
   6  Prefactor     4.5548        13.738       -.40216E-06   -.64118E-04
   7  Prefactor     .10000E-03    199.48        .72166E-06** at limit **
   8  Prefactor     .10000E-03    2.5130        .15041E-07** at limit **
   9  Prefactor     .10000E-03    20.637        .19488E-07** at limit **
  10  norm          .40413        4.1029        .78721E-06    .38010E-04
  11  Prefactor     .10001E-03    12.786        .41483E-05** at limit **
  12  Prefactor     .10000E-03    11.764        .29328E-06** at limit **
  13  Prefactor     7.6022        3.6576        .16768E-06    .82001E-04
  14  norm          .10000E-03    7.2091        .15801E-06** at limit **
  15  Prefactor     58.346        24.528       -.79872E-07   -.62873E-04
  16  norm          .46564        9.3892        .45321E-05   -.46489E-04
  17  Prefactor     35.892        32.137       -.50864E-06   -.24746E-04
  18  Prefactor     13.239        19.390        .66629E-07   -.17662E-05
  19  norm          7.2142        6.4534       -.25868E-06   -.60637E-05
  20  Prefactor     .10000E-03    172.40        .47451E-05** at limit **
  21  Prefactor     .10000E-03    14.849        .43081E-06** at limit **
  22  norm          .10544        3.1727        .29023E-05    .10917E-03
  23  Prefactor     .10000E-03    4.1429        .30063E-07** at limit **
  24  Prefactor     50.191        77.562       -.10785E-05    .23541E-04
  25  Normalizat    1.0302        .16565       -.15896E-05   -.68801E-05
  26  Prefactor     .79238        .18436        .90659E-07   -.24681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.3663
  Prefactor  = 0.000100007
  norm       = 4.08364
  Prefactor  = 0.0001
  norm       = 5.86276
  Prefactor  = 4.55476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.404125
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 7.60224
  norm       = 0.0001
  Prefactor  = 58.346
  norm       = 0.465642
  Prefactor  = 35.8919
  Prefactor  = 13.2389
  norm       = 7.21424
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.105436
  Prefactor  = 0.0001
  Prefactor  = 50.1909
  Normalizat = 1.03015
  Prefactor  = 0.792377
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.056     FROM HESSE     STATUS=OK           470 CALLS     4428 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.366        59.295        .67394E-04   -1.4518    
   2  Prefactor     .10001E-03    260.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0836        1.5235        .57951E-04   -1.5304    
   4  Prefactor     .10000E-03    6.4719        .20916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8628        8.4141        .82926E-03   -1.5224    
   6  Prefactor     4.5548        13.483        .18837E-03   -1.5281    
   7  Prefactor     .10000E-03    202.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5449        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40413        4.1549        .30656E-03   -1.5581    
  11  Prefactor     .10001E-03    43.869        .39422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6022        3.6542        .10105E-03   -1.5156    
  14  norm          .10000E-03    7.2302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.346        24.538        .52521E-04   -1.4179    
  16  norm          .46564        23.711        .27950E-02   -1.5572    
  17  Prefactor     35.892        32.147        .66896E-04   -1.4509    
  18  Prefactor     13.239        19.380        .11008E-03   -1.4980    
  19  norm          7.2142        6.4636        .14934E-03   -1.5171    
  20  Prefactor     .10000E-03    15.227        .73535E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10544        5.3027        .12801E-02   -1.5643    
  23  Prefactor     .10000E-03    4.1518        .15897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.191        77.458        .56602E-04   -1.4290    
  25  Normalizat    1.0302        .18983        .21238E-03   -.92027    
  26  Prefactor     .79238        .21262        .27536E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60772e-08
Minuit parameter uncertainties:
  1  59.394
  2  0.00277577
  3  1.52347
  4  7.09584e-05
  5  8.41577
  6  13.4918
  7  8.78846e-05
  8  2.71431e-06
  9  9.12886e-06
  10  2.59152
  11  0.0011476
  12  9.71422e-06
  13  3.6543
  14  2.63784e-06
  15  24.5427
  16  6.64764
  17  32.1625
  18  19.389
  19  6.46423
  20  0.000302274
  21  1.31649e-05
  22  1.49488
  23  2.81224e-06
  24  77.6135
  25  0.18995
  26  0.212837
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.148e-03  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.924e-01  2.128e-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.030e+00  1.900e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338844/likelihoodResults_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.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) = 6393.05586575
delta logL = -0.000107439194835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6393.01675391
delta logL = 0.0390044028945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54737       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5301       1.0000          .0000       10.000    
     3 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80136       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=   6393.017     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      281 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55069        50.621        .11463E-01    .64851E-03
   2  Index         3.5288        3.8740        .21127       -.83589E-05
   3  Normalizat    1.0168        .21073E-01    .43865E-01    .97018E-04
   4  Prefactor     .80149        .24403E-01    .43735E-01    .10789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.550691
  Index      = 3.52885
  Normalizat = 1.01683
  Prefactor  = 0.801493
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.017     FROM HESSE     STATUS=OK            33 CALLS      314 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55069        34.204        .20072E-03   -1.5560    
   2  Index         3.5288        6.7315        .13323E-01   -.29865    
   3  Normalizat    1.0168        .18897        .21361E-03   -.92469    
   4  Prefactor     .80149        .21390        .27393E-03   -.99673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45506e-09
Minuit parameter uncertainties:
  1  8.68452
  2  6.85536
  3  0.189092
  4  0.214119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338844': 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) = 6393.01675147
delta logL = 0.0390068483384

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.507e-01  8.685e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.529e+00  6.855e+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:  8.015e-01  2.141e-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.017e+00  1.891e-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/338844/cmap_HighResolution_259545601_259804801_4FGL_J1419.5+3821_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-09 09:31:10.932541', job_id='338844', GAL2='0.80', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1631205070.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.90e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='78' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 338844: <4FGL_J1419.5+3821_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin78 214.894 38.3657 259545601 259804801 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 :                                   782.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

