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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin731
RA = 214.894, Dec = 38.3657
tmin = 428803201, tmax = 429062401
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='341847', job_status='RUN', time_executed='2021-09-09 09:28:19.493057', time_epoch_executed='1631204899.49' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341847/ft1_4FGL_J1419.5+3821_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341847/ft1_4FGL_J1419.5+3821_daily_bin731.fits outfile=/scratch/kocevski/341847/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin731.fits ra=214.894 dec=38.3657 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.59
user 6.28
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341847/ft1_filtered_4FGL_J1419.5+3821_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/341847/ltcube_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.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/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits
.....................!
real 12.10
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341847/ft1_filtered_4FGL_J1419.5+3821_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/341847/ltcube_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.fits outfile=/scratch/kocevski/341847/expmap_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.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/341847/ltcube_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.fits
.....................!
real 189.96
user 185.54
sys 4.07

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/341847/ft1_filtered_4FGL_J1419.5+3821_daily_bin731.fits scfile=/scratch/kocevski/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits outfile=/scratch/kocevski/341847/cmap_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.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/341847/ft1_filtered_4FGL_J1419.5+3821_daily_bin731.fits scfile=/scratch/kocevski/341847/ft2_4FGL_J1419.5+3821_daily_bin731.fits outfile=/scratch/kocevski/341847/cmap_HighResolution_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    140.49       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.459       1.0000         .10000E-03   10000.    
    10 'norm      '    .12622E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2017       1.0000         .10000E-03   10000.    
    14 'norm      '    59.413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1228       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.932       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3694       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9417       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.008       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4363       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .49090       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=   5343.423     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3113 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9571        267.41        .81585E-05    .66101E-04
   2  Prefactor     140.48        122.33        .92051E-06   -.35374E-04
   3  norm          7.5302        3.4293        .11535E-06   -.74438E-04
   4  Prefactor     .10000E-03    5.7324       -.31821E-06** at limit **
   5  norm          6.7747        23.087        .11963E-05    .30733E-05
   6  Prefactor     .10000E-03    14.446       -.98931E-07** at limit **
   7  Prefactor     .10000E-03    94.733        .24529E-06** at limit **
   8  Prefactor     5.2968        6.6623        .24492E-07   -.48798E-04
   9  Prefactor     12.450        29.705        .88382E-06   -.56816E-04
  10  norm          .10000E-03    3.2841       -.35804E-06** at limit **
  11  Prefactor     .10000E-03    6.7603       -.28021E-07** at limit **
  12  Prefactor     .10000E-03    18.870        .52450E-06** at limit **
  13  Prefactor     2.2024        3.6579        .55189E-06    .10767E-04
  14  norm          59.416        23.962        .16519E-06    .26771E-05
  15  Prefactor     1.2449        159.13        .75563E-05    .18711E-04
  16  norm          9.2149        8.5630        .16428E-05   -.41878E-04
  17  Prefactor     .10000E-03    38.391       -.48982E-07** at limit **
  18  Prefactor     22.953        39.461        .19321E-05    .86174E-04
  19  norm          5.0054        8.1036        .30200E-05    .95561E-05
  20  Prefactor     5.8627        15.451       -.13405E-05   -.47161E-04
  21  Prefactor     4.3695        5.6911        .26066E-05    .85470E-05
  22  norm          2.9418        1.7543       -.18210E-06   -.13548E-03
  23  Prefactor     .10000E-03    20.435       -.11976E-05** at limit **
  24  Prefactor     63.007        65.313        .12041E-06   -.20858E-04
  25  Normalizat    1.4361        .22626       -.34446E-05    .18515E-03
  26  Prefactor     .49100        .22000        .37980E-05   -.69806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95705
  Prefactor  = 140.479
  norm       = 7.53023
  Prefactor  = 0.0001
  norm       = 6.77474
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.29676
  Prefactor  = 12.4504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20243
  norm       = 59.4165
  Prefactor  = 1.24486
  norm       = 9.21489
  Prefactor  = 0.0001
  Prefactor  = 22.9527
  norm       = 5.00539
  Prefactor  = 5.86273
  Prefactor  = 4.36946
  norm       = 2.94185
  Prefactor  = 0.000100001
  Prefactor  = 63.0065
  Normalizat = 1.43607
  Prefactor  = 0.491005
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.423     FROM HESSE     STATUS=OK           460 CALLS     3573 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9571        266.37        .15293E-03   -1.5180    
   2  Prefactor     140.48        122.77        .33987E-04   -1.3332    
   3  norm          7.5302        3.4308        .87267E-04   -1.5159    
   4  Prefactor     .10000E-03    5.9669        .34111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7747        23.061        .15420E-03   -1.5187    
   6  Prefactor     .10000E-03    14.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    94.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2968        6.6542        .17464E-03   -1.5248    
   9  Prefactor     12.450        29.807        .11349E-03   -1.5002    
  10  norm          .10000E-03    7.0018        .25355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2024        3.6263        .16805E-03   -1.5411    
  14  norm          59.416        23.848        .52051E-04   -1.4165    
  15  Prefactor     1.2449        161.80        .44270E-03   -1.5485    
  16  norm          9.2149        8.5346        .66018E-03   -1.5101    
  17  Prefactor     .10000E-03    38.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.953        39.806        .83646E-04   -1.4749    
  19  norm          5.0054        8.1568        .89869E-03   -1.5260    
  20  Prefactor     5.8627        15.459        .16589E-03   -1.5224    
  21  Prefactor     4.3695        5.7156        .93378E-03   -1.5290    
  22  norm          2.9418        1.7526        .68418E-04   -1.5365    
  23  Prefactor     .10000E-03    20.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     63.007        65.267        .50553E-04   -1.4119    
  25  Normalizat    1.4361        .25916        .21744E-03   -.79591    
  26  Prefactor     .49100        .24669        .37168E-03   -1.1239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03836e-09
