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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1600
RA = 214.894, Dec = 38.3657
tmin = 654048001, tmax = 654307201
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='260736', job_status='RUN', time_executed='2021-09-26 00:29:26.947515', time_epoch_executed='1632641366.95' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260736/ft1_4FGL_J1419.5+3821_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260736/ft1_4FGL_J1419.5+3821_daily_bin1600.fits outfile=/scratch/kocevski/260736/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1600.fits ra=214.894 dec=38.3657 rad=12.0 tmin=654048001.0 tmax=654307201.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.06
user 2.84
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.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/260736/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/260736/ft1_filtered_4FGL_J1419.5+3821_daily_bin1600.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260736/ft1_filtered_4FGL_J1419.5+3821_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/260736/ltcube_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.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/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits
.....................!
real 15.05
user 14.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260736/ft1_filtered_4FGL_J1419.5+3821_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/260736/ltcube_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.fits outfile=/scratch/kocevski/260736/expmap_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.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/260736/ltcube_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.fits
.....................!
real 157.12
user 152.80
sys 3.96

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/260736/ft1_filtered_4FGL_J1419.5+3821_daily_bin1600.fits scfile=/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits outfile=/scratch/kocevski/260736/cmap_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.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.51
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260736/ft1_filtered_4FGL_J1419.5+3821_daily_bin1600.fits scfile=/scratch/kocevski/260736/ft2_4FGL_J1419.5+3821_daily_bin1600.fits outfile=/scratch/kocevski/260736/cmap_HighResolution_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8950       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5312       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.435       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7829       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.106       1.0000         .10000E-03   10000.    
    19 'norm      '    .56834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.683       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14994E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .35949       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.154       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0287       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=   6039.588     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3061 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.033       -.75979E-05** at limit **
   2  Prefactor     .10000E-03    40.436        .77798E-06** at limit **
   3  norm          2.8271        1.6345       -.53382E-07   -.19586E-03
   4  Prefactor     4.8953        4.6929        .99220E-06   -.24594E-03
   5  norm          .10000E-03    6.5040        .45309E-05** at limit **
   6  Prefactor     7.1201        12.727       -.72836E-07   -.36662E-04
   7  Prefactor     .10000E-03    14.003        .91444E-06** at limit **
   8  Prefactor     6.1624        4.1656       -.64586E-06    .42646E-04
   9  Prefactor     .10000E-03    6.5646       -.42829E-05** at limit **
  10  norm          3.6481        3.6949       -.55257E-06   -.16954E-03
  11  Prefactor     .10000E-03    3.6719       -.59155E-07** at limit **
  12  Prefactor     .10000E-03    5.6700        .13533E-06** at limit **
  13  Prefactor     5.5318        4.7182        .18621E-05   -.23042E-03
  14  norm          .10000E-03    3.6113       -.16928E-06** at limit **
  15  Prefactor     12.416        27.630       -.17710E-04   -.36197E-05
  16  norm          4.7843        6.2470        .86809E-06   -.11405E-03
  17  Prefactor     8.3355        36.845        .13848E-04    .11421E-04
  18  Prefactor     55.108        49.242        .18688E-05    .18380E-04
  19  norm          .56407        7.4063       -.16813E-05   -.19141E-03
  20  Prefactor     27.690        17.716        .35458E-06    .22145E-03
  21  Prefactor     .10000E-03    17.768       -.10259E-05** at limit **
  22  norm          .35919        1.2919       -.70838E-06   -.66766E-03
  23  Prefactor     17.155        15.117       -.68605E-07    .20458E-04
  24  Prefactor     .10000E-03    51.154        .85616E-05** at limit **
  25  Normalizat    1.0957        .19013        .69984E-06    .12691E-03
  26  Prefactor     1.0289        .21149       -.24139E-06    .13615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82714
  Prefactor  = 4.89528
  norm       = 0.0001
  Prefactor  = 7.1201
  Prefactor  = 0.0001
  Prefactor  = 6.16243
  Prefactor  = 0.0001
  norm       = 3.64814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53181
  norm       = 0.0001
  Prefactor  = 12.4164
  norm       = 4.78434
  Prefactor  = 8.33554
  Prefactor  = 55.1084
  norm       = 0.56407
  Prefactor  = 27.6897
  Prefactor  = 0.0001
  norm       = 0.359192
  Prefactor  = 17.1549
  Prefactor  = 0.0001
  Normalizat = 1.09567
  Prefactor  = 1.02891
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.588     FROM HESSE     STATUS=OK           464 CALLS     3525 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8271        1.6347        .71634E-04   -1.5372    
   4  Prefactor     4.8953        4.6774        .15677E-03   -1.5265    
   5  norm          .10000E-03    6.5136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1201        12.722        .15034E-03   -1.5174    
   7  Prefactor     .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1624        4.1661        .12679E-03   -1.5211    
   9  Prefactor     .10000E-03    6.5567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6481        3.6933        .14479E-03   -1.5326    
  11  Prefactor     .10000E-03    3.6746        .14543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6804        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5318        4.6906        .14593E-03   -1.5238    
  14  norm          .10000E-03    3.6116        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.416        27.765        .11360E-03   -1.5003    
  16  norm          4.7843        6.2095        .18397E-03   -1.5270    
  17  Prefactor     8.3355        36.818        .13891E-03   -1.5130    
  18  Prefactor     55.108        49.259        .54036E-04   -1.4222    
  19  norm          .56407        24.531        .39729E-02   -1.5558    
  20  Prefactor     27.690        17.656        .76142E-04   -1.4655    
  21  Prefactor     .10000E-03    18.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .35919        1.8046        .15538E-02   -1.5588    
  23  Prefactor     17.155        15.115        .96703E-04   -1.4879    
  24  Prefactor     .10000E-03    51.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0957        .22625        .23907E-03   -.89891    
  26  Prefactor     1.0289        .25202        .28486E-03   -.91772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76689e-10
