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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin61
RA = 145.45, Dec = 41.4216
tmin = 255139201, tmax = 255398401
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='422664', job_status='RUN', time_executed='2021-08-31 22:01:01.350736', time_epoch_executed='1630472461.35' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422664

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422664/ft1_4FGL_J0941.7+4125_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422664/ft1_4FGL_J0941.7+4125_daily_bin61.fits outfile=/scratch/kocevski/422664/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin61.fits ra=145.45 dec=41.4216 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.49
user 7.12
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.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/422664/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/422664/ltcube_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.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/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits
.....................!
real 11.93
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/422664/ltcube_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits outfile=/scratch/kocevski/422664/expmap_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.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/422664/ltcube_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits
.....................!
real 190.89
user 185.04
sys 5.41

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

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits outfile=/scratch/kocevski/422664/cmap_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.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=145.45 yref=41.4216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits outfile=/scratch/kocevski/422664/cmap_HighResolution_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.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=145.45 yref=41.4216 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422664/Model_4FGL_J0941.7+4125_daily_bin61.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/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits.....................!
real 37.13
user 35.80
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits', '/scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits', expMap='/scratch/kocevski/422664/expmap_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits', expCube='/scratch/kocevski/422664/ltcube_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422664/Model_4FGL_J0941.7+4125_daily_bin61.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422664/ft1_filtered_4FGL_J0941.7+4125_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/422664/ft2_4FGL_J0941.7+4125_daily_bin61.fits
Exposure map: /scratch/kocevski/422664/expmap_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits
Exposure cube: /scratch/kocevski/422664/ltcube_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422664/Model_4FGL_J0941.7+4125_daily_bin61.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) = 3661.20789277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.07       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10824E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15589E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.798       1.0000         .10000E-03   10000.    
    15 'norm      '    .17833E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2856       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6937       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.862       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6500       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .98405       1.0000         .10000E-03   10000.    
    26 'norm      '    12.880       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6284       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80929       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0112       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3661.204     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4457 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.619        12.136       -.14208E-06   -.78233E-04
   2  Prefactor     .34753        3.9615        .16287E-05    .30454E-04
   3  Prefactor     106.06        89.790       -.55308E-06   -.53065E-04
   4  Prefactor     16.641        8.0603        .92098E-07    .10564E-04
   5  Prefactor     .10000E-03    49.036       -.75701E-06** at limit **
   6  Prefactor     .54435E-03    2.5873       -.94602E-06** at limit **
   7  Prefactor     .10000E-03    9.4246       -.78917E-07** at limit **
   8  norm          2.9255        .93872       -.10819E-06   -.22613E-02
   9  Prefactor     .10000E-03    3.3977        .78740E-06** at limit **
  10  norm          .10000E-03    3.9523        .68337E-07** at limit **
  11  Prefactor     2.5849        2.6181        .10126E-06    .10736E-03
  12  Prefactor     .10000E-03    8.8121       -.25864E-07** at limit **
  13  Prefactor     .10000E-03    2.1024       -.49474E-07** at limit **
  14  Prefactor     28.798        22.899        .57175E-07   -.53331E-04
  15  norm          .10000E-03    30.468        .71649E-05** at limit **
  16  Prefactor     3.9105        52.883        .27699E-05    .20073E-04
  17  Prefactor     .10000E-03    2.6788       -.42698E-07** at limit **
  18  Prefactor     .10000E-03    26.824        .14665E-05** at limit **
  19  Prefactor     .10000E-03    6.9259       -.11431E-06** at limit **
  20  norm          .10000E-03    5.3192       -.71283E-08** at limit **
  21  Prefactor     4.2854        6.1358        .30563E-06   -.14195E-04
  22  Prefactor     1.6966        4.6428        .13403E-05    .14985E-03
  23  Prefactor     27.862        33.274        .23127E-06   -.15138E-04
  24  norm          4.6498        3.3176        .13144E-07   -.39960E-05
  25  Prefactor     .97899        10.946       -.40058E-06   -.72775E-04
  26  norm          12.880        11.180        .11030E-06    .18614E-04
  27  Prefactor     .10000E-03    11.613        .59837E-07** at limit **
  28  Prefactor     5.6263        5.7386        .34635E-06    .38890E-04
  29  Prefactor     .10000E-03    1.7860        .40897E-07** at limit **
  30  Prefactor     .10000E-03    58.356        .55694E-06** at limit **
  31  Normalizat    .80930        .22121       -.27136E-05   -.14384E-05
  32  Prefactor     1.0114        .25413        .22235E-05   -.62110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.619
  Prefactor  = 0.347526
  Prefactor  = 106.057
  Prefactor  = 16.6405
  Prefactor  = 0.000100001
  Prefactor  = 0.000544351
  Prefactor  = 0.0001
  norm       = 2.92553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.5849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.798
  norm       = 0.000100002
  Prefactor  = 3.91051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.2854
  Prefactor  = 1.69656
  Prefactor  = 27.8623
  norm       = 4.64979
  Prefactor  = 0.978989
  norm       = 12.8802
  Prefactor  = 0.0001
  Prefactor  = 5.62635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809301
  Prefactor  = 1.01135
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.204     FROM HESSE     STATUS=OK           665 CALLS     5122 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.619        12.113        .92819E-04   -1.4845    
   2  Prefactor     .34753        3.9847        .22676E-03   -1.5590    
   3  Prefactor     106.06        89.765        .39047E-04   -1.3645    
   4  Prefactor     16.641        8.0611        .98179E-04   -1.4892    
   5  Prefactor     .10000E-03    49.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54435E-03    6.0332        .30657E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9255        .86379        .28942E-04   -1.5366    
   9  Prefactor     .10000E-03    7.1852        .18693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9597        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5849        2.6087        .92944E-04   -1.5386    
  12  Prefactor     .10000E-03    8.9635        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1129        .85670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.798        22.871        .74657E-04   -1.4634    
  15  norm          .10000E-03    29.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9105        51.463        .20268E-03   -1.5312    
  17  Prefactor     .10000E-03    2.6812        .96697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9583        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.3276        .13629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2854        6.1253        .17024E-03   -1.5294    
  22  Prefactor     1.6966        4.2247        .16005E-03   -1.5447    
  23  Prefactor     27.862        33.304        .75897E-04   -1.4652    
  24  norm          4.6498        3.3181        .90066E-04   -1.5277    
  25  Prefactor     .97899        8.9303        .28262E-03   -1.5510    
  26  norm          12.880        11.159        .11161E-03   -1.4990    
  27  Prefactor     .10000E-03    11.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.6263        5.7322        .13671E-03   -1.5234    
  29  Prefactor     .10000E-03    1.7882        .78959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    58.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80930        .25073        .24489E-03   -.99725    
  32  Prefactor     1.0114        .29202        .27378E-03   -.92352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78533e-09
