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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin479
RA = 220.561, Dec = 6.3755
tmin = 363484801, tmax = 363744001
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='712571', job_status='RUN', time_executed='2021-09-10 05:44:57.992213', time_epoch_executed='1631277897.99' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712571

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712571/ft1_4FGL_J1442.2+0622_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712571/ft1_4FGL_J1442.2+0622_daily_bin479.fits outfile=/scratch/kocevski/712571/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin479.fits ra=220.561 dec=6.3755 rad=12.0 tmin=363484801.0 tmax=363744001.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.73
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712571/ft1_filtered_4FGL_J1442.2+0622_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/712571/ltcube_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.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/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits
.....................!
real 11.82
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712571/ft1_filtered_4FGL_J1442.2+0622_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/712571/ltcube_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.fits outfile=/scratch/kocevski/712571/expmap_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.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/712571/ltcube_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.fits
.....................!
real 191.53
user 186.87
sys 4.35

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/712571/ft1_filtered_4FGL_J1442.2+0622_daily_bin479.fits scfile=/scratch/kocevski/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits outfile=/scratch/kocevski/712571/cmap_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712571/ft1_filtered_4FGL_J1442.2+0622_daily_bin479.fits scfile=/scratch/kocevski/712571/ft2_4FGL_J1442.2+0622_daily_bin479.fits outfile=/scratch/kocevski/712571/cmap_HighResolution_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.370       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.139       1.0000         .10000E-03   10000.    
     6 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52857E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83982E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.660       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.189       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8737       1.0000         .10000E-03   10000.    
    17 'norm      '    .63239E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    10.382       1.0000         .10000E-03   10000.    
    19 'norm      '    .45592E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    92.660       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2168       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83487       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=   5889.187     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     3032 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.761        .18142E-02** at limit **
   2  Prefactor     5.5736        28.753        .16982E-03    .13925E-04
   3  Prefactor     20.376        31.488        .88744E-04   -.14645E-03
   4  norm          6.3344        9.3871        .79737E-03    .35445E-04
   5  Prefactor     47.143        30.318        .58401E-04   -.31536E-04
   6  norm          .10000E-03    20.035        .18142E-02** at limit **
   7  Prefactor     .10002E-03    11.641        .31370E-02** at limit **
   8  Prefactor     .10014E-03    31.354        .26552E-02** at limit **
   9  Prefactor     34.647        49.810        .68069E-04   -.27625E-04
  10  Prefactor     .10000E-03    9.8477        .18142E-02** at limit **
  11  norm          .10000E-03    5.2830        .17222E-02** at limit **
  12  Prefactor     .10000E-03    11.142        .18142E-02** at limit **
  13  Prefactor     31.041        25.145        .71917E-04    .33513E-04
  14  Prefactor     19.203        19.819        .91432E-04    .59278E-03
  15  Prefactor     .10006E-03    105.89        .36285E-03** at limit **
  16  Prefactor     2.7797        189.38        .23978E-03    .69840E-04
  17  norm          .62955E-01    .10299        .35495E-03   -.14352E-02
  18  norm          10.381        3.3222        .74963E-04    .23659E-04
  19  norm          .10007E-03    5.6541        .59939E-01** at limit **
  20  norm          .10000E-03    1.7990        .10028E-02** at limit **
  21  Prefactor     92.642        60.403        .41749E-04   -.41065E-04
  22  Normalizat    1.2168        .27228        .28600E-03    .62686E-04
  23  Prefactor     .83503        .15550        .20599E-03   -.58336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.57364
  Prefactor  = 20.3759
  norm       = 6.33445
  Prefactor  = 47.1431
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100143
  Prefactor  = 34.6472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0411
  Prefactor  = 19.2027
  Prefactor  = 0.000100061
  Prefactor  = 2.77967
  norm       = 0.0629554
  norm       = 10.3811
  norm       = 0.000100068
  norm       = 0.0001
  Prefactor  = 92.6416
  Normalizat = 1.21681
  Prefactor  = 0.835034
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.187     FROM HESSE     STATUS=OK           358 CALLS     3390 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5736        28.743        .67928E-05   -1.5236    
   3  Prefactor     20.376        31.485        .17749E-04   -1.4805    
   4  norm          6.3344        9.3868        .31895E-04   -1.5205    
   5  Prefactor     47.143        30.319        .23360E-05   -1.4334    
   6  norm          .10000E-03    20.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    11.735        .62739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    31.939        .53104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.647        49.808        .13614E-04   -1.4530    
  10  Prefactor     .10000E-03    9.8478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2831        .34445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.041        25.142        .28767E-05   -1.4593    
  14  Prefactor     19.203        19.812        .18286E-04   -1.4831    
  15  Prefactor     .10006E-03    105.90        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7797        189.02        .95911E-05   -1.5375    
  17  norm          .62955E-01    .10289        .14198E-04   -1.5658    
  18  norm          10.381        3.3221        .29985E-05   -1.5063    
  19  norm          .10007E-03    5.5987        .60471E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7991        .20057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     92.642        60.403        .83497E-05   -1.3780    
  22  Normalizat    1.2168        .27243        .11440E-04   -.86085    
  23  Prefactor     .83503        .15565        .82396E-05   -.98450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38857e-09
Minuit parameter uncertainties:
  1  0.000140367
  2  25.3333
  3  31.5104
  4  9.38902
  5  30.3284
  6  5.95265e-05
  7  0.000872264
  8  0.00427943
  9  49.8681
  10  1.99759e-05
  11  6.60423e-06
  12  1.69926e-05
  13  25.1506
  14  19.8183
  15  0.00508825
  16  45.9957
  17  0.102892
  18  3.3222
  19  0.00123547
  20  6.12495e-06
  21  60.4428
  22  0.27275
  23  0.155732
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  6.604e-06  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.350e-01  1.557e-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.217e+00  2.727e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712571/likelihoodResults_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.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) = 5889.1874177
delta logL = -0.000894250455531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5889.18652341
delta logL = 3.84907252737e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6852       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83505       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=   5889.187     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    338.02        .17331E-01** at limit **
   2  alpha         1.5696        4.0115        .16518        .24777E-07
   3  Normalizat    1.2168        .39656E-01    .28600E-03    .33362E-03
   4  Prefactor     .83504        .24284E-01    .20599E-03    .52477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56962
  Normalizat = 1.21681
  Prefactor  = 0.835036
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.187     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4437        .20413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5696        4.2100        .66072E-02   -.38133    
   3  Normalizat    1.2168        .24856        .57200E-04   -.86085    
   4  Prefactor     .83504        .15228        .41198E-04   -.98450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52063e-10
Minuit parameter uncertainties:
  1  7.09718e-05
  2  462.232
  3  0.248802
  4  0.152358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712571': 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) = 5889.18652072
delta logL = 2.72276429314e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  7.097e-05  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.570e+00  4.622e+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:  8.350e-01  1.524e-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.217e+00  2.488e-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/712571/cmap_HighResolution_363484801_363744001_4FGL_J1442.2+0622_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-05', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-10 05:55:00.853599', job_id='712571', GAL2='0.84', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631278500.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='479' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 712571: <4FGL_J1442.2+0622_daily_bin479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin479 220.561 6.3755 363484801 363744001 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 :                                   601.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

