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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin748
RA = 214.894, Dec = 38.3657
tmin = 433209601, tmax = 433468801
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='341871', job_status='RUN', time_executed='2021-09-09 09:27:53.175732', time_epoch_executed='1631204873.18' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341871/ft1_4FGL_J1419.5+3821_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341871/ft1_4FGL_J1419.5+3821_daily_bin748.fits outfile=/scratch/kocevski/341871/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin748.fits ra=214.894 dec=38.3657 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.96
user 5.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.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/341871/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/341871/ft1_filtered_4FGL_J1419.5+3821_daily_bin748.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/341871/ft1_filtered_4FGL_J1419.5+3821_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/341871/ltcube_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.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/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits
.....................!
real 11.89
user 11.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341871/ft1_filtered_4FGL_J1419.5+3821_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/341871/ltcube_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.fits outfile=/scratch/kocevski/341871/expmap_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.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/341871/ltcube_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.fits
.....................!
real 190.62
user 186.24
sys 4.03

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/341871/ft1_filtered_4FGL_J1419.5+3821_daily_bin748.fits scfile=/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits outfile=/scratch/kocevski/341871/cmap_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341871/ft1_filtered_4FGL_J1419.5+3821_daily_bin748.fits scfile=/scratch/kocevski/341871/ft2_4FGL_J1419.5+3821_daily_bin748.fits outfile=/scratch/kocevski/341871/cmap_HighResolution_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16987E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3712       1.0000         .10000E-03   10000.    
     5 'norm      '    9.6895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.010       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14312E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6671       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8370       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .64648       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    83.240       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86864       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0801       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=   3742.346     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3150 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.271       -.46116E-07** at limit **
   2  Prefactor     .10001E-03    711.14       -.59741E-05** at limit **
   3  norm          3.1652        2.2908       -.61991E-07   -.38397E-04
   4  Prefactor     2.3726        7.7342       -.96136E-06   -.23757E-03
   5  norm          9.6873        27.787       -.22809E-05   -.11663E-04
   6  Prefactor     .10000E-03    17.096       -.33438E-06** at limit **
   7  Prefactor     .10000E-03    80.745        .32256E-06** at limit **
   8  Prefactor     .10000E-03    5.6421       -.84461E-07** at limit **
   9  Prefactor     62.024        48.502       -.37074E-06   -.28811E-05
  10  norm          .10000E-03    6.2613       -.88101E-08** at limit **
  11  Prefactor     .10083E-03    60.338        .14550E-05** at limit **
  12  Prefactor     23.285        34.597       -.15083E-05    .17916E-03
  13  Prefactor     .10000E-03    2.2252       -.10749E-06** at limit **
  14  norm          6.7637        19.213       -.31254E-06    .12578E-03
  15  Prefactor     .10000E-03    18.730       -.21265E-06** at limit **
  16  norm          .10000E-03    2.2122       -.47399E-07** at limit **
  17  Prefactor     .57833        417.45        .11567E-04   -.14608E-03
  18  Prefactor     8.6686        44.710        .12441E-05   -.97714E-05
  19  norm          6.0022        6.4352        .78059E-07   -.44179E-04
  20  Prefactor     3.8396        24.489       -.26986E-06   -.45609E-04
  21  Prefactor     .10000E-03    2.5750        .79309E-07** at limit **
  22  norm          .64482        1.0812        .96678E-06    .19752E-02
  23  Prefactor     .10000E-03    10.068        .44643E-07** at limit **
  24  Prefactor     83.359        80.315       -.14186E-05   -.69289E-05
  25  Normalizat    .86848        .25990        .40084E-05   -.20419E-03
  26  Prefactor     1.0803        .26596       -.51878E-05   -.64989E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 3.16524
  Prefactor  = 2.37262
  norm       = 9.68728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.0236
  norm       = 0.0001
  Prefactor  = 0.000100832
  Prefactor  = 23.2851
  Prefactor  = 0.0001
  norm       = 6.76374
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.578333
  Prefactor  = 8.66862
  norm       = 6.00215
  Prefactor  = 3.83963
  Prefactor  = 0.0001
  norm       = 0.644821
  Prefactor  = 0.0001
  Prefactor  = 83.3589
  Normalizat = 0.868478
  Prefactor  = 1.0803
 **********
 **   18 **HESSE 
 **********

 FCN=   3742.346     FROM HESSE     STATUS=OK           466 CALLS     3616 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    718.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1652        2.2911        .76030E-04   -1.5352    
   4  Prefactor     2.3726        7.7807        .13304E-02   -1.5400    
   5  norm          9.6873        27.543        .12874E-03   -1.5085    
   6  Prefactor     .10000E-03    17.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6526        .14187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.024        48.634        .50956E-04   -1.4131    
  10  norm          .10000E-03    6.4814        .29872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10083E-03    115.24        .43345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.285        35.286        .83071E-04   -1.4742    
  13  Prefactor     .10000E-03    2.2452        .89036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7637        19.180        .15422E-03   -1.5188    
  15  Prefactor     .10000E-03    18.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2171        .88851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .57833        54.167        .13296       -1.5556    
  18  Prefactor     8.6686        44.609        .13616E-03   -1.5119    
  19  norm          6.0022        6.4331        .15619E-03   -1.5218    
  20  Prefactor     3.8396        24.242        .20603E-03   -1.5316    
  21  Prefactor     .10000E-03    2.5770        .95818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .64482        1.0891        .92030E-03   -1.5547    
  23  Prefactor     .10000E-03    10.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     83.359        80.330        .22013E-03   -1.3879    
  25  Normalizat    .86848        .29142        .24785E-03   -.97577    
  26  Prefactor     1.0803        .28889        .24980E-03   -.90099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41212e-09
