/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 9 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 = 7670
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1442.2+0622_daily_bin101
RA = 220.561, Dec = 6.3755
tmin = 265507201, tmax = 265766401
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='711004', job_status='RUN', time_executed='2021-09-10 05:37:02.528176', time_epoch_executed='1631277422.53' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711004

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711004/ft1_4FGL_J1442.2+0622_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711004/ft2_4FGL_J1442.2+0622_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711004/ft1_4FGL_J1442.2+0622_daily_bin101.fits outfile=/scratch/kocevski/711004/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin101.fits ra=220.561 dec=6.3755 rad=12.0 tmin=265507201.0 tmax=265766401.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 1.55
user 1.36
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711004/ft1_filtered_4FGL_J1442.2+0622_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/711004/ft2_4FGL_J1442.2+0622_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/711004/ltcube_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.fits outfile=/scratch/kocevski/711004/expmap_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.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/711004/ltcube_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.fits
.....................!
real 190.03
user 185.24
sys 4.43

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/711004/ft1_filtered_4FGL_J1442.2+0622_daily_bin101.fits scfile=/scratch/kocevski/711004/ft2_4FGL_J1442.2+0622_daily_bin101.fits outfile=/scratch/kocevski/711004/cmap_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711004/ft1_filtered_4FGL_J1442.2+0622_daily_bin101.fits scfile=/scratch/kocevski/711004/ft2_4FGL_J1442.2+0622_daily_bin101.fits outfile=/scratch/kocevski/711004/cmap_HighResolution_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=220.561 yref=6.3755 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.260       1.0000         .10000E-03   10000.    
     4 'norm      '    11.280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7241       1.0000         .10000E-03   10000.    
     6 'norm      '    33.420       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.385       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75992       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5006       1.0000         .10000E-03   10000.    
    18 'norm      '    .38812       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7617       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0879       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0561       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=   12058.56     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2540 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.653        10.961        .94818E-07   -.21278E-05
   2  Prefactor     .10000E-03    4.0774       -.46672E-07** at limit **
   3  Prefactor     39.271        28.172       -.20672E-06    .16204E-04
   4  norm          11.280        7.4295       -.25156E-06    .28119E-04
   5  Prefactor     4.6865        29.071        .84756E-06   -.61270E-04
   6  norm          33.432        21.028       -.16824E-06    .65737E-04
   7  Prefactor     .10000E-03    2.1312        .15220E-06** at limit **
   8  Prefactor     .70040        2.6865        .58614E-06   -.30002E-03
   9  Prefactor     .10000E-03    21.617        .77612E-07** at limit **
  10  Prefactor     .10000E-03    14.608       -.20651E-06** at limit **
  11  norm          .10000E-03    7.4691       -.71021E-07** at limit **
  12  Prefactor     26.394        23.344       -.26169E-06    .44333E-05
  13  Prefactor     .88239        8.2656       -.58950E-06    .22071E-03
  14  Prefactor     .10000E-03    12.572        .51815E-06** at limit **
  15  Prefactor     .10000E-03    17.286        .55150E-06** at limit **
  16  Prefactor     .10000E-03    29.393        .34959E-06** at limit **
  17  norm          2.5005        .26249       -.19227E-08   -.13196E-03
  18  norm          .38811        1.1853        .14381E-05    .27986E-04
  19  norm          .10000E-03    2.6462        .13767E-07** at limit **
  20  norm          4.7616        2.7702       -.86972E-07   -.19172E-03
  21  Prefactor     .10000E-03    12.148        .10795E-06** at limit **
  22  Normalizat    1.0879        .17847       -.35317E-06   -.19749E-03
  23  Prefactor     1.0561        .10438       -.71517E-06   -.17535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6525
  Prefactor  = 0.0001
  Prefactor  = 39.2713
  norm       = 11.2801
  Prefactor  = 4.68652
  norm       = 33.4324
  Prefactor  = 0.0001
  Prefactor  = 0.700397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.3943
  Prefactor  = 0.882387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50047
  norm       = 0.388106
  norm       = 0.0001
  norm       = 4.76157
  Prefactor  = 0.0001
  Normalizat = 1.08788
  Prefactor  = 1.05612
 **********
 **   18 **HESSE 
 **********

 FCN=   12058.56     FROM HESSE     STATUS=OK           372 CALLS     2912 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.653        10.972        .10464E-03   -1.4942    
   2  Prefactor     .10000E-03    4.0804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.271        28.179        .63970E-04   -1.4454    
   4  norm          11.280        7.4226        .59642E-03   -1.5036    
   5  Prefactor     4.6865        29.270        .18513E-03   -1.5275    
   6  norm          33.432        20.955        .69316E-04   -1.4551    
   7  Prefactor     .10000E-03    2.1384        .15649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .70040        10.586        .32351E-02   -1.5541    
   9  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.4947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.394        23.285        .77989E-04   -1.4680    
  13  Prefactor     .88239        50.405        .59565E-02   -1.5520    
  14  Prefactor     .10000E-03    12.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5005        .26275        .17320E-04   -1.5392    
  18  norm          .38811        1.1856        .20247E-03   -1.5583    
  19  norm          .10000E-03    2.6644        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7616        2.7708        .13460E-03   -1.5272    
  21  Prefactor     .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0879        .21064        .33307E-03   -.90142    
  23  Prefactor     1.0561        .12181        .20844E-03   -.90882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0401e-09
Minuit parameter uncertainties:
  1  10.9735
  2  2.3685e-06
  3  28.1882
  4  7.42316
  5  23.4408
  6  20.9601
  7  1.10883e-07
  8  5.44665
  9  4.66557e-05
  10  2.06892e-05
  11  6.11167e-06
  12  23.2929
  13  13.3493
  14  2.43816e-05
  15  2.42795e-05
  16  5.03051e-05
  17  0.262747
  18  1.18567
  19  1.43507e-06
  20  2.77087
  21  2.81119e-05
  22  0.210799
  23  0.121841
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  6.112e-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:  1.056e+00  1.218e-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.088e+00  2.108e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711004/likelihoodResults_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.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) = 12058.5563382
delta logL = -0.000635853710264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12058.5557076
delta logL = -5.29301905772e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6904       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0560       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=   12058.56     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      233 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    317.69        .18142E-01** at limit **
   2  alpha         2.1498        3.1016        .16521        .59729E-07
   3  Normalizat    1.0879        .28219E-01    .33307E-03   -.65641E-03
   4  Prefactor     1.0561        .17540E-01    .20844E-03   -.69863E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14977
  Normalizat = 1.08787
  Prefactor  = 1.05612
 **********
 **   18 **HESSE 
 **********

 FCN=   12058.56     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2936        .30557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1498        2.5817        .66085E-02   -.14055    
   3  Normalizat    1.0879        .19316        .66613E-04   -.90142    
   4  Prefactor     1.0561        .12010        .41687E-04   -.90882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36256e-10
Minuit parameter uncertainties:
  1  2.14465e-05
  2  520.495
  3  0.193287
  4  0.120131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711004': 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) = 12058.5557018
delta logL = 5.4275005823e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.056e+00  1.201e-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.088e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/711004/cmap_HighResolution_265507201_265766401_4FGL_J1442.2+0622_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-10 05:51:18.402979', job_id='711004', GAL2='1.06', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631278278.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='101' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 711004: <4FGL_J1442.2+0622_daily_bin101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin101 220.561 6.3755 265507201 265766401 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 :                                   854.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

