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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin113
RA = 220.561, Dec = 6.3755
tmin = 268617601, tmax = 268876801
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='711023', job_status='RUN', time_executed='2021-09-10 05:37:00.319598', time_epoch_executed='1631277420.32' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711023/ft1_4FGL_J1442.2+0622_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711023/ft1_4FGL_J1442.2+0622_daily_bin113.fits outfile=/scratch/kocevski/711023/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin113.fits ra=220.561 dec=6.3755 rad=12.0 tmin=268617601.0 tmax=268876801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.49
user 1.33
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.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/711023/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin113.fits evtable="EVENTS" outfile="/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/711023/ltcube_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.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/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits
.....................!
real 12.65
user 12.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/711023/ltcube_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits outfile=/scratch/kocevski/711023/expmap_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.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/711023/ltcube_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits
.....................!
real 189.93
user 185.03
sys 4.51

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/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits outfile=/scratch/kocevski/711023/cmap_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits outfile=/scratch/kocevski/711023/cmap_HighResolution_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711023/Model_4FGL_J1442.2+0622_daily_bin113.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/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits.....................!
real 79.03
user 77.55
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits', '/scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits', expMap='/scratch/kocevski/711023/expmap_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits', expCube='/scratch/kocevski/711023/ltcube_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/711023/Model_4FGL_J1442.2+0622_daily_bin113.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/711023/ft1_filtered_4FGL_J1442.2+0622_daily_bin113.fits
Spacecraft file(s): /scratch/kocevski/711023/ft2_4FGL_J1442.2+0622_daily_bin113.fits
Exposure map: /scratch/kocevski/711023/expmap_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits
Exposure cube: /scratch/kocevski/711023/ltcube_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/711023/Model_4FGL_J1442.2+0622_daily_bin113.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) = 11442.0339779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51560E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.1505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.438       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9656       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.736       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8180       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4720       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4009       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89135       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.

 FCN=   11442.02     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2535 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.9759        .29234E-06** at limit **
   2  Prefactor     .10000E-03    19.903        .10037E-05** at limit **
   3  Prefactor     .10000E-03    10.986        .19695E-05** at limit **
   4  norm          9.1506        7.9686        .23533E-07    .11663E-04
   5  Prefactor     .10000E-03    45.962        .24477E-05** at limit **
   6  norm          11.437        11.333        .28953E-06    .28264E-03
   7  Prefactor     .10000E-03    1.9880       -.34486E-06** at limit **
   8  Prefactor     .10000E-03    5.1111       -.25750E-07** at limit **
   9  Prefactor     .10000E-03    21.603       -.13564E-04** at limit **
  10  Prefactor     .10000E-03    18.887        .14449E-04** at limit **
  11  norm          13.178        12.571        .65875E-07   -.21600E-03
  12  Prefactor     4.0238        33.100       -.76417E-05    .76764E-04
  13  Prefactor     .10000E-03    15.166       -.47935E-05** at limit **
  14  Prefactor     .10000E-03    9.6428       -.94551E-06** at limit **
  15  Prefactor     .95842        17.558       -.33200E-05   -.11023E-03
  16  Prefactor     28.783        27.613        .14374E-04    .17020E-03
  17  norm          1.8179        .24442       -.67630E-08    .17826E-02
  18  norm          5.4718        2.0827       -.38747E-07   -.27093E-03
  19  norm          .10000E-03    3.6119        .13949E-06** at limit **
  20  norm          .10000E-03    .78089       -.27897E-06** at limit **
  21  Prefactor     .10000E-03    8.2722       -.12423E-06** at limit **
  22  Normalizat    1.4010        .17172        .39882E-06    .18984E-03
  23  Prefactor     .89131        .10086       -.25949E-06    .26321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.15058
  Prefactor  = 0.0001
  norm       = 11.4365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.178
  Prefactor  = 4.02384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.958425
  Prefactor  = 28.7829
  norm       = 1.81795
  norm       = 5.47182
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40099
  Prefactor  = 0.891309
 **********
 **   18 **HESSE 
 **********

 FCN=   11442.02     FROM HESSE     STATUS=OK           366 CALLS     2901 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.350        .46181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.1506        7.9716        .13249E-03   -1.5103    
   5  Prefactor     .10000E-03    47.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.437        11.343        .59227E-03   -1.5031    
   7  Prefactor     .10000E-03    1.9971        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.178        12.572        .11034E-03   -1.4982    
  12  Prefactor     4.0238        32.941        .20255E-03   -1.5307    
  13  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .95842        168.36        .76900E-02   -1.5512    
  16  Prefactor     28.783        28.476        .37369E-03   -1.4634    
  17  norm          1.8179        .24473        .18425E-04   -1.5438    
  18  norm          5.4718        2.0817        .90673E-04   -1.5240    
  19  norm          .10000E-03    3.6931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .78373        .92285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4010        .20135        .29755E-03   -.80600    
  23  Prefactor     .89131        .11858        .21842E-03   -.96445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09877e-09
