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


Performing analysis on: 4FGL_J0239.5+1326_daily_bin1318
RA = 39.8847, Dec = 13.4366
tmin = 580953601, tmax = 581212801
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='629193', job_status='RUN', time_executed='2021-08-16 10:48:13.444890', time_epoch_executed='1629136093.44' WHERE source_name='4FGL J0239.5+1326' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629193/ft1_4FGL_J0239.5+1326_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629193/ft1_4FGL_J0239.5+1326_daily_bin1318.fits outfile=/scratch/kocevski/629193/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1318.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=580953601.0 tmax=581212801.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.22
user 2.75
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.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/629193/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.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.84
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/629193/ltcube_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.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/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits
.....................!
real 14.55
user 13.74
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/629193/ltcube_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits outfile=/scratch/kocevski/629193/expmap_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.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/629193/ltcube_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits
.....................!
real 191.45
user 186.01
sys 4.74

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

Setting source of interest to:
4FGL J0239.5+1326 @ 39.8847 13.4366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits outfile=/scratch/kocevski/629193/cmap_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.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=39.8847 yref=13.4366 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 1.00
user 0.39
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits outfile=/scratch/kocevski/629193/cmap_HighResolution_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.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=39.8847 yref=13.4366 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.85
user 0.40
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629193/Model_4FGL_J0239.5+1326_daily_bin1318.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/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits.....................!
real 65.55
user 63.53
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits', '/scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits', expMap='/scratch/kocevski/629193/expmap_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits', expCube='/scratch/kocevski/629193/ltcube_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629193/Model_4FGL_J0239.5+1326_daily_bin1318.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.5+1326'

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  3.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/629193/ft1_filtered_4FGL_J0239.5+1326_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/629193/ft2_4FGL_J0239.5+1326_daily_bin1318.fits
Exposure map: /scratch/kocevski/629193/expmap_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits
Exposure cube: /scratch/kocevski/629193/ltcube_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629193/Model_4FGL_J0239.5+1326_daily_bin1318.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) = 4221.04321241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18086E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    39.236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21330       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4065       1.0000         .10000E-03   10000.    
    18 'norm      '    20.999       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.622       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.711       1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .53193E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    33.037       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4221.031     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4617 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6401        10.840        .52728E-05    .21184E-05
   2  Prefactor     .10000E-03    2.6184       -.54553E-06** at limit **
   3  norm          39.240        13.862       -.27773E-06    .14975E-03
   4  Prefactor     .21517        8.6597        .43233E-06   -.72663E-04
   5  Prefactor     4.5660        5.1102        .56133E-06    .10100E-03
   6  Prefactor     .10000E-03    11.208        .79526E-06** at limit **
   7  Prefactor     85.652        84.599       -.82092E-06    .39090E-04
   8  Prefactor     5.7206        16.265        .38504E-05    .12080E-03
   9  Prefactor     16.603        279.72       -.27133E-04    .60779E-05
  10  Prefactor     .10000E-03    61.162        .19772E-05** at limit **
  11  Prefactor     .10000E-03    92.259       -.28421E-05** at limit **
  12  Prefactor     .10000E-03    58.467        .25033E-05** at limit **
  13  Prefactor     20.544        31.892        .10737E-05    .23823E-04
  14  Prefactor     .10000E-03    7.1292        .18042E-06** at limit **
  15  norm          .10000E-03    .23683        .25453E-07** at limit **
  16  Prefactor     67.851        71.521        .66151E-06    .15513E-04
  17  Prefactor     4.4043        30.281        .24012E-05   -.47958E-05
  18  norm          20.991        37.625        .29486E-06    .22790E-04
  19  Prefactor     .10000E-03    17.937        .20753E-06** at limit **
  20  Prefactor     .10000E-03    168.18        .32091E-05** at limit **
  21  Prefactor     29.285        29.368        .19828E-06    .82515E-05
  22  Prefactor     63.633        69.119       -.87018E-06    .95639E-05
  23  Prefactor     26.713        16.057        .21723E-07    .11582E-04
  24  norm          .10000E-03    12.302       -.44571E-06** at limit **
  25  norm          .10000E-03    7.1899       -.21465E-06** at limit **
  26  norm          .10000E-03    4.2455       -.78999E-07** at limit **
  27  Prefactor     .10000E-03    10.397       -.40649E-06** at limit **
  28  norm          .10000E-03    16.722       -.12258E-06** at limit **
  29  Prefactor     .10000E-03    622.25        .17350E-04** at limit **
  30  Prefactor     33.045        27.033       -.60654E-07    .10552E-04
  31  Prefactor     .10000E-03    45.126       -.16200E-05** at limit **
  32  Normalizat    1.2005        .39696       -.23217E-05    .11203E-03
  33  Prefactor     .98439        .16009        .85425E-06    .14985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64014
  Prefactor  = 0.0001
  norm       = 39.2397
  Prefactor  = 0.21517
  Prefactor  = 4.56599
  Prefactor  = 0.0001
  Prefactor  = 85.6523
  Prefactor  = 5.72056
  Prefactor  = 16.6034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.8508
  Prefactor  = 4.40432
  norm       = 20.9913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2851
  Prefactor  = 63.6327
  Prefactor  = 26.7134
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 33.045
  Prefactor  = 0.0001
  Normalizat = 1.20049
  Prefactor  = 0.984394
 **********
 **   18 **HESSE 
 **********

 FCN=   4221.031     FROM HESSE     STATUS=OK           691 CALLS     5308 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6401        10.913        .12542E-02   -1.5383    
   2  Prefactor     .10000E-03    7.6523        .19587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          39.240        13.868        .63989E-04   -1.4454    
   4  Prefactor     .21517        64.161        .36403E-02   -1.5615    
   5  Prefactor     4.5660        5.0744        .13667E-03   -1.5281    
   6  Prefactor     .10000E-03    11.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     85.652        84.683        .43413E-04   -1.3854    
   8  Prefactor     5.7206        16.174        .83918E-03   -1.5230    
   9  Prefactor     16.603        278.73        .98620E-04   -1.4893    
  10  Prefactor     .10000E-03    61.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    93.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    59.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.544        31.683        .88364E-04   -1.4801    
  14  Prefactor     .10000E-03    7.1327        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .23770        .30844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.851        71.472        .48725E-04   -1.4059    
  17  Prefactor     4.4043        30.314        .95925E-03   -1.5288    
  18  norm          20.991        37.448        .87405E-04   -1.4791    
  19  Prefactor     .10000E-03    17.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    168.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.285        29.350        .74040E-04   -1.4625    
  22  Prefactor     63.633        69.241        .50310E-04   -1.4111    
  23  Prefactor     26.713        16.046        .77513E-04   -1.4674    
  24  norm          .10000E-03    12.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.1919        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.2606        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    16.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    620.31        .21126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     33.045        27.181        .69716E-04   -1.4558    
  31  Prefactor     .10000E-03    45.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2005        .43088        .42137E-03   -.86588    
  33  Prefactor     .98439        .18002        .20633E-03   -.93252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67948e-08
