/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 169 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1282
RA = 214.894, Dec = 38.3657
tmin = 571622401, tmax = 571881601
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='344618', job_status='RUN', time_executed='2021-09-09 09:38:39.301580', time_epoch_executed='1631205519.3' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344618/ft1_4FGL_J1419.5+3821_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344618/ft1_4FGL_J1419.5+3821_daily_bin1282.fits outfile=/scratch/kocevski/344618/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1282.fits ra=214.894 dec=38.3657 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.72
user 2.50
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.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/344618/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/344618/ltcube_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.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/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits
.....................!
real 12.52
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/344618/ltcube_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.fits outfile=/scratch/kocevski/344618/expmap_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.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/344618/ltcube_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.fits
.....................!
real 190.27
user 185.37
sys 4.51

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/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits outfile=/scratch/kocevski/344618/cmap_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits outfile=/scratch/kocevski/344618/cmap_HighResolution_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.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/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/344618/ft2_4FGL_J1419.5+3821_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344618/Model_4FGL_J1419.5+3821_daily_bin1282.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/344618/ft1_filtered_4FGL_J1419.5+3821_daily_bin1282.fits.....................!
real 53.25
user 51.67
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
     5 'norm      '    11.875       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .75692       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5291       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.673       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3586       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87143       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1782       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=   6921.260     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2645 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.417       -.20000E-05** at limit **
   2  Prefactor     .10000E-03    37.763        .46349E-05** at limit **
   3  norm          25.977        3.4479        .44882E-08    .12668E-03
   4  Prefactor     10.802        5.7080       -.15027E-06   -.11745E-04
   5  norm          11.875        12.223       -.23744E-08   -.59732E-05
   6  Prefactor     .10000E-03    6.8168       -.86818E-06** at limit **
   7  Prefactor     .10000E-03    25.060       -.61696E-06** at limit **
   8  Prefactor     .92289        2.7193       -.90816E-07   -.34594E-04
   9  Prefactor     .10000E-03    13.923       -.90271E-05** at limit **
  10  norm          .75658        3.2381        .86197E-07   -.51117E-04
  11  Prefactor     5.3734        11.357       -.94158E-07   -.22289E-03
  12  Prefactor     .10000E-03    11.542        .19394E-05** at limit **
  13  Prefactor     17.816        5.4337       -.18889E-06    .88211E-06
  14  norm          .10000E-03    5.7163       -.51669E-07** at limit **
  15  Prefactor     .10000E-03    38.821        .89765E-05** at limit **
  16  norm          9.2046        6.0751       -.14744E-06   -.63933E-04
  17  Prefactor     .10000E-03    15.841        .96531E-05** at limit **
  18  Prefactor     .10000E-03    30.190       -.10896E-04** at limit **
  19  norm          1.5243        2.2497        .26688E-06   -.91154E-03
  20  Prefactor     22.674        15.321       -.65005E-07    .15058E-04
  21  Prefactor     .10000E-03    6.5424        .30380E-06** at limit **
  22  norm          .10000E-03    .59211       -.73623E-07** at limit **
  23  Prefactor     2.3584        12.621       -.12810E-06   -.15457E-04
  24  Prefactor     .10000E-03    76.344       -.76465E-05** at limit **
  25  Normalizat    .87149        .18145       -.31177E-06    .46388E-04
  26  Prefactor     1.1781        .20015        .37343E-06    .67430E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.9766
  Prefactor  = 10.8016
  norm       = 11.8747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.922894
  Prefactor  = 0.0001
  norm       = 0.75658
  Prefactor  = 5.37338
  Prefactor  = 0.0001
  Prefactor  = 17.8157
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.2046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52426
  Prefactor  = 22.6743
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.35836
  Prefactor  = 0.0001
  Normalizat = 0.871488
  Prefactor  = 1.17813
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.260     FROM HESSE     STATUS=OK           460 CALLS     3105 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.977        3.4522        .26897E-03   -1.4688    
   4  Prefactor     10.802        5.7112        .12190E-03   -1.5051    
   5  norm          11.875        12.229        .11625E-03   -1.5019    
   6  Prefactor     .10000E-03    6.8187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .92289        2.4395        .22832E-02   -1.5516    
   9  Prefactor     .10000E-03    13.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .75658        5.8177        .27484E-02   -1.5534    
  11  Prefactor     5.3734        11.372        .86633E-03   -1.5244    
  12  Prefactor     .10000E-03    11.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.816        5.4066        .94889E-04   -1.4864    
  14  norm          .10000E-03    5.7199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2046        6.0899        .13210E-03   -1.5101    
  17  Prefactor     .10000E-03    15.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5243        10.021        .17260E-02   -1.5461    
  20  Prefactor     22.674        15.628        .84121E-04   -1.4755    
  21  Prefactor     .10000E-03    6.6808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .60903        .12480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3584        12.625        .26686E-03   -1.5401    
  24  Prefactor     .10000E-03    76.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87149        .21510        .27607E-03   -.97469    
  26  Prefactor     1.1781        .23942        .27821E-03   -.87007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6346e-08
Minuit parameter uncertainties:
  1  3.89872e-06
  2  1.15963e-05
  3  3.45224
  4  5.71153
  5  12.232
  6  5.52134e-07
  7  4.10399e-06
  8  2.43978
  9  5.76136e-06
  10  4.19628
  11  11.3762
  12  2.23628e-06
  13  5.40673
  14  1.8249e-07
  15  3.58483e-05
  16  6.09033
  17  1.40653e-05
  18  6.67162e-06
  19  7.8183
  20  15.6307
  21  1.53167e-06
  22  3.2899e-07
  23  10.9163
  24  1.10109e-05
  25  0.215314
  26  0.239637
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.373e+00  1.138e+01  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:  1.178e+00  2.396e-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:  8.715e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344618/likelihoodResults_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.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) = 6921.23287653
delta logL = 0.0267401057035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6921.22002427
delta logL = 0.0395923696278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7101       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1391       1.0000          .0000       10.000    
     3 'Normalizat'    .87618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1734       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=   6921.220     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7018        16.505        .36104E-02    .10440E-02
   2  Index         2.1395        1.1657        .25045E-01    .42424E-03
   3  Normalizat    .87621        .17315        .44597E-01   -.27412E-05
   4  Prefactor     1.1734        .19995        .63005E-01    .15258E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.70177
  Index      = 2.13946
  Normalizat = 0.876215
  Prefactor  = 1.17341
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.220     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7018        15.359        .72209E-03   -1.5153    
   2  Index         2.1395        1.0912        .50091E-02   -.60907    
   3  Normalizat    .87621        .20652        .27538E-03   -.97301    
   4  Prefactor     1.1734        .23835        .27866E-03   -.87153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43538e-12
Minuit parameter uncertainties:
  1  15.3666
  2  1.10447
  3  0.206701
  4  0.238569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344618': 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) = 6921.22002409
delta logL = 0.0395925525545

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.702e+00  1.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.139e+00  1.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:  1.173e+00  2.386e-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:  8.762e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 214.894 38.366

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/344618/cmap_HighResolution_571622401_571881601_4FGL_J1419.5+3821_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-09 09:51:04.908837', job_id='344618', GAL2='1.17', fit_tolerance='1e-08', EG2='0.88', EG='0.87', time_epoch_completed='1631206264.91', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.96e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1282' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 344618: <4FGL_J1419.5+3821_daily_bin1282> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1282> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:35:39 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:35:41 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:35:41 2021
Terminated at Thu Sep  9 09:51:05 2021
Results reported at Thu Sep  9 09:51:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1282 214.894 38.3657 571622401 571881601 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 :                                   734.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

