/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 1 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin96
RA = 214.894, Dec = 38.3657
tmin = 264211201, tmax = 264470401
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='338872', job_status='RUN', time_executed='2021-09-09 09:15:57.425089', time_epoch_executed='1631204157.43' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338872/ft1_4FGL_J1419.5+3821_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338872/ft1_4FGL_J1419.5+3821_daily_bin96.fits outfile=/scratch/kocevski/338872/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin96.fits ra=214.894 dec=38.3657 rad=12.0 tmin=264211201.0 tmax=264470401.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 1.74
user 1.50
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338872/ft1_filtered_4FGL_J1419.5+3821_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/338872/ltcube_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.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/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits
.....................!
real 12.44
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338872/ft1_filtered_4FGL_J1419.5+3821_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/338872/ltcube_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.fits outfile=/scratch/kocevski/338872/expmap_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.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/338872/ltcube_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.fits
.....................!
real 191.19
user 184.72
sys 5.15

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/338872/ft1_filtered_4FGL_J1419.5+3821_daily_bin96.fits scfile=/scratch/kocevski/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits outfile=/scratch/kocevski/338872/cmap_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338872/ft1_filtered_4FGL_J1419.5+3821_daily_bin96.fits scfile=/scratch/kocevski/338872/ft2_4FGL_J1419.5+3821_daily_bin96.fits outfile=/scratch/kocevski/338872/cmap_HighResolution_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.817       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.326       1.0000         .10000E-03   10000.    
    10 'norm      '    .11908E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13262E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8636       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8512       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3397       1.0000         .10000E-03   10000.    
    22 'norm      '    .10593E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0417       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95676       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1139       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=   6923.256     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3137 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.450        .35826E-06** at limit **
   2  Prefactor     40.783        62.306       -.39440E-04    .11729E-04
   3  norm          2.6316        1.2965        .20578E-07    .31952E-03
   4  Prefactor     .10000E-03    2.3803       -.69223E-07** at limit **
   5  norm          .10000E-03    8.9765        .38241E-06** at limit **
   6  Prefactor     .10000E-03    4.0428       -.36249E-06** at limit **
   7  Prefactor     .10000E-03    231.60       -.96345E-04** at limit **
   8  Prefactor     .79151        1.1281        .25045E-06   -.17882E-02
   9  Prefactor     18.333        21.258       -.20920E-06    .25366E-03
  10  norm          .10000E-03    2.2337        .26359E-07** at limit **
  11  Prefactor     7.8506        9.1947       -.41870E-06    .15768E-03
  12  Prefactor     .10000E-03    22.626       -.49729E-05** at limit **
  13  Prefactor     .10000E-03    2.5859       -.20091E-06** at limit **
  14  norm          1.8651        15.867       -.87318E-06    .73410E-05
  15  Prefactor     12.553        22.537       -.25598E-06    .44188E-04
  16  norm          7.2156        6.1294       -.13667E-05    .62359E-04
  17  Prefactor     .10000E-03    20.050        .44076E-05** at limit **
  18  Prefactor     .10000E-03    15.160       -.77121E-06** at limit **
  19  norm          5.8508        5.6167       -.56965E-06    .22908E-04
  20  Prefactor     .10000E-03    4.6330       -.65084E-07** at limit **
  21  Prefactor     4.3443        7.1341        .98209E-07   -.25939E-03
  22  norm          .10000E-03    .85364       -.25094E-06** at limit **
  23  Prefactor     8.0430        12.149       -.84476E-06   -.61117E-04
  24  Prefactor     .10000E-03    79.853        .59665E-05** at limit **
  25  Normalizat    .95645        .16085        .47106E-05    .19416E-03
  26  Prefactor     1.1143        .17743       -.13772E-05    .58385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.7834
  norm       = 2.63158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.79151
  Prefactor  = 18.3332
  norm       = 0.0001
  Prefactor  = 7.85063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86512
  Prefactor  = 12.5527
  norm       = 7.2156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.85076
  Prefactor  = 0.0001
  Prefactor  = 4.34428
  norm       = 0.0001
  Prefactor  = 8.043
  Prefactor  = 0.0001
  Normalizat = 0.956445
  Prefactor  = 1.11428
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.256     FROM HESSE     STATUS=OK           458 CALLS     3595 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.783        62.709        .62743E-04   -1.4430    
   3  norm          2.6316        1.2978        .64162E-04   -1.5384    
   4  Prefactor     .10000E-03    2.4385        .25052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.0332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0435        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    234.11        .21263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79151        7.8352        .21256E-02   -1.5530    
   9  Prefactor     18.333        21.937        .93560E-04   -1.4851    
  10  norm          .10000E-03    4.2037        .23840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8506        9.1429        .14322E-03   -1.5148    
  12  Prefactor     .10000E-03    22.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7033        .26095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8651        15.658        .30520E-03   -1.5435    
  15  Prefactor     12.553        22.563        .11309E-03   -1.4999    
  16  norm          7.2156        6.1240        .14934E-03   -1.5171    
  17  Prefactor     .10000E-03    20.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8508        5.6196        .16602E-03   -1.5224    
  20  Prefactor     .10000E-03    4.6438        .17487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3443        6.7317        .96681E-03   -1.5291    
  22  norm          .10000E-03    1.3305        .13887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.0430        12.168        .70693E-03   -1.5141    
  24  Prefactor     .10000E-03    80.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95645        .19455        .23271E-03   -.94504    
  26  Prefactor     1.1143        .21564        .25477E-03   -.89012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20019e-08
