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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin587
RA = 220.561, Dec = 6.3755
tmin = 391478401, tmax = 391737601
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='713860', job_status='RUN', time_executed='2021-09-10 05:46:30.132328', time_epoch_executed='1631277990.13' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713860

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713860/ft1_4FGL_J1442.2+0622_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713860/ft1_4FGL_J1442.2+0622_daily_bin587.fits outfile=/scratch/kocevski/713860/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin587.fits ra=220.561 dec=6.3755 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.33
user 4.10
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.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/713860/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/713860/ltcube_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.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/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/713860/ltcube_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits outfile=/scratch/kocevski/713860/expmap_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.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/713860/ltcube_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits
.....................!
real 191.77
user 185.88
sys 5.53

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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1442.2+0622 @ 220.561 6.3755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits outfile=/scratch/kocevski/713860/cmap_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.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=220.561 yref=6.3755 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits outfile=/scratch/kocevski/713860/cmap_HighResolution_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.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=220.561 yref=6.3755 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/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713860/Model_4FGL_J1442.2+0622_daily_bin587.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/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits.....................!
real 46.56
user 45.16
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits', '/scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits', expMap='/scratch/kocevski/713860/expmap_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits', expCube='/scratch/kocevski/713860/ltcube_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/713860/Model_4FGL_J1442.2+0622_daily_bin587.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1442.2+0622'

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  3.653e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.698e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/713860/ft1_filtered_4FGL_J1442.2+0622_daily_bin587.fits
Spacecraft file(s): /scratch/kocevski/713860/ft2_4FGL_J1442.2+0622_daily_bin587.fits
Exposure map: /scratch/kocevski/713860/expmap_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits
Exposure cube: /scratch/kocevski/713860/ltcube_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/713860/Model_4FGL_J1442.2+0622_daily_bin587.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) = 5981.95935871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.677       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.501       1.0000         .10000E-03   10000.    
     6 'norm      '    36.985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.957       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97327E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49950E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10538E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.102       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3919       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4015       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5981.920     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2943 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2932        .90712E-02** at limit **
   2  Prefactor     .10001E-03    18.600        .90712E-02** at limit **
   3  Prefactor     29.675        29.482        .18386E-02    .15823E-03
   4  norm          .10000E-03    3.7096        .90712E-02** at limit **
   5  Prefactor     34.494        32.702        .17056E-02    .11325E-02
   6  norm          36.982        33.212        .16475E-02   -.17446E-03
   7  Prefactor     5.2284        8.3734        .43936E-02   -.75434E-03
   8  Prefactor     1.2772        4.9882        .98345E-02    .81224E-03
   9  Prefactor     .10001E-03    48.356        .90712E-02** at limit **
  10  Prefactor     .10024E-03    100.57        .90712E-02** at limit **
  11  norm          10.961        13.779        .30259E-02    .12103E-03
  12  Prefactor     .10688E-03    19.557        .10390    ** at limit **
  13  Prefactor     .10000E-03    10.688        .90712E-02** at limit **
  14  Prefactor     .10001E-03    25.799        .90712E-02** at limit **
  15  Prefactor     .10000E-03    13.546        .10579    ** at limit **
  16  Prefactor     .10001E-03    16.811        .90712E-02** at limit **
  17  norm          .10000E-03    .54661E-01    .87406E-02** at limit **
  18  norm          .10000E-03    1.2554        .29946E-01** at limit **
  19  norm          11.104        8.0944        .30060E-02    .93579E-03
  20  norm          .10000E-03    1.4485        .90712E-02** at limit **
  21  Prefactor     9.3955        29.393        .32692E-02   -.25405E-03
  22  Normalizat    1.4015        .21811        .59284E-01   -.93495E-03
  23  Prefactor     .78459        .13012        .43517E-01   -.96313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 29.6746
  norm       = 0.0001
  Prefactor  = 34.4935
  norm       = 36.9823
  Prefactor  = 5.22841
  Prefactor  = 1.27716
  Prefactor  = 0.000100007
  Prefactor  = 0.000100236
  norm       = 10.9614
  Prefactor  = 0.000106884
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.1037
  norm       = 0.0001
  Prefactor  = 9.39547
  Normalizat = 1.40154
  Prefactor  = 0.784592
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.920     FROM HESSE     STATUS=OK           362 CALLS     3305 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2946        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    18.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.675        29.494        .73546E-04   -1.4618    
   4  norm          .10000E-03    3.7108        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.494        32.841        .68224E-04   -1.4533    
   6  norm          36.982        33.196        .65901E-04   -1.4491    
   7  Prefactor     5.2284        8.2640        .17575E-03   -1.5251    
   8  Prefactor     1.2772        4.8988        .31630E-03   -1.5482    
   9  Prefactor     .10001E-03    48.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10024E-03    101.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.961        13.653        .12103E-03   -1.5046    
  12  Prefactor     .10688E-03    177.46        .65320E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    26.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.140        .54675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    16.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .65538E-01    .35032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6085        .16726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.104        8.0863        .12024E-03   -1.5041    
  20  norm          .10000E-03    1.4566        .90883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3955        29.421        .13077E-03   -1.5095    
  22  Normalizat    1.4015        .26325        .26218E-03   -.80584    
  23  Prefactor     .78459        .15771        .20681E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85678e-08
