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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin654
RA = 40.5951, Dec = 11.0477
tmin = 408844801, tmax = 409104001
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='665331', job_status='RUN', time_executed='2021-08-16 12:38:34.925990', time_epoch_executed='1629142714.93' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665331

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665331/ft1_4FGL_J0242.3+1102_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665331/ft1_4FGL_J0242.3+1102_daily_bin654.fits outfile=/scratch/kocevski/665331/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin654.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=408844801.0 tmax=409104001.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 9.22
user 4.15
sys 5.02

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.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/665331/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.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 5.13
user 0.32
sys 4.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/665331/ltcube_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.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/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits
.....................!
real 19.16
user 13.29
sys 5.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/665331/ltcube_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits outfile=/scratch/kocevski/665331/expmap_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.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/665331/ltcube_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits
.....................!
real 197.90
user 186.39
sys 10.36

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

Setting source of interest to:
4FGL J0242.3+1102 @ 40.5951 11.0477

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits outfile=/scratch/kocevski/665331/cmap_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.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.5951 yref=11.0477 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 5.45
user 0.37
sys 4.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits outfile=/scratch/kocevski/665331/cmap_HighResolution_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.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.5951 yref=11.0477 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 4.93
user 0.39
sys 4.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665331/Model_4FGL_J0242.3+1102_daily_bin654.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/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits.....................!
real 62.86
user 53.11
sys 7.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits', '/scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits', expMap='/scratch/kocevski/665331/expmap_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits', expCube='/scratch/kocevski/665331/ltcube_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/665331/Model_4FGL_J0242.3+1102_daily_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.3+1102'

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  4.106e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/665331/ft1_filtered_4FGL_J0242.3+1102_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/665331/ft2_4FGL_J0242.3+1102_daily_bin654.fits
Exposure map: /scratch/kocevski/665331/expmap_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits
Exposure cube: /scratch/kocevski/665331/ltcube_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/665331/Model_4FGL_J0242.3+1102_daily_bin654.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) = 3667.11580046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92429E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15353E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2671       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3253       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.978       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .44739E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8824       1.0000         .10000E-03   10000.    
    24 'norm      '    6.3669       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.2657       1.0000         .10000E-03   10000.    
    27 'Prefactor '    436.79       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78653       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3667.102     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     5050 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10206E-03    40.118        .76728E-05** at limit **
   2  Prefactor     .10000E-03    5.0559        .18883E-06** at limit **
   3  norm          .10000E-03    2.8952        .63537E-07** at limit **
   4  Prefactor     .10000E-03    3.1530        .32861E-06** at limit **
   5  norm          .10000E-03    .29901        .62293E-07** at limit **
   6  Prefactor     .10000E-03    92.195        .11907E-05** at limit **
   7  Prefactor     .10000E-03    48.978        .26412E-06** at limit **
   8  Prefactor     .10000E-03    6.5747        .91232E-07** at limit **
   9  Prefactor     .10000E-03    34.671        .25058E-06** at limit **
  10  Prefactor     .10004E-03    54.121        .98443E-05** at limit **
  11  Prefactor     .10000E-03    18.093        .82044E-07** at limit **
  12  Prefactor     .10000E-03    8.6727        .10036E-06** at limit **
  13  Prefactor     .10000E-03    13.274        .46406E-07** at limit **
  14  norm          .10000E-03    .48152       -.92266E-07** at limit **
  15  Prefactor     .10000E-03    56.033       -.38676E-06** at limit **
  16  Prefactor     8.2550        30.179       -.48420E-06   -.19619E-04
  17  norm          .10000E-03    20.106        .15884E-07** at limit **
  18  Prefactor     .10000E-03    28.361        .28549E-07** at limit **
  19  Prefactor     2.4651        663.09        .35593E-05   -.55236E-07
  20  Prefactor     26.972        42.726       -.63291E-06   -.15541E-04
  21  Prefactor     .10000E-03    2.1390        .47693E-07** at limit **
  22  norm          .10000E-03    30.412       -.94680E-06** at limit **
  23  norm          3.8796        12.746       -.27786E-05   -.19927E-03
  24  norm          6.3669        5.1528        .19306E-06   -.10533E-03
  25  Prefactor     .10000E-03    4.8117        .33264E-06** at limit **
  26  norm          9.2614        11.956        .38397E-06   -.62442E-04
  27  Prefactor     436.10        593.12       -.67323E-05    .83556E-05
  28  Prefactor     .10000E-03    21.686        .37258E-06** at limit **
  29  Prefactor     .10000E-03    4.9508        .20220E-06** at limit **
  30  Prefactor     .10000E-03    13.529        .26537E-06** at limit **
  31  Normalizat    1.1089        .30569        .19838E-05   -.27062E-03
  32  Prefactor     .78675        .11692       -.19614E-05   -.37328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25496
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46514
  Prefactor  = 26.9723
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.87961
  norm       = 6.36689
  Prefactor  = 0.0001
  norm       = 9.26143
  Prefactor  = 436.096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10886
  Prefactor  = 0.786753
 **********
 **   18 **HESSE 
 **********

 FCN=   3667.102     FROM HESSE     STATUS=OK           655 CALLS     5705 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10206E-03    20.235        .73692E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0910        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8971        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2938        .20992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .30127        .32338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5807        .15164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    59.662        .42795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6949        .17421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .61305        .80185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2550        30.612        .13943E-03   -1.5133    
  17  norm          .10000E-03    20.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4651        624.94        .26897E-03   -1.5394    
  20  Prefactor     26.972        42.658        .77128E-04   -1.4669    
  21  Prefactor     .10000E-03    2.1432        .86494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    139.22        .62050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8796        12.984        .10239E-02   -1.5314    
  24  norm          6.3669        5.1464        .11674E-03   -1.5203    
  25  Prefactor     .10000E-03    12.029        .25472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.2614        11.986        .13166E-03   -1.5099    
  27  Prefactor     436.10        590.34        .97858E-04   -1.1500    
  28  Prefactor     .10000E-03    22.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.0049        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1089        .32964        .33735E-03   -.89468    
  32  Prefactor     .78675        .12525        .15904E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70296e-09
