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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin963
RA = 220.561, Dec = 6.3755
tmin = 488937601, tmax = 489196801
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='715466', job_status='RUN', time_executed='2021-09-10 05:53:54.596502', time_epoch_executed='1631278434.6' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/715466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/715466/ft1_4FGL_J1442.2+0622_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/715466/ft2_4FGL_J1442.2+0622_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/715466/ft1_4FGL_J1442.2+0622_daily_bin963.fits outfile=/scratch/kocevski/715466/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin963.fits ra=220.561 dec=6.3755 rad=12.0 tmin=488937601.0 tmax=489196801.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.54
user 3.29
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/715466/ft1_filtered_4FGL_J1442.2+0622_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/715466/ft2_4FGL_J1442.2+0622_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/715466/ltcube_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.fits outfile=/scratch/kocevski/715466/expmap_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.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/715466/ltcube_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.fits
.....................!
real 191.40
user 184.90
sys 5.25

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/715466/ft1_filtered_4FGL_J1442.2+0622_daily_bin963.fits scfile=/scratch/kocevski/715466/ft2_4FGL_J1442.2+0622_daily_bin963.fits outfile=/scratch/kocevski/715466/cmap_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.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/715466/ft1_filtered_4FGL_J1442.2+0622_daily_bin963.fits scfile=/scratch/kocevski/715466/ft2_4FGL_J1442.2+0622_daily_bin963.fits outfile=/scratch/kocevski/715466/cmap_HighResolution_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66177E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.634       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.595       1.0000         .10000E-03   10000.    
     6 'norm      '    15.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11785E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .64203       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8503       1.0000         .10000E-03   10000.    
    19 'norm      '    13.232       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0272       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5673       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69081       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=   6469.282     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2562 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    17.000       -.58766E-06** at limit **
   2  Prefactor     .10000E-03    105.91        .13616E-04** at limit **
   3  Prefactor     72.624        39.000       -.31888E-05   -.43451E-05
   4  norm          .10000E-03    7.5331        .13180E-06** at limit **
   5  Prefactor     23.581        28.031        .11322E-05    .16145E-04
   6  norm          15.927        22.657       -.68132E-06    .80678E-05
   7  Prefactor     .10000E-03    2.1724        .15069E-06** at limit **
   8  Prefactor     .10000E-03    1.6216        .25657E-07** at limit **
   9  Prefactor     .10000E-03    30.204       -.48015E-05** at limit **
  10  Prefactor     .10000E-03    22.713        .55414E-06** at limit **
  11  norm          .10056E-03    12.950       -.34197E-05** at limit **
  12  Prefactor     .10000E-03    11.767       -.55752E-07** at limit **
  13  Prefactor     .10000E-03    15.506        .25534E-06** at limit **
  14  Prefactor     10.173        20.091        .16358E-05   -.11082E-03
  15  Prefactor     .10000E-03    39.404        .22855E-04** at limit **
  16  Prefactor     .10000E-03    44.323       -.17715E-04** at limit **
  17  norm          .64201        .21988       -.19926E-07   -.49420E-04
  18  norm          1.8503        2.0312        .13135E-07   -.30578E-03
  19  norm          13.232        7.0836        .35053E-05    .51832E-04
  20  norm          4.0273        3.2974       -.18931E-07    .12198E-04
  21  Prefactor     .10000E-03    12.857       -.40408E-06** at limit **
  22  Normalizat    1.5675        .23168       -.81690E-06    .10076E-03
  23  Prefactor     .69066        .12708        .32186E-07    .87566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010019
  Prefactor  = 0.0001
  Prefactor  = 72.6236
  norm       = 0.0001
  Prefactor  = 23.5806
  norm       = 15.9266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.64201
  norm       = 1.85032
  norm       = 13.232
  norm       = 4.02734
  Prefactor  = 0.0001
  Normalizat = 1.56754
  Prefactor  = 0.690658
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.282     FROM HESSE     STATUS=OK           374 CALLS     2936 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    22.277        .92126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    107.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.624        39.227        .47107E-04   -1.4002    
   4  norm          .10000E-03    7.5769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.581        28.174        .82463E-04   -1.4736    
   6  norm          15.927        22.651        .10036E-03   -1.4910    
   7  Prefactor     .10000E-03    2.1756        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6238        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10056E-03    61.382        .54719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.173        20.146        .12565E-03   -1.5070    
  15  Prefactor     .10000E-03    39.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64201        .21935        .20984E-04   -1.5548    
  18  norm          1.8503        2.0180        .11418E-03   -1.5436    
  19  norm          13.232        7.1064        .11012E-03   -1.4980    
  20  norm          4.0273        3.2952        .12756E-03   -1.5307    
  21  Prefactor     .10000E-03    12.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5675        .28067        .27116E-03   -.75898    
  23  Prefactor     .69066        .15238        .22483E-03   -1.0389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9095e-09
Minuit parameter uncertainties:
  1  0.00411457
  2  1.28732e-05
  3  39.2412
  4  1.79234e-06
  5  28.1902
  6  22.6633
  7  5.41021e-06
  8  1.83781e-06
  9  1.58392e-05
  10  7.62399e-05
  11  0.0117041
  12  9.71966e-06
  13  1.29555e-05
  14  20.1598
  15  0.000138209
  16  5.14301e-05
  17  0.219348
  18  2.01809
  19  7.10681
  20  3.29538
  21  1.41042e-06
  22  0.280953
  23  0.152473
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.006e-04  1.170e-02  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:  6.907e-01  1.525e-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.568e+00  2.810e-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: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/715466/likelihoodResults_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.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) = 6469.28256568
delta logL = -7.63606003602e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6469.28248999
delta logL = -6.76925083098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9485       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69066       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=   6469.282     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      304 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7954.3        .36285E-02** at limit **
   2  alpha         2.1710        3.5864        .16808        .84275E-07
   3  Normalizat    1.5675        .39586E-01    .27116E-03    .13958E-03
   4  Prefactor     .69066        .22971E-01    .22483E-03    .16869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 2.17098
  Normalizat = 1.56754
  Prefactor  = 0.690658
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.282     FROM HESSE     STATUS=OK            23 CALLS      327 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    175.09        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1710        3.8957        .67234E-02   -.13199    
   3  Normalizat    1.5675        .25880        .54232E-04   -.75898    
   4  Prefactor     .69066        .15018        .89930E-05   -1.0389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05787e-10
Minuit parameter uncertainties:
  1  0.00237104
  2  571.489
  3  0.259016
  4  0.150267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/715466': 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) = 6469.2824888
delta logL = 5.11935468239e-07

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  2.371e-03  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.171e+00  5.715e+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:  6.907e-01  1.503e-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.568e+00  2.590e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/715466/cmap_HighResolution_488937601_489196801_4FGL_J1442.2+0622_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-10 06:04:00.541002', job_id='715466', GAL2='0.69', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1631279040.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='5.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='963' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 06:04:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 715466: <4FGL_J1442.2+0622_daily_bin963> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin963> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:51:12 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:51:14 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:51:14 2021
Terminated at Fri Sep 10 06:04:01 2021
Results reported at Fri Sep 10 06:04:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin963 220.561 6.3755 488937601 489196801 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 :                                   599.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