Minuit parameter uncertainties:
  1  12.1145
  2  2.35341
  3  89.8803
  4  8.06165
  5  0.000387193
  6  0.103564
  7  1.60661e-05
  8  0.863791
  9  7.32059e-05
  10  3.50832e-06
  11  2.60884
  12  1.45961e-05
  13  2.21503e-07
  14  22.8783
  15  0.000424074
  16  28.4019
  17  6.59605e-07
  18  0.000117379
  19  7.22652e-06
  20  1.17913e-07
  21  6.12615
  22  4.22549
  23  33.3262
  24  3.31823
  25  5.91447
  26  11.1611
  27  7.30116e-06
  28  5.73281
  29  2.11297e-07
  30  0.000303427
  31  0.251089
  32  0.292476
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  4.241e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.011e+00  2.925e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.093e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.450 41.422
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422664/likelihoodResults_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.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) = 3661.20442056
delta logL = -0.000159776097462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3661.20426145
delta logL = -6.61102603772e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3661.204     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      193 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    44.933        .90712E-02** at limit **
   2  alpha         2.8370        3.7744        .41503       -.94497E-05
   3  Normalizat    .80930        .19727        .43732E-01   -.50313E-05
   4  Prefactor     1.0114        .24521        .61907E-01    .92519E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100029
  alpha      = 2.83705
  Normalizat = 0.809299
  Prefactor  = 1.01135
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.204     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8370        3.6216        .16601        .13523    
   3  Normalizat    .80930        .23024        .24489E-03   -.99725    
   4  Prefactor     1.0114        .28606        .27377E-03   -.92352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05964e-09
Minuit parameter uncertainties:
  1  0.00189138
  2  2.48303
  3  0.230518
  4  0.286491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422664': 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) = 3661.20426072
delta logL = 6.33808667772e-08

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  1.891e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.837e+00  2.483e+00  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.011e+00  2.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.093e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.450 41.422

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/422664/cmap_HighResolution_255139201_255398401_4FGL_J0941.7+4125_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-08-31 22:13:59.161199', job_id='422664', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630473239.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='61' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 422664: <4FGL_J0941.7+4125_daily_bin61> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin61> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 22:00:31 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:00:32 2021
Terminated at Tue Aug 31 22:13:59 2021
Results reported at Tue Aug 31 22:13:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin61 145.45 41.4216 255139201 255398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