Minuit parameter uncertainties:
  1  1.15652e-07
  2  1.41692e-05
  3  1.63477
  4  4.6778
  5  7.32949e-07
  6  12.7267
  7  6.60028e-06
  8  4.16625
  9  1.82644e-05
  10  3.6935
  11  4.57489e-06
  12  1.70081e-05
  13  4.6909
  14  3.63132e-07
  15  27.7938
  16  6.21031
  17  35.0731
  18  49.2953
  19  7.44222
  20  17.6589
  21  0.000139083
  22  1.61007
  23  15.1184
  24  3.30876e-05
  25  0.226452
  26  0.25231
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.575e-06  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.029e+00  2.523e-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.096e+00  2.265e-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: 4.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260736/likelihoodResults_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6039.58891084
delta logL = -0.00128344842778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6039.58762772
delta logL = -3.23680069414e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4526       1.0000          .0000       10.000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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=   6039.588     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.001        .14769E-01** at limit **
   2  Index         1.7874        7.9136        .50000        .54788E-06
   3  Normalizat    1.0957        .87520E-02    .23907E-03   -.13481E-03
   4  Prefactor     1.0289        .10180E-01    .28486E-03   -.10983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78743
  Normalizat = 1.09567
  Prefactor  = 1.02891
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.588     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.64        .17040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7874        7.3514        .50000       -.69777    
   3  Normalizat    1.0957        .28066E-01    .95629E-05   -.89891    
   4  Prefactor     1.0289        .32647E-01    .11395E-04   -.91772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83045e-08
Minuit parameter uncertainties:
  1  9.94191e-05
  2  877.158
  3  0.0280668
  4  0.0326477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260736': 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): 102
logL (Free Index) = 6039.5876237
delta logL = 3.68867040379e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.942e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.787e+00  8.772e+02  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.029e+00  3.265e-02  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.096e+00  2.807e-02  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/260736/cmap_HighResolution_654048001_654307201_4FGL_J1419.5+3821_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-09-26 00:39:22.286609', job_id='260736', GAL2='1.03', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632641962.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1600' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 260736: <4FGL_J1419.5+3821_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 00:25:29 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:26:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:26:16 2021
Terminated at Sun Sep 26 00:39:23 2021
Results reported at Sun Sep 26 00:39:23 2021

Your job looked like:

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

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

