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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin168
RA = 220.561, Dec = 6.3755
tmin = 282873601, tmax = 283132801
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='712129', job_status='RUN', time_executed='2021-09-10 05:44:10.599200', time_epoch_executed='1631277850.6' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712129/ft1_4FGL_J1442.2+0622_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712129/ft1_4FGL_J1442.2+0622_daily_bin168.fits outfile=/scratch/kocevski/712129/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin168.fits ra=220.561 dec=6.3755 rad=12.0 tmin=282873601.0 tmax=283132801.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.29
user 3.05
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.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/712129/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/712129/ft1_filtered_4FGL_J1442.2+0622_daily_bin168.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712129/ft1_filtered_4FGL_J1442.2+0622_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/712129/ltcube_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.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/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712129/ft1_filtered_4FGL_J1442.2+0622_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/712129/ltcube_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.fits outfile=/scratch/kocevski/712129/expmap_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.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/712129/ltcube_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.fits
.....................!
real 190.37
user 185.65
sys 4.34

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/712129/ft1_filtered_4FGL_J1442.2+0622_daily_bin168.fits scfile=/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits outfile=/scratch/kocevski/712129/cmap_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712129/ft1_filtered_4FGL_J1442.2+0622_daily_bin168.fits scfile=/scratch/kocevski/712129/ft2_4FGL_J1442.2+0622_daily_bin168.fits outfile=/scratch/kocevski/712129/cmap_HighResolution_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11635E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7571       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.761       1.0000         .10000E-03   10000.    
     6 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1272       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4262       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.413       1.0000         .10000E-03   10000.    
    11 'norm      '    .11055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .53200       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8583       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6803       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81352       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1068       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=   8077.056     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2540 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5231        12.162        .60314E-05   -.13600E-04
   2  Prefactor     .10000E-03    21.884       -.21134E-06** at limit **
   3  Prefactor     5.7599        37.222        .15012E-05    .46987E-05
   4  norm          1.6973        10.096        .10681E-04   -.68457E-04
   5  Prefactor     31.729        26.615        .27424E-07    .16014E-04
   6  norm          .10000E-03    7.9618       -.25128E-08** at limit **
   7  Prefactor     .10000E-03    3.9837       -.20854E-06** at limit **
   8  Prefactor     5.1317        6.6987        .28909E-06    .91221E-04
   9  Prefactor     9.2742        49.793        .28007E-05   -.88285E-05
  10  Prefactor     53.454        29.370        .86754E-06    .67802E-04
  11  norm          .10000E-03    14.852       -.21028E-05** at limit **
  12  Prefactor     24.137        25.796        .91024E-06    .19405E-03
  13  Prefactor     .10000E-03    13.505        .33917E-07** at limit **
  14  Prefactor     4.9519        16.585       -.76951E-06    .11463E-03
  15  Prefactor     4.6097        32.848       -.50618E-06    .97260E-04
  16  Prefactor     .10000E-03    18.941        .18064E-05** at limit **
  17  norm          .53203        .16452        .25765E-07    .19834E-02
  18  norm          .10000E-03    .83309       -.15120E-06** at limit **
  19  norm          .10000E-03    2.2251       -.22253E-07** at limit **
  20  norm          6.8567        3.5606        .21015E-07   -.18915E-04
  21  Prefactor     2.6774        32.567        .95382E-06   -.66692E-05
  22  Normalizat    .81334        .20077       -.16232E-05    .11899E-03
  23  Prefactor     1.1069        .11774        .23516E-06    .42797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52313
  Prefactor  = 0.0001
  Prefactor  = 5.75987
  norm       = 1.69729
  Prefactor  = 31.7291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13169
  Prefactor  = 9.27423
  Prefactor  = 53.4545
  norm       = 0.000100005
  Prefactor  = 24.1372
  Prefactor  = 0.0001
  Prefactor  = 4.95193
  Prefactor  = 4.60972
  Prefactor  = 0.000100003
  norm       = 0.532025
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.85669
  Prefactor  = 2.67735
  Normalizat = 0.813341
  Prefactor  = 1.10692
 **********
 **   18 **HESSE 
 **********

 FCN=   8077.056     FROM HESSE     STATUS=OK           368 CALLS     2908 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5231        12.158        .12858E-02   -1.5390    
   2  Prefactor     .10000E-03    22.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7599        37.206        .16740E-03   -1.5228    
   4  norm          1.6973        10.145        .16151E-02   -1.5447    
   5  Prefactor     31.729        26.722        .71099E-04   -1.4581    
   6  norm          .10000E-03    7.9665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0075        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1317        6.6892        .17755E-03   -1.5255    
   9  Prefactor     9.2742        49.869        .13053E-03   -1.5099    
  10  Prefactor     53.454        29.397        .54881E-04   -1.4244    
  11  norm          .10000E-03    15.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.137        25.760        .81595E-04   -1.4725    
  13  Prefactor     .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9519        16.428        .18079E-03   -1.5263    
  15  Prefactor     4.6097        32.053        .18709E-03   -1.5279    
  16  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .53203        .16458        .19436E-04   -1.5562    
  18  norm          .10000E-03    .85131        .80048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2307        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8567        3.5652        .11804E-03   -1.5184    
  21  Prefactor     2.6774        32.629        .24890E-03   -1.5381    
  22  Normalizat    .81334        .23375        .33981E-03   -.99576    
  23  Prefactor     1.1069        .13823        .18302E-03   -.89246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67552e-10