Minuit parameter uncertainties:
  1  3.77114e-05
  2  62.8108
  3  1.29781
  4  1.70444e-05
  5  5.47866e-05
  6  1.40374e-06
  7  0.000940964
  8  4.98116
  9  21.9464
  10  7.11092e-05
  11  9.1445
  12  1.9267e-05
  13  2.3418e-05
  14  10.8117
  15  22.5784
  16  6.12453
  17  4.07266e-06
  18  3.51771e-05
  19  5.62011
  20  8.31213e-06
  21  6.73286
  22  2.60711e-05
  23  12.1716
  24  0.000118158
  25  0.194698
  26  0.215812
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.851e+00  9.145e+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:  1.114e+00  2.158e-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.564e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 5.87e-06 +/- 6.84e-06

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

Saving results to:
/scratch/kocevski/338872/likelihoodResults_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.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) = 6923.00255191
delta logL = 0.253633547834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6922.99077318
delta logL = 0.265412278634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3080       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7469       1.0000          .0000       10.000    
     3 'Normalizat'    .97262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       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=   6922.991     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3057        11.266        .13136E-03    .27695E-05
   2  Index         1.7455        .86428        .13850E-01   -.15690E-03
   3  Normalizat    .97263        .17954        .23096E-03    .19690E-05
   4  Prefactor     1.1028        .21081        .25586E-03   -.73980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.30572
  Index      = 1.74548
  Normalizat = 0.972626
  Prefactor  = 1.10281
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.991     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3057        11.382        .52544E-05   -1.5098    
   2  Index         1.7455        .87331        .27699E-02   -.70877    
   3  Normalizat    .97263        .17971        .92383E-05   -.93953    
   4  Prefactor     1.1028        .21102        .10235E-04   -.89377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.612e-11
Minuit parameter uncertainties:
  1  11.3847
  2  0.881205
  3  0.179823
  4  0.211177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338872': 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) = 6922.99077159
delta logL = 0.265413869052

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  9.306e+00  1.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.745e+00  8.812e-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:  1.103e+00  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:  9.726e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.75 +/- 0.88
Photon Flux (Free Index): 8.03e-09 +/- 1.43e-08
Energy Flux (Free Index): 1.14e-05 +/- 2.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/338872/cmap_HighResolution_264211201_264470401_4FGL_J1419.5+3821_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='1.14e-05', photon_flux_error='2.28e-08', dlogl='2.65e-01', energy_flux='5.87e-06', photon_flux2='8.03e-09', job_status='DONE', time_completed='2021-09-09 09:28:41.035835', photon_index_error2='0.88', photon_index2='1.75', ts='1.50', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.91e-08', energy_flux_error2='2.07e-05', EG='0.96', time_epoch_completed='1631204921.04', return_code='0', job_id='338872', GAL2='1.10', EG2='0.97', return_code2='0', energy_flux_error='6.84e-06', photon_flux_error2='1.43e-08', ts2='2.02', photon_index='2.47' WHERE bin_id='96' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:28:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 338872: <4FGL_J1419.5+3821_daily_bin96> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin96 214.894 38.3657 264211201 264470401 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

