/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 234 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin315
RA = 214.894, Dec = 38.3657
tmin = 320976001, tmax = 321235201
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='340233', job_status='RUN', time_executed='2021-09-09 09:24:40.952098', time_epoch_executed='1631204680.95' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340233/ft1_4FGL_J1419.5+3821_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340233/ft2_4FGL_J1419.5+3821_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340233/ft1_4FGL_J1419.5+3821_daily_bin315.fits outfile=/scratch/kocevski/340233/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin315.fits ra=214.894 dec=38.3657 rad=12.0 tmin=320976001.0 tmax=321235201.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 3.57
user 3.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340233/ft1_filtered_4FGL_J1419.5+3821_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/340233/ft2_4FGL_J1419.5+3821_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/340233/ltcube_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.fits outfile=/scratch/kocevski/340233/expmap_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.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/340233/ltcube_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.fits
.....................!
real 189.85
user 184.96
sys 4.55

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/340233/ft1_filtered_4FGL_J1419.5+3821_daily_bin315.fits scfile=/scratch/kocevski/340233/ft2_4FGL_J1419.5+3821_daily_bin315.fits outfile=/scratch/kocevski/340233/cmap_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.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.60
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6953       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5317       1.0000         .10000E-03   10000.    
     5 'norm      '    15.023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.263       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4498       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7886       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.326       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .91020E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2288       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76688       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=   5709.877     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3116 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5945        342.09        .25122E-04   -.28950E-05
   2  Prefactor     .10000E-03    18.869        .37327E-06** at limit **
   3  norm          2.3771        1.5662        .18155E-07   -.23625E-04
   4  Prefactor     6.5321        5.8619        .52611E-06    .81707E-04
   5  norm          15.023        13.721        .47125E-08   -.19423E-04
   6  Prefactor     .10000E-03    6.1538        .61122E-07** at limit **
   7  Prefactor     89.429        69.068       -.20226E-06   -.56132E-05
   8  Prefactor     .10000E-03    1.9286        .43867E-08** at limit **
   9  Prefactor     25.260        20.590        .24550E-06   -.54748E-05
  10  norm          2.5625        2.3517       -.45553E-08   -.37811E-04
  11  Prefactor     2.4493        8.8927        .22320E-05   -.88445E-06
  12  Prefactor     .10000E-03    20.975        .33602E-05** at limit **
  13  Prefactor     1.7882        3.1771        .16146E-06    .18868E-04
  14  norm          .10000E-03    5.3353        .15517E-06** at limit **
  15  Prefactor     .10000E-03    39.562       -.69728E-06** at limit **
  16  norm          .10000E-03    2.6063        .50108E-07** at limit **
  17  Prefactor     51.770        46.097       -.27437E-06   -.12166E-04
  18  Prefactor     11.369        39.856       -.43500E-05   -.20970E-04
  19  norm          .10000E-03    4.4473       -.59297E-08** at limit **
  20  Prefactor     .10000E-03    5.9614        .18587E-06** at limit **
  21  Prefactor     .10000E-03    3.0408       -.21869E-07** at limit **
  22  norm          .10271E-01    .60959       -.12261E-07    .22886E-03
  23  Prefactor     .10000E-03    16.111       -.55722E-06** at limit **
  24  Prefactor     .10000E-03    22.813       -.33698E-07** at limit **
  25  Normalizat    1.2287        .18762       -.96946E-06   -.46235E-04
  26  Prefactor     .76692        .20133        .73207E-06   -.69259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59448
  Prefactor  = 0.0001
  norm       = 2.37706
  Prefactor  = 6.53207
  norm       = 15.0227
  Prefactor  = 0.0001
  Prefactor  = 89.4286
  Prefactor  = 0.0001
  Prefactor  = 25.2602
  norm       = 2.56252
  Prefactor  = 2.4493
  Prefactor  = 0.0001
  Prefactor  = 1.78817
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.7695
  Prefactor  = 11.3691
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.010271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22871
  Prefactor  = 0.766922
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.877     FROM HESSE     STATUS=OK           464 CALLS     3580 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5945        346.01        .24815E-02   -1.5386    
   2  Prefactor     .10000E-03    18.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3771        1.5611        .73205E-04   -1.5400    
   4  Prefactor     6.5321        5.8678        .78514E-03   -1.5197    
   5  norm          15.023        13.730        .10334E-03   -1.4933    
   6  Prefactor     .10000E-03    6.1583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     89.429        69.136        .42491E-04   -1.3814    
   8  Prefactor     .10000E-03    1.9340        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.260        20.671        .79699E-04   -1.4702    
  10  norm          2.5625        2.3581        .10794E-03   -1.5388    
  11  Prefactor     2.4493        8.9091        .13068E-02   -1.5395    
  12  Prefactor     .10000E-03    21.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7882        3.1560        .17174E-03   -1.5441    
  14  norm          .10000E-03    5.3412        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6320        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.770        46.108        .55744E-04   -1.4268    
  18  Prefactor     11.369        39.962        .11904E-03   -1.5033    
  19  norm          .10000E-03    4.4656        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9795        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0509        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10271E-01    1.7367        .20795E-01   -1.5688    
  23  Prefactor     .10000E-03    16.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2287        .21937        .21473E-03   -.85720    
  26  Prefactor     .76692        .23438        .29867E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90434e-10