Minuit parameter uncertainties:
  1  10.7387
  2  0.000122699
  3  13.8692
  4  7.43747
  5  5.07483
  6  4.19295e-06
  7  84.8028
  8  16.186
  9  136.813
  10  8.04503e-05
  11  2.42331e-05
  12  1.46954e-05
  13  31.7094
  14  2.7252e-06
  15  1.67525e-07
  16  71.5629
  17  23.1261
  18  37.4904
  19  7.54844e-06
  20  0.000351018
  21  29.3649
  22  69.3288
  23  16.049
  24  1.75935e-06
  25  5.02406e-08
  26  5.0049e-06
  27  3.36294e-06
  28  1.25502e-05
  29  0.0019124
  30  27.1912
  31  3.73427e-05
  32  0.432159
  33  0.180134
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  6.785e+01  7.156e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.844e-01  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.200e+00  4.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 39.885 13.437
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 2.66e-05

TS (Fixed Index): 3.18
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 2.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629193/likelihoodResults_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.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) = 4220.96224903
delta logL = 0.0690357799131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4220.95949642
delta logL = 0.071788387484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.106       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7660       1.0000          .0000       10.000    
     3 'Normalizat'    1.2167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+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=   4220.959     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      292 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.107        91.191        .44062E-04    .78901E-04
   2  Index         1.7660        .96859        .10273E-01    .49986E-04
   3  Normalizat    1.2168        .37820        .41909E-03    .33475E-04
   4  Prefactor     .98286        .17071        .20650E-03    .55086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.1069
  Index      = 1.76602
  Normalizat = 1.21677
  Prefactor  = 0.98286
 **********
 **   18 **HESSE 
 **********

 FCN=   4220.959     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.107        90.636        .88124E-05   -1.3882    
   2  Index         1.7660        .96236        .41093E-03   -.70338    
   3  Normalizat    1.2168        .37829        .16764E-04   -.86086    
   4  Prefactor     .98286        .17080        .41301E-04   -.93303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.825e-10
Minuit parameter uncertainties:
  1  90.7869
  2  0.972884
  3  0.379145
  4  0.17089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629193': 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) = 4220.95949642
delta logL = 0.0717883896377

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  8.311e+01  9.079e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  1.766e+00  9.729e-01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.829e-01  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.217e+00  3.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 39.885 13.437
Photon Index (Free Index): 1.77 +/- 0.97
Photon Flux (Free Index): 2.77e-08 +/- 5.31e-08
Energy Flux (Free Index): 3.67e-05 +/- 6.45e-05

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/629193/cmap_HighResolution_580953601_581212801_4FGL_J0239.5+1326_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='3.67e-05', photon_flux_error='5.74e-08', dlogl='7.18e-02', energy_flux='2.52e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-08-16 11:00:14.072043', photon_index_error2='0.97', photon_index2='1.77', ts='3.18', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.29e-07', energy_flux_error2='6.45e-05', EG='1.20', time_epoch_completed='1629136814.07', return_code='0', job_id='629193', GAL2='0.98', EG2='1.22', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='5.31e-08', ts2='3.32', photon_index='2.18' WHERE bin_id='1318' AND source_name='4FGL J0239.5+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:00:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 629193: <4FGL_J0239.5+1326_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1318> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 10:45:34 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 10:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 10:46:00 2021
Terminated at Mon Aug 16 11:00:15 2021
Results reported at Mon Aug 16 11:00:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1318 39.8847 13.4366 580953601 581212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            881 sec.

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

