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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin194
RA = 220.561, Dec = 6.3755
tmin = 289612801, tmax = 289872001
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='712166', job_status='RUN', time_executed='2021-09-10 05:44:22.212858', time_epoch_executed='1631277862.21' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712166/ft1_4FGL_J1442.2+0622_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712166/ft2_4FGL_J1442.2+0622_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712166/ft1_4FGL_J1442.2+0622_daily_bin194.fits outfile=/scratch/kocevski/712166/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin194.fits ra=220.561 dec=6.3755 rad=12.0 tmin=289612801.0 tmax=289872001.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.51
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712166/ft2_4FGL_J1442.2+0622_daily_bin194.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/712166/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/712166/ft1_filtered_4FGL_J1442.2+0622_daily_bin194.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712166/ft1_filtered_4FGL_J1442.2+0622_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/712166/ft2_4FGL_J1442.2+0622_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/712166/ltcube_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.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/712166/ft2_4FGL_J1442.2+0622_daily_bin194.fits
.....................!
real 12.19
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712166/ft1_filtered_4FGL_J1442.2+0622_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/712166/ft2_4FGL_J1442.2+0622_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/712166/ltcube_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.fits outfile=/scratch/kocevski/712166/expmap_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.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/712166/ltcube_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.fits
.....................!
real 190.77
user 185.24
sys 5.08

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/712166/ft1_filtered_4FGL_J1442.2+0622_daily_bin194.fits scfile=/scratch/kocevski/712166/ft2_4FGL_J1442.2+0622_daily_bin194.fits outfile=/scratch/kocevski/712166/cmap_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.362       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61739       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9098       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    118.39       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11572E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15997       1.0000         .10000E-03   10000.    
    18 'norm      '    .20334E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2191       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1944       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95753       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=   6096.570     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2606 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5026       -.60325E-06** at limit **
   2  Prefactor     .10000E-03    25.147        .56809E-05** at limit **
   3  Prefactor     .10000E-03    31.994        .24423E-05** at limit **
   4  norm          23.359        15.995        .13057E-05   -.71084E-06
   5  Prefactor     .29315E-01    31.576       -.81565E-05   -.25780E-04
   6  norm          2.8453        99.405        .63537E-04    .14966E-03
   7  Prefactor     4.9049        6.6987        .39350E-05   -.13833E-03
   8  Prefactor     .10000E-03    5.5796       -.28359E-06** at limit **
   9  Prefactor     118.29        83.321       -.53998E-04    .20025E-04
  10  Prefactor     .10000E-03    6.4854        .36858E-06** at limit **
  11  norm          .10000E-03    4.1208        .52381E-07** at limit **
  12  Prefactor     12.056        20.957        .18544E-04    .27726E-04
  13  Prefactor     43.312        22.795        .73040E-05    .38222E-04
  14  Prefactor     .10000E-03    7.2952        .87383E-07** at limit **
  15  Prefactor     .10000E-03    25.795       -.90167E-05** at limit **
  16  Prefactor     .10000E-03    79.649       -.85858E-05** at limit **
  17  norm          .15992        .12288       -.46538E-07   -.14377E-02
  18  norm          .10000E-03    .88617        .15555E-06** at limit **
  19  norm          .10000E-03    1.9330       -.97286E-07** at limit **
  20  norm          .10000E-03    1.5558       -.33566E-07** at limit **
  21  Prefactor     5.2034        47.284        .34567E-04   -.16093E-04
  22  Normalizat    1.1954        .22176       -.90782E-06    .42109E-03
  23  Prefactor     .95727        .13146       -.49721E-06    .38161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.3594
  Prefactor  = 0.0293153
  norm       = 2.84534
  Prefactor  = 4.90492
  Prefactor  = 0.0001
  Prefactor  = 118.287
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0563
  Prefactor  = 43.312
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.159922
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.20344
  Normalizat = 1.19541
  Prefactor  = 0.957272
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.570     FROM HESSE     STATUS=OK           374 CALLS     2980 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.359        16.000        .82873E-04   -1.4741    
   5  Prefactor     .29315E-01    46.816        .10582       -1.5674    
   6  norm          2.8453        100.18        .24896E-03   -1.5371    
   7  Prefactor     4.9049        6.6862        .18152E-03   -1.5265    
   8  Prefactor     .10000E-03    5.6930        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     118.29        83.356        .18491E-03   -1.3528    
  10  Prefactor     .10000E-03    6.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1220        .15480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.056        20.954        .11530E-03   -1.5013    
  13  Prefactor     43.312        22.807        .60908E-04   -1.4391    
  14  Prefactor     .10000E-03    7.3197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    81.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .15992        .12080        .23094E-04   -1.5628    
  18  norm          .10000E-03    12.749        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9338        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5653        .95088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2034        47.213        .17595E-03   -1.5252    
  22  Normalizat    1.1954        .26860        .29072E-03   -.86745    
  23  Prefactor     .95727        .15873        .19718E-03   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40119e-09
Minuit parameter uncertainties:
  1  8.96191e-06
  2  6.23919e-05
  3  0.000130423
  4  16.003
  5  2.34083
  6  33.8271
  7  6.68725
  8  9.38624e-05
  9  83.4386
  10  1.05264e-05
  11  6.59996e-06
  12  20.9664
  13  22.8112
  14  5.23604e-05
  15  0.000323131
  16  0.00016646
  17  0.120801
  18  0.000126384
  19  8.93404e-07
  20  2.73348e-06
  21  31.3802
  22  0.268913
  23  0.158811
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  6.600e-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:  9.573e-01  1.588e-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.195e+00  2.689e-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: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712166/likelihoodResults_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.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) = 6096.57161746
delta logL = -0.0011428993821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6096.57047608
delta logL = -1.51943640958e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10926E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6720       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95710       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=   6096.570     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      245 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    309.77        .15871E-01** at limit **
   2  alpha         1.5320        2.9293        .16510        .20038E-07
   3  Normalizat    1.1954        .37098E-01    .29072E-03   -.62451E-04
   4  Prefactor     .95727        .22932E-01    .19718E-03   -.91179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53196
  Normalizat = 1.19541
  Prefactor  = 0.957273
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.570     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5684        .20937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5320        3.1084        .66041E-02   -.39761    
   3  Normalizat    1.1954        .25081        .11629E-04   -.86745    
   4  Prefactor     .95727        .15512        .39436E-04   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41768e-11
Minuit parameter uncertainties:
  1  7.99837e-05
  2  407.046
  3  0.251065
  4  0.155193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712166': 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) = 6096.57046906
delta logL = 5.49634842173e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  7.998e-05  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.532e+00  4.070e+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:  9.573e-01  1.552e-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.195e+00  2.511e-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/712166/cmap_HighResolution_289612801_289872001_4FGL_J1442.2+0622_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-10 05:54:13.017441', job_id='712166', GAL2='0.96', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631278453.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='194' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 712166: <4FGL_J1442.2+0622_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin194 220.561 6.3755 289612801 289872001 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 :                                   588.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

