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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1555
RA = 214.894, Dec = 38.3657
tmin = 642384001, tmax = 642643201
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='348135', job_status='RUN', time_executed='2021-09-09 09:47:23.851876', time_epoch_executed='1631206043.85' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348135/ft1_4FGL_J1419.5+3821_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348135/ft1_4FGL_J1419.5+3821_daily_bin1555.fits outfile=/scratch/kocevski/348135/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1555.fits ra=214.894 dec=38.3657 rad=12.0 tmin=642384001.0 tmax=642643201.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.68
user 3.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348135/ft1_filtered_4FGL_J1419.5+3821_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/348135/ltcube_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.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/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits
.....................!
real 12.23
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348135/ft1_filtered_4FGL_J1419.5+3821_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/348135/ltcube_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.fits outfile=/scratch/kocevski/348135/expmap_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.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/348135/ltcube_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.fits
.....................!
real 190.31
user 185.58
sys 4.34

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/348135/ft1_filtered_4FGL_J1419.5+3821_daily_bin1555.fits scfile=/scratch/kocevski/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits outfile=/scratch/kocevski/348135/cmap_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348135/ft1_filtered_4FGL_J1419.5+3821_daily_bin1555.fits scfile=/scratch/kocevski/348135/ft2_4FGL_J1419.5+3821_daily_bin1555.fits outfile=/scratch/kocevski/348135/cmap_HighResolution_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17038       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9390       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4065       1.0000         .10000E-03   10000.    
    14 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.560       1.0000         .10000E-03   10000.    
    19 'norm      '    13.256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.051       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8082       1.0000         .10000E-03   10000.    
    22 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6399       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.769       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5700.039     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     3071 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.055        .12462E-05** at limit **
   2  Prefactor     .48755E-02    6185.3       -.15122E-03    .87436E-03
   3  norm          .10000E-03    3.4488       -.20772E-06** at limit **
   4  Prefactor     1.9400        3.4745        .62497E-06   -.20281E-04
   5  norm          .10000E-03    4.3507       -.43388E-06** at limit **
   6  Prefactor     .10000E-03    3.7276        .11302E-07** at limit **
   7  Prefactor     .10000E-03    29.422        .13115E-05** at limit **
   8  Prefactor     .10000E-03    7.0554       -.52523E-05** at limit **
   9  Prefactor     .10000E-03    9.2064        .16954E-05** at limit **
  10  norm          2.2386        3.9170       -.49570E-06   -.16132E-03
  11  Prefactor     9.3481        2.7691        .63823E-06    .51814E-02
  12  Prefactor     .10000E-03    5.5339        .43252E-06** at limit **
  13  Prefactor     6.4062        3.9571        .34313E-06   -.53673E-03
  14  norm          .10000E-03    14.233       -.84083E-06** at limit **
  15  Prefactor     .10000E-03    3.2326        .41206E-05** at limit **
  16  norm          1.9730        5.5556        .10805E-04    .11701E-02
  17  Prefactor     .10000E-03    13.496       -.20675E-05** at limit **
  18  Prefactor     61.571        32.714       -.23428E-05   -.65163E-02
  19  norm          13.255        2.7001       -.16389E-05   -.19956E-02
  20  Prefactor     18.056        16.207        .12541E-04    .25747E-02
  21  Prefactor     6.8015        5.6866       -.95770E-05   -.42336E-02
  22  norm          .10000E-03    1.0008        .65225E-07** at limit **
  23  Prefactor     9.6344        3.0832        .12194E-05   -.68455E-02
  24  Prefactor     18.489        41.915       -.30612E-05   -.91607E-02
  25  Normalizat    1.0422        .18439       -.91289E-05   -.21550E-03
  26  Prefactor     .78101        .21102        .56066E-05   -.14940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00487553
  norm       = 0.0001
  Prefactor  = 1.94004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.23856
  Prefactor  = 9.34811
  Prefactor  = 0.0001
  Prefactor  = 6.40619
  norm       = 0.000100002
  Prefactor  = 0.000100002
  norm       = 1.97296
  Prefactor  = 0.000100001
  Prefactor  = 61.571
  norm       = 13.2548
  Prefactor  = 18.0558
  Prefactor  = 6.80148
  norm       = 0.0001
  Prefactor  = 9.63444
  Prefactor  = 18.489
  Normalizat = 1.04223
  Prefactor  = 0.781014
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.039     FROM HESSE     STATUS=OK           530 CALLS     3601 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48755E-02    76.369        .14549       -1.5694    
   3  norm          .10000E-03    .62301        .32903E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9400        3.5053        .74542E-02   -1.5429    
   5  norm          .10000E-03    7.0590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3239        .44385E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2386        3.9870        .68689E-02   -1.5409    
  11  Prefactor     9.3481        9.9001        .32767E-02   -1.5096    
  12  Prefactor     .10000E-03    5.5205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4062        3.9724        .39643E-02   -1.5202    
  14  norm          .10000E-03    14.160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9730        5.7361        .73773E-02   -1.5427    
  17  Prefactor     .10000E-03    13.505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.571        33.381        .12785E-02   -1.4137    
  19  norm          13.255        9.3698        .27504E-02   -1.4980    
  20  Prefactor     18.056        17.579        .23567E-02   -1.4858    
  21  Prefactor     6.8015        5.9008        .38443E-02   -1.5186    
  22  norm          .10000E-03    .60236        .31975E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.6344        8.6214        .32267E-02   -1.5087    
  24  Prefactor     18.489        70.096        .23112E-02   -1.4848    
  25  Normalizat    1.0422        .16229        .41101E-01   -.91629    
  26  Prefactor     .78101        .18202        .43468E-01   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44137e-06
