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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1468
RA = 214.894, Dec = 38.3657
tmin = 619833601, tmax = 620092801
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='346182', job_status='RUN', time_executed='2021-09-09 09:40:45.083714', time_epoch_executed='1631205645.08' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346182/ft1_4FGL_J1419.5+3821_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346182/ft2_4FGL_J1419.5+3821_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346182/ft1_4FGL_J1419.5+3821_daily_bin1468.fits outfile=/scratch/kocevski/346182/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1468.fits ra=214.894 dec=38.3657 rad=12.0 tmin=619833601.0 tmax=620092801.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.53
user 3.28
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346182/ft1_filtered_4FGL_J1419.5+3821_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/346182/ft2_4FGL_J1419.5+3821_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/346182/ltcube_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.fits outfile=/scratch/kocevski/346182/expmap_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.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/346182/ltcube_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.fits
.....................!
real 191.57
user 186.79
sys 4.44

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/346182/ft1_filtered_4FGL_J1419.5+3821_daily_bin1468.fits scfile=/scratch/kocevski/346182/ft2_4FGL_J1419.5+3821_daily_bin1468.fits outfile=/scratch/kocevski/346182/cmap_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346182/ft1_filtered_4FGL_J1419.5+3821_daily_bin1468.fits scfile=/scratch/kocevski/346182/ft2_4FGL_J1419.5+3821_daily_bin1468.fits outfile=/scratch/kocevski/346182/cmap_HighResolution_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25105E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3607       1.0000         .10000E-03   10000.    
     5 'norm      '    10.817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43765E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    21.195       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.846       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7291       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7393       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93790       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96092       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=   5873.417     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3137 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.929       -.71718E-06** at limit **
   2  Prefactor     .10003E-03    206.35       -.39886E-04** at limit **
   3  norm          .50561        .97393        .91539E-07   -.25900E-03
   4  Prefactor     3.3610        2.4049        .80207E-06   -.33442E-02
   5  norm          10.808        13.159        .10771E-05    .12877E-03
   6  Prefactor     .10000E-03    5.3766       -.48009E-07** at limit **
   7  Prefactor     86.368        50.586        .50241E-06    .16519E-04
   8  Prefactor     3.1464        3.2804        .56680E-08   -.46928E-04
   9  Prefactor     .10000E-03    4.3340       -.36896E-07** at limit **
  10  norm          .10000E-03    3.8270        .16533E-06** at limit **
  11  Prefactor     5.4586        7.4575       -.65062E-06   -.80100E-04
  12  Prefactor     .10000E-03    4.2577       -.24658E-06** at limit **
  13  Prefactor     .29994E-01    1.8037        .95317E-07   -.19998E-03
  14  norm          21.193        16.293        .11544E-06   -.11739E-04
  15  Prefactor     .10000E-03    18.010        .76595E-07** at limit **
  16  norm          .10000E-03    3.6563        .66789E-08** at limit **
  17  Prefactor     40.335        43.822       -.15659E-05   -.40991E-04
  18  Prefactor     25.854        28.730        .31453E-05    .99890E-04
  19  norm          .10000E-03    2.8564        .51591E-08** at limit **
  20  Prefactor     6.8938        11.584        .46000E-06   -.11101E-06
  21  Prefactor     .10000E-03    4.4965        .24679E-06** at limit **
  22  norm          1.7297        1.3410        .22358E-07   -.14280E-03
  23  Prefactor     2.7398        7.7186       -.12065E-05   -.14805E-03
  24  Prefactor     .10000E-03    30.026        .37607E-06** at limit **
  25  Normalizat    .93785        .15697       -.29228E-06    .14191E-03
  26  Prefactor     .96089        .18279       -.32254E-06    .85866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 0.505609
  Prefactor  = 3.36097
  norm       = 10.8076
  Prefactor  = 0.0001
  Prefactor  = 86.3685
  Prefactor  = 3.14637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.45859
  Prefactor  = 0.0001
  Prefactor  = 0.0299944
  norm       = 21.1932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.3349
  Prefactor  = 25.8536
  norm       = 0.0001
  Prefactor  = 6.89376
  Prefactor  = 0.0001
  norm       = 1.7297
  Prefactor  = 2.73976
  Prefactor  = 0.0001
  Normalizat = 0.937855
  Prefactor  = 0.960893
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.417     FROM HESSE     STATUS=OK           466 CALLS     3603 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    211.65        .21463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .50561        .90602        .10050E-02   -1.5566    
   4  Prefactor     3.3610        4.2587        .83907E-03   -1.5341    
   5  norm          10.808        13.221        .12182E-03   -1.5050    
   6  Prefactor     .10000E-03    5.3825        .17355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.368        50.561        .43229E-04   -1.3847    
   8  Prefactor     3.1464        3.2715        .13663E-03   -1.5353    
   9  Prefactor     .10000E-03    4.3387        .15581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9384        .29229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4586        7.4657        .17197E-03   -1.5241    
  12  Prefactor     .10000E-03    4.2615        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29994E-01    5.3291        .32928E-01   -1.5673    
  14  norm          21.193        16.281        .87002E-04   -1.4787    
  15  Prefactor     .10000E-03    18.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7287        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.335        43.952        .63114E-04   -1.4437    
  18  Prefactor     25.854        28.715        .78796E-04   -1.4691    
  19  norm          .10000E-03    2.8578        .12648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8938        11.568        .15281E-03   -1.5183    
  21  Prefactor     .10000E-03    4.5309        .15849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7297        1.3292        .74791E-04   -1.5445    
  23  Prefactor     2.7398        7.7446        .24600E-03   -1.5377    
  24  Prefactor     .10000E-03    30.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93785        .18823        .21615E-03   -.95142    
  26  Prefactor     .96089        .21631        .25567E-03   -.94045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04497e-08