Minuit parameter uncertainties:
  1  0.0129098
  2  6.34127e-06
  3  6.41393e-07
  4  6.55909e-06
  5  5.20593e-07
  6  0.000193183
  7  1.27232e-05
  8  6.78749e-06
  9  5.12457e-05
  10  0.00294745
  11  4.07806e-05
  12  1.11025e-05
  13  6.2938e-06
  14  1.12359e-05
  15  7.04836e-05
  16  30.6698
  17  3.76439e-05
  18  0.000112624
  19  79.35
  20  42.7062
  21  4.67924e-06
  22  0.00085039
  23  12.9934
  24  5.14677
  25  0.000118253
  26  11.9894
  27  598.882
  28  3.10845e-05
  29  2.85508e-05
  30  3.07751e-05
  31  0.330258
  32  0.125296
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  3.764e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.868e-01  1.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.109e+00  3.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 40.595 11.048
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665331/likelihoodResults_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3667.10220667
delta logL = -0.000235110901485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3667.10197182
delta logL = -2.68389158009e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4155       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3667.102     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      188 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.088        .90712E-02** at limit **
   2  alpha         2.4471        3.5664        .41181       -.82338E-05
   3  Normalizat    1.1089        .26072        .76224E-01   -.56385E-04
   4  Prefactor     .78675        .10609        .43545E-01   -.53917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.44712
  Normalizat = 1.10886
  Prefactor  = 0.786752
 **********
 **   18 **HESSE 
 **********

 FCN=   3667.102     FROM HESSE     STATUS=OK            25 CALLS      213 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4471        3.5398        .16473E-01   -.21155E-01
   3  Normalizat    1.1089        .28905        .33736E-03   -.89468    
   4  Prefactor     .78675        .11781        .15904E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00227e-10
Minuit parameter uncertainties:
  1  0.000143436
  2  2.5009
  3  0.289463
  4  0.117851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665331': 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) = 3667.10197152
delta logL = 3.84152372135e-08

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  1.434e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.447e+00  2.501e+00  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.868e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.109e+00  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 40.595 11.048

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/665331/cmap_HighResolution_408844801_409104001_4FGL_J0242.3+1102_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-05', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-08-16 12:50:44.142336', job_id='665331', GAL2='0.79', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629143444.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='654' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 12:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 665331: <4FGL_J0242.3+1102_daily_bin654> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin654> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 12:36:30 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 12:37:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 12:37:01 2021
Terminated at Mon Aug 16 12:50:45 2021
Results reported at Mon Aug 16 12:50:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin654 40.5951 11.0477 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.3+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            855 sec.

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