Minuit parameter uncertainties:
  1  11.0806
  2  6.2203e-06
  3  29.3043
  4  8.30088
  5  26.7317
  6  1.24511e-06
  7  2.80228e-05
  8  6.69015
  9  43.067
  10  29.4045
  11  0.0005259
  12  25.7723
  13  5.63101e-06
  14  16.4432
  15  24.3291
  16  0.000456854
  17  0.164576
  18  9.16538e-06
  19  2.006e-06
  20  3.56534
  21  18.7056
  22  0.23404
  23  0.138276
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  5.259e-04  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:  1.107e+00  1.383e-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:  8.133e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/712129/likelihoodResults_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.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) = 8077.05648143
delta logL = -0.000315455721648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8077.05616611
delta logL = -1.35335540108e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10732E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6666       1.0000          .0000       5.0000    
     3 'Normalizat'    .81339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1069       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=   8077.056     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      244 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    568.11        .18142E-01** at limit **
   2  alpha         1.9447        2.7775        .16507        .33747E-08
   3  Normalizat    .81334        .23097E-01    .33981E-03    .35701E-03
   4  Prefactor     1.1069        .14398E-01    .18302E-03    .71408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.94467
  Normalizat = 0.813342
  Prefactor  = 1.10692
 **********
 **   18 **HESSE 
 **********

 FCN=   8077.056     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.973        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9447        3.9750        .66028E-02   -.22400    
   3  Normalizat    .81334        .21732        .13592E-04   -.99576    
   4  Prefactor     1.1069        .13557        .36603E-04   -.89246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24458e-10
Minuit parameter uncertainties:
  1  2.67149e-05
  2  530.958
  3  0.217556
  4  0.135607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712129': 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) = 8077.05616463
delta logL = 1.33985486173e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  2.671e-05  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.945e+00  5.310e+02  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:  1.107e+00  1.356e-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:  8.133e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 220.561 6.375

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/712129/cmap_HighResolution_282873601_283132801_4FGL_J1442.2+0622_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-10 05:55:26.548008', job_id='712129', GAL2='1.11', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631278526.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='168' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 712129: <4FGL_J1442.2+0622_daily_bin168> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin168> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:41:05 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:41:07 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:41:07 2021
Terminated at Fri Sep 10 05:55:27 2021
Results reported at Fri Sep 10 05:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin168 220.561 6.3755 282873601 283132801 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

