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


Performing analysis on: 4FGL_J0242.6+1735_daily_bin1273
RA = 40.6588, Dec = 17.5984
tmin = 569289601, tmax = 569548801
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='695163', job_status='RUN', time_executed='2021-08-16 14:11:44.741562', time_epoch_executed='1629148304.74' WHERE source_name='4FGL J0242.6+1735' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695163/ft1_4FGL_J0242.6+1735_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695163/ft1_4FGL_J0242.6+1735_daily_bin1273.fits outfile=/scratch/kocevski/695163/ft1_filteredMKT_4FGL_J0242.6+1735_daily_bin1273.fits ra=40.6588 dec=17.5984 rad=12.0 tmin=569289601.0 tmax=569548801.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.29
user 2.71
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.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/695163/ft1_filteredMKT_4FGL_J0242.6+1735_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.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.81
user 0.28
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/695163/ltcube_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.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/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits
.....................!
real 10.93
user 10.23
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/695163/ltcube_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits outfile=/scratch/kocevski/695163/expmap_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.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/695163/ltcube_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits
.....................!
real 153.73
user 147.58
sys 4.42

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0242.6+1735 @ 40.6588 17.5984

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits outfile=/scratch/kocevski/695163/cmap_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.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=40.6588 yref=17.5984 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.74
user 0.30
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits outfile=/scratch/kocevski/695163/cmap_HighResolution_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.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=40.6588 yref=17.5984 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.70
user 0.31
sys 0.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695163/Model_4FGL_J0242.6+1735_daily_bin1273.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/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits.....................!
real 113.79
user 110.13
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits', '/scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits', expMap='/scratch/kocevski/695163/expmap_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits', expCube='/scratch/kocevski/695163/ltcube_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/695163/Model_4FGL_J0242.6+1735_daily_bin1273.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.6+1735'

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  3.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/695163/ft1_filtered_4FGL_J0242.6+1735_daily_bin1273.fits
Spacecraft file(s): /scratch/kocevski/695163/ft2_4FGL_J0242.6+1735_daily_bin1273.fits
Exposure map: /scratch/kocevski/695163/expmap_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits
Exposure cube: /scratch/kocevski/695163/ltcube_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/695163/Model_4FGL_J0242.6+1735_daily_bin1273.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) = 10032.8360514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    193.92       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4950       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7275       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15557E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3412       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7006       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.229       1.0000         .10000E-03   10000.    
    19 'norm      '    13.244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.640       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.812       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    151.78       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.7836       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.3627       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .94619       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10032.83     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4597 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     193.92        192.72        .43815E-06   -.17531E-04
   2  Prefactor     1.4951        2.6288        .39821E-06    .26673E-04
   3  norm          6.7275        3.8322       -.27441E-08   -.30366E-04
   4  Prefactor     .10001E-03    3.5424        .31523E-05** at limit **
   5  Prefactor     4.3409        2.4952        .37207E-07   -.53234E-04
   6  norm          .10000E-03    23.219       -.65982E-06** at limit **
   7  Prefactor     .10000E-03    8.9274        .11097E-06** at limit **
   8  Prefactor     44.628        44.884        .17136E-05   -.13932E-03
   9  Prefactor     .10000E-03    7.9568        .66060E-06** at limit **
  10  Prefactor     .10000E-03    22.408       -.88667E-07** at limit **
  11  Prefactor     52.445        55.364        .17276E-06   -.48499E-04
  12  Prefactor     .10000E-03    12.222       -.53509E-06** at limit **
  13  Prefactor     .10000E-03    47.261        .69903E-06** at limit **
  14  Prefactor     5.6983        9.8021        .18440E-06   -.93364E-05
  15  norm          9.3794        2.7777        .50287E-07   -.14113E-03
  16  Prefactor     .10000E-03    3.2313       -.29300E-07** at limit **
  17  norm          .10000E-03    .15473       -.29843E-07** at limit **
  18  Prefactor     25.228        48.444        .42335E-06    .54947E-05
  19  norm          13.244        11.350        .29288E-06    .27589E-04
  20  Prefactor     21.638        15.620        .32626E-07   -.10221E-07
  21  Prefactor     30.149        34.430        .59627E-06   -.35077E-04
  22  Prefactor     .10000E-03    13.387        .59103E-06** at limit **
  23  Prefactor     18.810        21.809        .26470E-06   -.15189E-04
  24  norm          .10000E-03    2.2186       -.89770E-08** at limit **
  25  norm          .10002E-03    3.3181       -.21538E-05** at limit **
  26  norm          .10000E-03    4.5380        .28088E-06** at limit **
  27  Prefactor     151.70        204.86        .43358E-05   -.79852E-04
  28  Prefactor     .10000E-03    6.3441       -.46542E-07** at limit **
  29  Prefactor     2.7847        5.2974        .45877E-05    .56000E-03
  30  Prefactor     .10000E-03    4.3576       -.23046E-06** at limit **
  31  norm          6.3627        3.4163        .32718E-06    .47445E-03
  32  Normalizat    .94630        .24482       -.18371E-05   -.16683E-03
  33  Prefactor     1.0730        .88071E-01   -.28912E-06   -.22678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 193.922
  Prefactor  = 1.49512
  norm       = 6.72747
  Prefactor  = 0.000100008
  Prefactor  = 4.34093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.6275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.4449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6983
  norm       = 9.37943
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.2284
  norm       = 13.2438
  Prefactor  = 21.6382
  Prefactor  = 30.1492
  Prefactor  = 0.0001
  Prefactor  = 18.8101
  norm       = 0.0001
  norm       = 0.000100022
  norm       = 0.0001
  Prefactor  = 151.7
  Prefactor  = 0.0001
  Prefactor  = 2.78467
  Prefactor  = 0.0001
  norm       = 6.36268
  Normalizat = 0.946296
  Prefactor  = 1.07302
 **********
 **   18 **HESSE 
 **********

 FCN=   10032.83     FROM HESSE     STATUS=OK           693 CALLS     5290 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     193.92        191.83        .29007E-04   -1.2914    
   2  Prefactor     1.4951        2.6042        .20491E-03   -1.5463    
   3  norm          6.7275        3.8322        .14394E-03   -1.5189    
   4  Prefactor     .10001E-03    10.228        .31387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3409        2.4942        .11619E-03   -1.5291    
   6  norm          .10000E-03    23.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.628        45.056        .60009E-04   -1.4371    
   9  Prefactor     .10000E-03    8.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.445        55.201        .55383E-04   -1.4258    
  12  Prefactor     .10000E-03    12.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6983        9.7813        .16824E-03   -1.5230    
  15  norm          9.3794        2.7767        .87536E-04   -1.5095    
  16  Prefactor     .10000E-03    3.2359        .17579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .19375        .75705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.228        48.313        .79752E-04   -1.4703    
  19  norm          13.244        11.337        .55033E-03   -1.4980    
  20  Prefactor     21.638        15.474        .86103E-04   -1.4777    
  21  Prefactor     30.149        34.426        .72964E-04   -1.4609    
  22  Prefactor     .10000E-03    13.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.810        21.803        .92343E-04   -1.4840    
  24  norm          .10000E-03    2.2193        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10002E-03    14.349        .32167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     151.70        206.25        .16358E-03   -1.3238    
  28  Prefactor     .10000E-03    6.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.7847        5.5002        .12195E-02   -1.5374    
  30  Prefactor     .10000E-03    4.3612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.3627        3.3984        .62813E-03   -1.5203    
  32  Normalizat    .94630        .26901        .45507E-03   -.94852    
  33  Prefactor     1.0730        .97811E-01    .16672E-03   -.90334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0119e-09