Minuit parameter uncertainties:
  1  0.00079581
  2  2.23158e-05
  3  3.40233e-06
  4  7.97249
  5  8.88934e-05
  6  11.3451
  7  5.68921e-07
  8  9.28054e-06
  9  7.04652e-06
  10  2.18987e-05
  11  12.5741
  12  23.043
  13  3.44523e-06
  14  3.17603e-05
  15  25.4772
  16  28.4897
  17  0.244734
  18  2.08171
  19  1.29392e-07
  20  2.68501e-07
  21  3.22366e-07
  22  0.201468
  23  0.118611
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.318e+01  1.257e+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:  8.913e-01  1.186e-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.401e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 7.91e-06 +/- 7.55e-06

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

Saving results to:
/scratch/kocevski/711023/likelihoodResults_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.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) = 11438.0291391
delta logL = 3.98687354674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11437.9491438
delta logL = 4.06686882197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1130       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95162       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=   11437.95     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      305 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1129        7.2371        .89971E-02    .52239E-03
   2  alpha         5.0000        3.1785        .46269    ** at limit **
   3  Normalizat    1.2298        .11249        .70836E-01    .13855E-03
   4  Prefactor     .95153        .67105E-01    .45660E-01    .45153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11286
  alpha      = 5
  Normalizat = 1.22983
  Prefactor  = 0.951525
 **********
 **   18 **HESSE 
 **********

 FCN=   11437.95     FROM HESSE     STATUS=OK            35 CALLS      340 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1129        .58378        .40399E-04   -1.5497    
   2  alpha         5.0000        .44566        .38906        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2298        .20644        .31343E-03   -.85686    
   4  Prefactor     .95153        .12120        .21192E-03   -.94363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44459e-10
Minuit parameter uncertainties:
  1  0.583784
  2  0.000101653
  3  0.206573
  4  0.121231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711023': 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) = 11437.9491374
delta logL = 4.0668753025

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.113e+00  5.838e-01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  5.000e+00  1.017e-04  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:  9.515e-01  1.212e-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.230e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 220.561 6.375
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.58e-07 +/- 8.28e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/711023/cmap_HighResolution_268617601_268876801_4FGL_J1442.2+0622_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.41e-05', photon_flux_error='2.09e-08', dlogl='4.07e+00', energy_flux='7.91e-06', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-10 05:50:55.435388', photon_index_error2='0.00', photon_index2='5.00', ts='2.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.26e-08', energy_flux_error2='1.26e-05', EG='1.40', time_epoch_completed='1631278255.44', return_code='0', job_id='711023', GAL2='0.95', EG2='1.23', return_code2='0', energy_flux_error='7.55e-06', photon_flux_error2='8.28e-08', ts2='10.76', photon_index='2.70' WHERE bin_id='113' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 711023: <4FGL_J1442.2+0622_daily_bin113> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin113> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:36:42 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:36:44 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:36:44 2021
Terminated at Fri Sep 10 05:50:56 2021
Results reported at Fri Sep 10 05:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin113 220.561 6.3755 268617601 268876801 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 :                                   834.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