Minuit parameter uncertainties:
  1  86.5141
  2  122.989
  3  3.43084
  4  2.45535e-05
  5  23.0911
  6  2.85497e-05
  7  0.000511757
  8  6.65509
  9  29.8423
  10  4.74441e-05
  11  6.95729e-06
  12  0.000191397
  13  3.62667
  14  23.8517
  15  28.4621
  16  8.53577
  17  2.7819e-05
  18  39.852
  19  8.15863
  20  15.4692
  21  5.71631
  22  1.75261
  23  0.000223381
  24  65.3413
  25  0.259398
  26  0.247229
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.957e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  4.910e-01  2.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.436e+00  2.594e-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: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341847/likelihoodResults_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.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) = 5343.42366266
delta logL = -0.000700874358699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5343.42296176
delta logL = 2.19079083763e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4543       1.0000          .0000       10.000    
     3 'Normalizat'    1.4361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49102       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=   5343.423     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10308E-03    5.8350        .18142E-01** at limit **
   2  Index         2.3398        6.0594        .50000        .17444E-04
   3  Normalizat    1.4361        .42377E-02    .21745E-03    .31558E-04
   4  Prefactor     .49101        .44665E-02    .37167E-03    .10798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010308
  Index      = 2.33981
  Normalizat = 1.43607
  Prefactor  = 0.491009
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.423     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10308E-03    117.11        .19365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3398        6.6731        .50000       -.56101    
   3  Normalizat    1.4361        .19271E-01    .43489E-04   -.79591    
   4  Prefactor     .49101        .20311E-01    .14867E-04   -1.1239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73665e-08
Minuit parameter uncertainties:
  1  0.03806
  2  608.854
  3  0.0192709
  4  0.0203116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341847': 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) = 5343.42296137
delta logL = 4.1868952394e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.031e-04  3.806e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.340e+00  6.089e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  4.910e-01  2.031e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.436e+00  1.927e-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/341847/cmap_HighResolution_428803201_429062401_4FGL_J1419.5+3821_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-09 09:39:28.523287', job_id='341847', GAL2='0.49', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1631205568.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='4.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='731' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:39:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 341847: <4FGL_J1419.5+3821_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin731 214.894 38.3657 428803201 429062401 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

