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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1180
RA = 214.894, Dec = 38.3657
tmin = 545184001, tmax = 545443201
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='344472', job_status='RUN', time_executed='2021-09-09 09:39:13.269501', time_epoch_executed='1631205553.27' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344472/ft1_4FGL_J1419.5+3821_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344472/ft1_4FGL_J1419.5+3821_daily_bin1180.fits outfile=/scratch/kocevski/344472/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1180.fits ra=214.894 dec=38.3657 rad=12.0 tmin=545184001.0 tmax=545443201.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.99
user 3.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.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/344472/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/344472/ft1_filtered_4FGL_J1419.5+3821_daily_bin1180.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/344472/ft1_filtered_4FGL_J1419.5+3821_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/344472/ltcube_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.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/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits
.....................!
real 11.66
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344472/ft1_filtered_4FGL_J1419.5+3821_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/344472/ltcube_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.fits outfile=/scratch/kocevski/344472/expmap_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.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/344472/ltcube_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.fits
.....................!
real 191.87
user 187.49
sys 3.99

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/344472/ft1_filtered_4FGL_J1419.5+3821_daily_bin1180.fits scfile=/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits outfile=/scratch/kocevski/344472/cmap_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344472/ft1_filtered_4FGL_J1419.5+3821_daily_bin1180.fits scfile=/scratch/kocevski/344472/ft2_4FGL_J1419.5+3821_daily_bin1180.fits outfile=/scratch/kocevski/344472/cmap_HighResolution_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    506.97       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58530E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1161       1.0000         .10000E-03   10000.    
    14 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.682       1.0000         .10000E-03   10000.    
    19 'norm      '    19.737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    101.58       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91560       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94758       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=   2223.682     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3543 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.871       -.28165E-06** at limit **
   2  Prefactor     .10000E-03    47.961       -.10923E-07** at limit **
   3  norm          .84500E-01    173.58       -.14379E-04    .67908E-05
   4  Prefactor     .10000E-03    3.8104       -.54009E-06** at limit **
   5  norm          .10000E-03    12.746       -.20299E-08** at limit **
   6  Prefactor     37.677        35.888       -.34943E-06   -.40083E-04
   7  Prefactor     509.70        1404.1       -.10779E-05    .71425E-05
   8  Prefactor     .10000E-03    54.935        .62797E-05** at limit **
   9  Prefactor     .10000E-03    162.55        .80908E-05** at limit **
  10  norm          .10000E-03    3.1284       -.29387E-06** at limit **
  11  Prefactor     .10000E-03    9.6648       -.16222E-06** at limit **
  12  Prefactor     .10000E-03    12.592       -.10369E-07** at limit **
  13  Prefactor     9.1136        7.1095       -.21349E-06    .30783E-04
  14  norm          .10000E-03    11.899       -.16544E-06** at limit **
  15  Prefactor     .10000E-03    24.085        .21497E-06** at limit **
  16  norm          3.4182        16.007        .16719E-05   -.61669E-04
  17  Prefactor     .10000E-03    36.913        .43029E-07** at limit **
  18  Prefactor     45.647        68.230       -.89472E-06   -.53772E-05
  19  norm          19.732        18.150        .45446E-07   -.98113E-05
  20  Prefactor     .10000E-03    9.9821       -.28546E-06** at limit **
  21  Prefactor     .10000E-03    5.3378       -.14134E-06** at limit **
  22  norm          .10000E-03    .92464       -.10858E-06** at limit **
  23  Prefactor     .10000E-03    616.02       -.19218E-06** at limit **
  24  Prefactor     101.51        119.42       -.36547E-06   -.33236E-04
  25  Normalizat    .91617        .36633        .11065E-04   -.25273E-04
  26  Prefactor     .94724        .38352       -.11104E-04    .10875E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0845002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6767
  Prefactor  = 509.697
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.11364
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41818
  Prefactor  = 0.0001
  Prefactor  = 45.6467
  norm       = 19.7317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.51
  Normalizat = 0.916174
  Prefactor  = 0.947235
 **********
 **   18 **HESSE 
 **********

 FCN=   2223.682     FROM HESSE     STATUS=OK           446 CALLS     3989 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .84500E-01    179.72        .21600E-02   -1.5650    
   4  Prefactor     .10000E-03    3.8859        .89951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.750        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.677        35.901        .65317E-04   -1.4480    
   7  Prefactor     509.70        1421.8        .91167E-04   -1.1153    
   8  Prefactor     .10000E-03    56.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    164.31        .21077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1471        .81490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6700        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.594        .16346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1136        7.1118        .10213E-03   -1.5104    
  14  norm          .10000E-03    11.910        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4182        16.001        .10930E-02   -1.5338    
  17  Prefactor     .10000E-03    36.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.647        68.337        .59321E-04   -1.4356    
  19  norm          19.732        18.140        .90156E-04   -1.4819    
  20  Prefactor     .10000E-03    9.9929        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3489        .10643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .92733        .44300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    644.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     101.51        119.63        .19945E-03   -1.3689    
  25  Normalizat    .91617        .36852        .24731E-03   -.95894    
  26  Prefactor     .94724        .38482        .26203E-03   -.94510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1042e-10
Minuit parameter uncertainties:
  1  6.08558e-05
  2  7.89721e-06
  3  7.81286
  4  1.56259e-05
  5  2.98152e-06
  6  35.9211
  7  1546.07
  8  0.000910724
  9  0.0017061
  10  1.45806e-05
  11  1.80461e-05
  12  1.32587e-05
  13  7.11251
  14  2.4346e-05
  15  8.77934e-06
  16  14.7975
  17  2.56753e-05
  18  68.4547
  19  18.1455
  20  3.24684e-05
  21  1.51124e-05
  22  3.56229e-06
  23  9.60391e-05
  24  119.918
  25  0.369537
  26  0.38594
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.805e-05  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:  9.472e-01  3.859e-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:  9.162e-01  3.695e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344472/likelihoodResults_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.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) = 2223.68211816
delta logL = -0.000487361032356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2223.68163062
delta logL = 1.81614268513e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4427       1.0000          .0000       10.000    
     3 'Normalizat'    .91617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94724       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=   2223.682     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      254 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    86.897        .14840E-01** at limit **
   2  Index         1.5824        9.1857        .50000        .74010E-07
   3  Normalizat    .91618        .14488E-01    .24732E-03    .19863E-02
   4  Prefactor     .94724        .15667E-01    .26203E-03    .18812E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 1.58243
  Normalizat = 0.916184
  Prefactor  = 0.947243
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    599.68        .20506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5824        5.0268        .50000       -.75256    
   3  Normalizat    .91618        .39484E-01    .49464E-04   -.95894    
   4  Prefactor     .94724        .42697E-01    .52406E-04   -.94509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28162e-08
Minuit parameter uncertainties:
  1  0.00515373
  2  1129.68
  3  0.0394849
  4  0.042699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344472': 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) = 2223.68162815
delta logL = 2.64601703748e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.154e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.582e+00  1.130e+03  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:  9.472e-01  4.270e-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:  9.162e-01  3.948e-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/344472/cmap_HighResolution_545184001_545443201_4FGL_J1419.5+3821_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-09 09:48:46.117811', job_id='344472', GAL2='0.95', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631206126.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1180' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:48:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 344472: <4FGL_J1419.5+3821_daily_bin1180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1180 214.894 38.3657 545184001 545443201 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 :                                   462.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

