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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin709
RA = 220.561, Dec = 6.3755
tmin = 423100801, tmax = 423360001
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='714061', job_status='RUN', time_executed='2021-09-10 05:48:54.398592', time_epoch_executed='1631278134.4' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714061/ft1_4FGL_J1442.2+0622_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714061/ft2_4FGL_J1442.2+0622_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714061/ft1_4FGL_J1442.2+0622_daily_bin709.fits outfile=/scratch/kocevski/714061/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin709.fits ra=220.561 dec=6.3755 rad=12.0 tmin=423100801.0 tmax=423360001.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.94
user 4.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714061/ft1_filtered_4FGL_J1442.2+0622_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/714061/ft2_4FGL_J1442.2+0622_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/714061/ltcube_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.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/714061/ft2_4FGL_J1442.2+0622_daily_bin709.fits
.....................!
real 11.95
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714061/ft1_filtered_4FGL_J1442.2+0622_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/714061/ft2_4FGL_J1442.2+0622_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/714061/ltcube_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.fits outfile=/scratch/kocevski/714061/expmap_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.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/714061/ltcube_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.fits
.....................!
real 190.96
user 185.20
sys 5.37

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/714061/ft1_filtered_4FGL_J1442.2+0622_daily_bin709.fits scfile=/scratch/kocevski/714061/ft2_4FGL_J1442.2+0622_daily_bin709.fits outfile=/scratch/kocevski/714061/cmap_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.271       1.0000         .10000E-03   10000.    
    11 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29709       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .24961       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8601       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29371E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4775       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71734       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=   5339.687     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2539 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.503        16.984       -.91045E-06   -.38186E-04
   2  Prefactor     .10000E-03    11.833        .40796E-05** at limit **
   3  Prefactor     14.439        28.697        .23298E-05    .80435E-05
   4  norm          1.0473        3.5305        .12642E-05   -.74599E-03
   5  Prefactor     .10000E-03    36.064        .86573E-05** at limit **
   6  norm          27.184        30.079       -.64714E-05   -.38255E-04
   7  Prefactor     .10000E-03    8.9480       -.11911E-05** at limit **
   8  Prefactor     1.6983        20.779       -.28612E-05   -.29113E-03
   9  Prefactor     .10000E-03    13.721       -.78926E-05** at limit **
  10  Prefactor     57.267        34.747       -.20076E-05   -.48209E-05
  11  norm          .10000E-03    21.383       -.15791E-05** at limit **
  12  Prefactor     22.283        41.383        .14666E-04    .30456E-04
  13  Prefactor     .10000E-03    17.488        .10400E-04** at limit **
  14  Prefactor     .10000E-03    8.6831        .33442E-06** at limit **
  15  Prefactor     .10000E-03    22.230       -.64861E-05** at limit **
  16  Prefactor     .10000E-03    34.293       -.49251E-05** at limit **
  17  norm          .29732        .17754        .15082E-08   -.14444E-03
  18  norm          .10000E-03    1.7191        .66912E-07** at limit **
  19  norm          .14609        6.2257       -.47337E-07    .12311E-04
  20  norm          1.8554        4.5892       -.10737E-06    .36932E-04
  21  Prefactor     .10001E-03    208.62       -.41623E-04** at limit **
  22  Normalizat    1.4769        .24199       -.57384E-06    .54459E-04
  23  Prefactor     .71779        .13536        .40329E-06    .47146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5029
  Prefactor  = 0.0001
  Prefactor  = 14.4393
  norm       = 1.04729
  Prefactor  = 0.0001
  norm       = 27.1841
  Prefactor  = 0.0001
  Prefactor  = 1.69826
  Prefactor  = 0.0001
  Prefactor  = 57.2674
  norm       = 0.0001
  Prefactor  = 22.2825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.297322
  norm       = 0.0001
  norm       = 0.146092
  norm       = 1.85537
  Prefactor  = 0.000100007
  Normalizat = 1.47687
  Prefactor  = 0.717791
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.687     FROM HESSE     STATUS=OK           372 CALLS     2911 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.503        17.038        .88461E-04   -1.4802    
   2  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.439        28.711        .10543E-03   -1.4948    
   4  norm          1.0473        18.025        .24123E-02   -1.5503    
   5  Prefactor     .10000E-03    36.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.184        30.161        .76823E-04   -1.4665    
   7  Prefactor     .10000E-03    9.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6983        24.161        .16190E-02   -1.5447    
   9  Prefactor     .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.267        34.757        .53010E-04   -1.4193    
  11  norm          .10000E-03    21.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.283        41.477        .84885E-04   -1.4764    
  13  Prefactor     .10000E-03    17.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29732        .17850        .22907E-04   -1.5599    
  18  norm          .10000E-03    2.8930        .18051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .14609        143.42        .35184E-02   -1.5632    
  20  norm          1.8554        4.5035        .22821E-03   -1.5436    
  21  Prefactor     .10001E-03    213.86        .42797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4769        .29289        .27033E-03   -.78430    
  23  Prefactor     .71779        .16395        .21154E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73158e-09