Minuit parameter uncertainties:
  1  3.6711e-05
  2  0.00519802
  3  0.906047
  4  4.2591
  5  13.2251
  6  3.05036e-07
  7  50.5859
  8  3.27168
  9  5.60076e-07
  10  6.19526e-06
  11  7.46702
  12  2.02749e-06
  13  0.798345
  14  16.2842
  15  2.10177e-05
  16  4.05681e-06
  17  43.9876
  18  28.73
  19  6.46629e-07
  20  11.5716
  21  5.16872e-06
  22  1.32925
  23  7.74742
  24  2.28456e-05
  25  0.188364
  26  0.216506
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.459e+00  7.467e+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:  9.609e-01  2.165e-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.379e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 4.08e-06 +/- 5.58e-06

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

Saving results to:
/scratch/kocevski/346182/likelihoodResults_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.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) = 5873.38544521
delta logL = 0.0318353843795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.37369496
delta logL = 0.0435856299819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8282       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1123       1.0000          .0000       10.000    
     3 'Normalizat'    .94366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95648       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=   5873.374     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8346        448.85        .38386E-02    .36276E-03
   2  Index         2.1123        6.1129        .25180        .13798E-04
   3  Normalizat    .94373        .10062        .45457E-01    .72554E-05
   4  Prefactor     .95643        .74969E-01    .45721E-01    .95251E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83463
  Index      = 2.11233
  Normalizat = 0.943735
  Prefactor  = 0.956432
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.374     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8346        9.7988        .76772E-03   -1.5185    
   2  Index         2.1123        1.1373        .14580E-01   -.61570    
   3  Normalizat    .94373        .17901        .21555E-03   -.94940    
   4  Prefactor     .95643        .21424        .25618E-03   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61985e-10
Minuit parameter uncertainties:
  1  9.80115
  2  1.15252
  3  0.179122
  4  0.214431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346182': 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) = 5873.37369456
delta logL = 0.0435860347952

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  6.835e+00  9.801e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.112e+00  1.153e+00  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.564e-01  2.144e-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.437e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.11 +/- 1.15
Photon Flux (Free Index): 9.55e-09 +/- 1.73e-08
Energy Flux (Free Index): 5.10e-06 +/- 9.26e-06

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/346182/cmap_HighResolution_619833601_620092801_4FGL_J1419.5+3821_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='5.10e-06', photon_flux_error='1.86e-08', dlogl='4.36e-02', energy_flux='4.08e-06', photon_flux2='9.55e-09', job_status='DONE', time_completed='2021-09-09 09:52:31.358488', photon_index_error2='1.15', photon_index2='2.11', ts='1.08', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.99e-08', energy_flux_error2='9.26e-06', EG='0.94', time_epoch_completed='1631206351.36', return_code='0', job_id='346182', GAL2='0.96', EG2='0.94', return_code2='0', energy_flux_error='5.58e-06', photon_flux_error2='1.73e-08', ts2='1.16', photon_index='2.47' WHERE bin_id='1468' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 346182: <4FGL_J1419.5+3821_daily_bin1468> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1468> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:40:34 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:40:35 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:40:35 2021
Terminated at Thu Sep  9 09:52:32 2021
Results reported at Thu Sep  9 09:52:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1468 214.894 38.3657 619833601 620092801 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