Minuit parameter uncertainties:
  1  1.59394e-07
  2  0.00632413
  3  2.29115
  4  7.78404
  5  27.5789
  6  2.26601e-05
  7  0.000107269
  8  3.46905e-06
  9  48.6647
  10  3.40451e-05
  11  0.0196185
  12  35.3172
  13  2.02548e-06
  14  19.1974
  15  1.47842e-05
  16  1.18617e-07
  17  11.2035
  18  39.3753
  19  6.43382
  20  19.3068
  21  4.1684e-06
  22  1.08911
  23  4.40471e-06
  24  80.4348
  25  0.291945
  26  0.289308
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.008e-04  1.962e-02  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.080e+00  2.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.685e-01  2.919e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341871/likelihoodResults_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.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) = 3742.34593739
delta logL = -4.11144642385e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3742.34593682
delta logL = -4.0544814965e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95711E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4734       1.0000          .0000       10.000    
     3 'Normalizat'    .86822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3740.180     FROM MIGRAD    STATUS=CONVERGED    282 CALLS      441 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .38999E-02    .24384E-03** at limit **
   2  Index         8.7501        2.4721        .10289        .68594E-04
   3  Normalizat    .68947        .73960E-01    .44494E-01    .28384E-04
   4  Prefactor     1.2214        .80648E-01    .38377E-01   -.10819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.75011
  Normalizat = 0.689473
  Prefactor  = 1.22138
 **********
 **   18 **HESSE 
 **********

 FCN=   3740.180     FROM HESSE     STATUS=OK            33 CALLS      474 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .67272E-03    .65940E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7501        .26753        .44523E-03    .84809    
   3  Normalizat    .68947        .26221        .27396E-03   -1.0431    
   4  Prefactor     1.2214        .28895        .23669E-03   -.85676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18563e-12
Minuit parameter uncertainties:
  1  5.77781e-10
  2  0.267822
  3  0.262685
  4  0.28933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341871': 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) = 3740.18001415
delta logL = 2.16588212257

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.778e-10  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  8.750e+00  2.678e-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.221e+00  2.893e-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:  6.895e-01  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 214.894 38.366
Photon Index (Free Index): 8.75 +/- 0.27
Photon Flux (Free Index): 1.58e-07 +/- 9.34e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.06e-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/341871/cmap_HighResolution_433209601_433468801_4FGL_J1419.5+3821_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='2.17e+00', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-09 09:37:27.276283', photon_index_error2='0.27', photon_index2='8.75', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.06e-05', EG='0.87', time_epoch_completed='1631205447.28', return_code='0', job_id='341871', GAL2='1.22', EG2='0.69', return_code2='0', photon_flux_error2='9.34e-08', ts2='4.81', photon_index='2.47' WHERE bin_id='748' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 341871: <4FGL_J1419.5+3821_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin748 214.894 38.3657 433209601 433468801 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 :                                   571.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