Minuit parameter uncertainties:
  1  17.0423
  2  2.1006e-05
  3  28.7381
  4  8.6924
  5  0.000194886
  6  30.178
  7  3.33875e-06
  8  12.8171
  9  1.38787e-06
  10  34.7695
  11  0.000111787
  12  41.5308
  13  4.76609e-06
  14  2.36166e-05
  15  0.000114837
  16  5.35307e-05
  17  0.178498
  18  1.54037e-05
  19  9.17381
  20  4.50436
  21  0.00246035
  22  0.293227
  23  0.164058
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.118e-04  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:  7.178e-01  1.641e-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.477e+00  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/714061/likelihoodResults_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.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) = 5339.68766471
delta logL = -0.000221074370529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5339.68744493
delta logL = -1.30162970891e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9215       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71781       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5339.687     FROM MIGRAD    STATUS=FAILED       113 CALLS      293 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70750E-03    115.58        .13682    ** at limit **
   2  alpha         1.6618        2.8780        .16766        .80474E-05
   3  Normalizat    1.4769        .13279E-01    .27033E-03    .83461E-03
   4  Prefactor     .71779        .75872E-02    .21154E-03    .10077E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5339.687     FROM SIMPLEX   STATUS=PROGRESS      95 CALLS      388 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80947        115.58        .27390E-02   -.39809E-02
   2  alpha         1.6471        2.8780        .13477E-02    .80474E-05
   3  Normalizat    1.4768        .13279E-01    .25965E-05    .83461E-03
   4  Prefactor     .71775        .75872E-02    .22439E-05    .10077E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5339.686     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      502 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0031        9731.8        .27831E-03   -.13358E-04
   2  alpha         1.5224        3.1132        .50000        .53035E-06
   3  Normalizat    1.4773        .85184E-01    .10813E-04    .17642E-03
   4  Prefactor     .71732        .51737E-01    .84614E-05    .18434E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00306
  alpha      = 1.52241
  Normalizat = 1.4773
  Prefactor  = 0.717323
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.686     FROM HESSE     STATUS=OK            27 CALLS      529 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0031        326.41        .11132E-04   -1.5908    
   2  alpha         1.5224        3.9179        .15222       -.40176    
   3  Normalizat    1.4773        .27368        .21626E-05   -.78418    
   4  Prefactor     .71732        .15700        .16923E-05   -1.0285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36197e-11
Minuit parameter uncertainties:
  1  36.3888
  2  8.23224
  3  0.273949
  4  0.157094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714061': 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) = 5339.68647245
delta logL = 0.000971178419604

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.003e+00  3.639e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.522e+00  8.232e+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:  7.173e-01  1.571e-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.477e+00  2.739e-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/714061/cmap_HighResolution_423100801_423360001_4FGL_J1442.2+0622_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-10 05:58:15.183628', job_id='714061', GAL2='0.72', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1631278695.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='9.71e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='709' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:58:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 714061: <4FGL_J1442.2+0622_daily_bin709> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin709> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:46:31 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:46:32 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:46:32 2021
Terminated at Fri Sep 10 05:58:15 2021
Results reported at Fri Sep 10 05:58:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin709 220.561 6.3755 423100801 423360001 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 :                                   559.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             242.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