Minuit parameter uncertainties:
  1  192.45
  2  2.60437
  3  3.83229
  4  0.000557544
  5  2.49421
  6  9.76532e-05
  7  1.55646e-06
  8  45.0906
  9  5.60295e-05
  10  2.71864e-05
  11  55.2553
  12  4.87386e-05
  13  8.39315e-05
  14  9.78403
  15  2.7767
  16  4.39497e-06
  17  4.91624e-07
  18  48.3875
  19  11.3392
  20  15.4765
  21  34.4484
  22  6.65696e-06
  23  21.8126
  24  2.22319e-06
  25  0.00112796
  26  8.35468e-06
  27  207.246
  28  5.70637e-05
  29  5.50119
  30  7.49111e-06
  31  3.39852
  32  0.269392
  33  0.097827
Done.

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

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  2.164e+01  1.548e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.073e+00  9.783e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.463e-01  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 40.659 17.598
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.24e-05

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) = 10032.1016276
delta logL = 0.730378081897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10032.0406878
delta logL = 0.791317909872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.833       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8535       1.0000          .0000       10.000    
     3 'Normalizat'    .97055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10032.04     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      222 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.815        80.499        .17755E-02    .19043E-04
   2  Index         1.8518        1.3644        .20097       -.28725E-04
   3  Normalizat    .97066        .23457        .10154       -.82397E-04
   4  Prefactor     1.0682        .88499E-01    .38946E-01    .20905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.8154
  Index      = 1.85177
  Normalizat = 0.970657
  Prefactor  = 1.06818
 **********
 **   18 **HESSE 
 **********

 FCN=   10032.04     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.815        23.377        .71018E-04   -1.4579    
   2  Index         1.8518        .46625        .99951E-02   -.68110    
   3  Normalizat    .97066        .24637        .44994E-03   -.94020    
   4  Prefactor     1.0682        .96146E-01    .16705E-03   -.90490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67077e-10
Minuit parameter uncertainties:
  1  23.3839
  2  0.467373
  3  0.246656
  4  0.0961612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695163': 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) = 10032.0406804
delta logL = 0.791325304186

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  3.182e+01  2.338e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  1.852e+00  4.674e-01  0.000e+00  1.000e+01 (-1.000e+00)
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.068e+00  9.616e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.707e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 40.659 17.598
Photon Index (Free Index): 1.85 +/- 0.47
Photon Flux (Free Index): 3.27e-08 +/- 3.16e-08
Energy Flux (Free Index): 3.36e-05 +/- 3.44e-05

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/695163/cmap_HighResolution_569289601_569548801_4FGL_J0242.6+1735_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='3.36e-05', photon_flux_error='4.15e-08', dlogl='7.91e-01', energy_flux='1.73e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-08-16 14:26:49.951943', photon_index_error2='0.47', photon_index2='1.85', ts='5.99', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.44e-05', EG='0.95', time_epoch_completed='1629149209.95', return_code='0', job_id='695163', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.16e-08', ts2='7.56', photon_index='2.48' WHERE bin_id='1273' AND source_name='4FGL J0242.6+1735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 14:26:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 695163: <4FGL_J0242.6+1735_daily_bin1273> in cluster <slac> Done

Job <4FGL_J0242.6+1735_daily_bin1273> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 14:10:28 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 14:11:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 14:11:13 2021
Terminated at Mon Aug 16 14:26:50 2021
Results reported at Mon Aug 16 14:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.6+1735_daily_bin1273 40.6588 17.5984 569289601 569548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.6+1735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   895.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             355.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            982 sec.

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