Minuit parameter uncertainties:
  1  5.46103e-05
  2  1.20935
  3  2.09173e-06
  4  3.50562
  5  5.12504e-05
  6  4.82465e-06
  7  0.000312995
  8  0.000225308
  9  9.39457e-05
  10  3.98746
  11  9.90181
  12  2.01631e-05
  13  3.97256
  14  0.000306367
  15  0.000254791
  16  5.73766
  17  0.000277975
  18  33.3909
  19  9.37087
  20  17.5839
  21  5.90126
  22  9.57971e-07
  23  8.62246
  24  70.4103
  25  0.162371
  26  0.182164
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  9.348e+00  9.902e+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.810e-01  1.822e-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.042e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 6.99e-06 +/- 7.40e-06

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

Saving results to:
/scratch/kocevski/348135/likelihoodResults_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.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) = 5699.95614685
delta logL = 0.0830325944717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5699.95224953
delta logL = 0.0869299111982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1313       1.0000          .0000       10.000    
     3 'Normalizat'    1.0502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77362       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=   5699.952     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      295 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.107        15.107        .11066E-03    .70475E-04
   2  Index         2.1312        .77215        .97968E-02    .18321E-03
   3  Normalizat    1.0501        .18034        .20393E-03   -.41755E-04
   4  Prefactor     .77376        .21079        .27361E-03   -.35485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1072
  Index      = 2.1312
  Normalizat = 1.05011
  Prefactor  = 0.773757
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.952     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.107        14.762        .44265E-05   -1.4984    
   2  Index         2.1312        .75465        .19594E-02   -.61109    
   3  Normalizat    1.0501        .18046        .81572E-05   -.91370    
   4  Prefactor     .77376        .21094        .10944E-04   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10856e-11
Minuit parameter uncertainties:
  1  14.7659
  2  0.758988
  3  0.180565
  4  0.211157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348135': 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) = 5699.95224919
delta logL = 0.0869302508454

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.311e+01  1.477e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.131e+00  7.590e-01  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.738e-01  2.112e-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.050e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.13 +/- 0.76
Photon Flux (Free Index): 1.88e-08 +/- 2.31e-08
Energy Flux (Free Index): 9.68e-06 +/- 1.31e-05

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/348135/cmap_HighResolution_642384001_642643201_4FGL_J1419.5+3821_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='9.68e-06', photon_flux_error='2.47e-08', dlogl='8.69e-02', energy_flux='6.99e-06', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-09-09 09:59:10.849653', photon_index_error2='0.76', photon_index2='2.13', ts='1.32', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='8.14e-08', energy_flux_error2='1.31e-05', EG='1.04', time_epoch_completed='1631206750.85', return_code='0', job_id='348135', GAL2='0.77', EG2='1.05', return_code2='0', energy_flux_error='7.40e-06', photon_flux_error2='2.31e-08', ts2='1.49', photon_index='2.47' WHERE bin_id='1555' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 348135: <4FGL_J1419.5+3821_daily_bin1555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1555 214.894 38.3657 642384001 642643201 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 :                                   706.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