Minuit parameter uncertainties:
  1  60.2813
  2  4.26155e-06
  3  1.56115
  4  5.8683
  5  13.7329
  6  3.01692e-06
  7  69.198
  8  6.66588e-07
  9  20.677
  10  2.35823
  11  8.91392
  12  6.67145e-05
  13  3.15633
  14  3.46074e-06
  15  5.50988e-06
  16  1.86765e-06
  17  46.1397
  18  40.0567
  19  1.23816e-06
  20  9.65745e-06
  21  1.99292e-06
  22  0.265821
  23  5.59303e-06
  24  1.44524e-06
  25  0.219536
  26  0.234682
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.449e+00  8.914e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.669e-01  2.347e-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.229e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/340233/likelihoodResults_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.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) = 5709.86165622
delta logL = 0.0148589692653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.85515686
delta logL = 0.0213583257964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7295       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1628       1.0000          .0000       10.000    
     3 'Normalizat'    1.2303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76498       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=   5709.855     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7284        11.973        .20909E-03    .15235E-03
   2  Index         2.1634        1.3758        .11153E-01    .63609E-04
   3  Normalizat    1.2302        .20622        .21461E-03   -.31936E-03
   4  Prefactor     .76505        .23281        .29898E-03   -.24438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72841
  Index      = 2.16343
  Normalizat = 1.23023
  Prefactor  = 0.765048
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.855     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7284        11.739        .83636E-05   -1.5322    
   2  Index         2.1634        1.3504        .44612E-03   -.60324    
   3  Normalizat    1.2302        .20641        .42922E-04   -.85674    
   4  Prefactor     .76505        .23302        .11959E-04   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47236e-10
Minuit parameter uncertainties:
  1  11.7461
  2  1.37581
  3  0.20655
  4  0.233317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340233': 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) = 5709.85515654
delta logL = 0.0213586492428

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.728e+00  1.175e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.163e+00  1.376e+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.650e-01  2.333e-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.230e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/340233/cmap_HighResolution_320976001_321235201_4FGL_J1419.5+3821_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-09 09:36:01.258215', job_id='340233', GAL2='0.77', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631205361.26', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.14e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='315' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 340233: <4FGL_J1419.5+3821_daily_bin315> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin315> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:36 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:37 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:20:37 2021
Terminated at Thu Sep  9 09:36:01 2021
Results reported at Thu Sep  9 09:36:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin315 214.894 38.3657 320976001 321235201 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