Minuit parameter uncertainties:
  1  3.23533e-05
  2  0.000829422
  3  29.5088
  4  3.34467e-05
  5  32.8579
  6  33.2129
  7  8.26584
  8  4.90035
  9  0.00117883
  10  0.00982476
  11  13.6565
  12  0.0701099
  13  2.29531e-05
  14  0.00105187
  15  6.83888e-05
  16  0.000603449
  17  1.16529e-06
  18  2.27306e-05
  19  8.08711
  20  1.00542e-05
  21  29.4665
  22  0.263508
  23  0.157802
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.096e+01  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.698e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.846e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.402e+00  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 6.58e-06 +/- 8.20e-06

TS (Fixed Index): 1.04
Ra Dec: 220.561 6.375
Photon Flux Upper Limit: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/713860/likelihoodResults_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.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) = 5981.69969631
delta logL = 0.220684083919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.69828591
delta logL = 0.222094485221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.836       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8153       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+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=   5981.698     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      313 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.838        23.896        .89929E-04    .32869E-05
   2  alpha         1.8152        1.1569        .31650E-01    .44868E-04
   3  Normalizat    1.4152        .25389        .26109E-03   -.69232E-05
   4  Prefactor     .77841        .15580        .20752E-03    .87108E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.8381
  alpha      = 1.81521
  Normalizat = 1.41525
  Prefactor  = 0.778411
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.698     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.838        23.646        .35972E-05   -1.4817    
   2  alpha         1.8152        1.1463        .63301E-02   -.27746    
   3  Normalizat    1.4152        .25414        .10444E-04   -.80189    
   4  Prefactor     .77841        .15597        .83006E-05   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01058e-12
Minuit parameter uncertainties:
  1  23.6568
  2  1.19489
  3  0.254366
  4  0.156062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713860': 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) = 5981.69828576
delta logL = 0.222094630719

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.984e+01  2.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.815e+00  1.195e+00  0.000e+00  5.000e+00 ( 1.000e+00)
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.784e-01  1.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.415e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 220.561 6.375
Photon Index (Free Index): 1.82 +/- 1.19
Photon Flux (Free Index): 1.07e-08 +/- 1.54e-08
Energy Flux (Free Index): 9.47e-06 +/- 1.26e-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/713860/cmap_HighResolution_391478401_391737601_4FGL_J1442.2+0622_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='9.47e-06', photon_flux_error='2.26e-08', dlogl='2.22e-01', energy_flux='6.58e-06', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-10 05:56:40.446669', photon_index_error2='1.19', photon_index2='1.82', ts='1.04', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='1.26e-05', EG='1.40', time_epoch_completed='1631278600.45', return_code='0', job_id='713860', GAL2='0.78', EG2='1.42', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='1.54e-08', ts2='1.49', photon_index='2.70' WHERE bin_id='587' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 713860: <4FGL_J1442.2+0622_daily_bin587> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin587> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:46:15 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:46:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 05:46:16 2021
Terminated at Fri Sep 10 05:56:41 2021
Results reported at Fri Sep 10 05:56:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin587 220.561 6.3755 391478401 391737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1442.2+0622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            626 sec.

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

