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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin524
RA = 220.561, Dec = 6.3755
tmin = 375148801, tmax = 375408001
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='712637', job_status='RUN', time_executed='2021-09-10 05:44:19.612689', time_epoch_executed='1631277859.61' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712637/ft1_4FGL_J1442.2+0622_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits


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

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

Done.
real 4.74
user 4.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712637/ft1_filtered_4FGL_J1442.2+0622_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/712637/ltcube_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.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/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits
.....................!
real 11.63
user 11.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712637/ft1_filtered_4FGL_J1442.2+0622_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/712637/ltcube_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.fits outfile=/scratch/kocevski/712637/expmap_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.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/712637/ltcube_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.fits
.....................!
real 191.46
user 185.29
sys 5.81

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/712637/ft1_filtered_4FGL_J1442.2+0622_daily_bin524.fits scfile=/scratch/kocevski/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits outfile=/scratch/kocevski/712637/cmap_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712637/ft1_filtered_4FGL_J1442.2+0622_daily_bin524.fits scfile=/scratch/kocevski/712637/ft2_4FGL_J1442.2+0622_daily_bin524.fits outfile=/scratch/kocevski/712637/cmap_HighResolution_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14449E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.1133       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.027       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .46380       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92461       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1291       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=   7581.225     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2212 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9358        21.056        .91565E-05    .33365E-04
   2  Prefactor     .10000E-03    6.6811        .93131E-07** at limit **
   3  Prefactor     .10000E-03    29.211        .76614E-06** at limit **
   4  norm          .10000E-03    3.7291        .16835E-07** at limit **
   5  Prefactor     .10029E-03    18.652        .22658E-05** at limit **
   6  norm          .10000E-03    9.8486       -.92994E-07** at limit **
   7  Prefactor     3.4232        8.1279        .29067E-05    .42143E-04
   8  Prefactor     15.097        9.1723       -.24302E-06   -.21022E-04
   9  Prefactor     4.5419        177.77        .27628E-04   -.92920E-05
  10  Prefactor     .10000E-03    19.675       -.68758E-06** at limit **
  11  norm          9.1180        14.769        .79336E-07   -.24919E-04
  12  Prefactor     .10000E-03    16.985        .13320E-06** at limit **
  13  Prefactor     8.2813        19.562        .12422E-06   -.12283E-04
  14  Prefactor     .10000E-03    4.1044        .40130E-07** at limit **
  15  Prefactor     19.014        17.980       -.27388E-06   -.10887E-04
  16  Prefactor     .10000E-03    10.533       -.11513E-06** at limit **
  17  norm          .46380        .18866        .25584E-07   -.11833E-03
  18  norm          .10000E-03    .80388       -.29866E-07** at limit **
  19  norm          .10000E-03    2.4021        .36953E-07** at limit **
  20  norm          3.9910        2.6135        .49072E-07    .43125E-06
  21  Prefactor     .10000E-03    16.569        .34610E-06** at limit **
  22  Normalizat    .92454        .20916       -.81296E-06   -.13693E-03
  23  Prefactor     1.1292        .12412       -.71727E-06   -.23725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100286
  norm       = 0.0001
  Prefactor  = 3.4232
  Prefactor  = 15.0967
  Prefactor  = 4.5419
  Prefactor  = 0.0001
  norm       = 9.11805
  Prefactor  = 0.0001
  Prefactor  = 8.28128
  Prefactor  = 0.0001
  Prefactor  = 19.014
  Prefactor  = 0.0001
  norm       = 0.463804
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.99103
  Prefactor  = 0.0001
  Normalizat = 0.924537
  Prefactor  = 1.1292
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.225     FROM HESSE     STATUS=OK           370 CALLS     2582 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9358        21.133        .14923E-02   -1.5430    
   2  Prefactor     .10000E-03    6.6926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7327        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10029E-03    127.05        .69585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.8604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4232        8.1264        .10930E-02   -1.5338    
   8  Prefactor     15.097        9.1547        .10309E-03   -1.4931    
   9  Prefactor     4.5419        178.03        .18704E-03   -1.5282    
  10  Prefactor     .10000E-03    19.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.1180        14.746        .13276E-03   -1.5104    
  12  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2813        19.535        .13926E-03   -1.5132    
  14  Prefactor     .10000E-03    4.1081        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.014        17.981        .91821E-04   -1.4836    
  16  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46380        .18626        .22909E-04   -1.5572    
  18  norm          .10000E-03    .83247        .15234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4115        .13179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9910        2.6152        .11080E-03   -1.5308    
  21  Prefactor     .10000E-03    16.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92454        .24183        .33009E-03   -.95603    
  23  Prefactor     1.1292        .14574        .18618E-03   -.88539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15773e-09
Minuit parameter uncertainties:
  1  12.7975
  2  1.65696e-07
  3  4.28272e-05
  4  8.33294e-07
  5  0.0120747
  6  1.49877e-05
  7  8.12901
  8  9.1555
  9  57.0539
  10  4.22252e-05
  11  14.7523
  12  1.93456e-05
  13  19.5502
  14  3.12597e-06
  15  17.9856
  16  2.73325e-06
  17  0.186262
  18  1.12153e-06
  19  8.93831e-07
  20  2.61523
  21  1.2842e-05
  22  0.242115
  23  0.145792
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  9.118e+00  1.475e+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:  1.129e+00  1.458e-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:  9.245e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/712637/likelihoodResults_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.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) = 7581.22453346
delta logL = 0.000813214268419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7581.22422737
delta logL = 0.00111930212006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5262       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5886       1.0000          .0000       5.0000    
     3 'Normalizat'    .92634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1288       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=   7581.224     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      270 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5252        18.731        .12984E-03    .97278E-04
   2  alpha         2.5873        3.5905        .42897E-01    .15419E-04
   3  Normalizat    .92661        .23889        .32975E-03   -.62300E-04
   4  Prefactor     1.1286        .14577        .18622E-03   -.17590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.52524
  alpha      = 2.5873
  Normalizat = 0.926614
  Prefactor  = 1.12863
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.224     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5252        17.269        .51936E-05   -1.5091    
   2  alpha         2.5873        2.0277        .17159E-02    .34928E-01
   3  Normalizat    .92661        .23764        .13190E-04   -.95531    
   4  Prefactor     1.1286        .14564        .37243E-04   -.88557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05227e-10
Minuit parameter uncertainties:
  1  17.2783
  2  2.3657
  3  0.237906
  4  0.145695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712637': 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) = 7581.22422654
delta logL = 0.00112013545731

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.129e+00  1.457e-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:  9.266e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/712637/cmap_HighResolution_375148801_375408001_4FGL_J1442.2+0622_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-10 05:54:51.451978', job_id='712637', GAL2='1.13', fit_tolerance='1e-08', EG2='0.93', EG='0.92', time_epoch_completed='1631278491.45', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.12e-03', ts2='0.56', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='524' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:54:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 712637: <4FGL_J1442.2+0622_daily_bin524> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin524 220.561 6.3755 375148801 375408001 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 :                                   629.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

