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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin601
RA = 145.45, Dec = 41.4216
tmin = 395107201, tmax = 395366401
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='426369', job_status='RUN', time_executed='2021-08-31 22:10:51.175371', time_epoch_executed='1630473051.18' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426369

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426369/ft1_4FGL_J0941.7+4125_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426369/ft1_4FGL_J0941.7+4125_daily_bin601.fits outfile=/scratch/kocevski/426369/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin601.fits ra=145.45 dec=41.4216 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.20
user 7.71
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.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/426369/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.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 1.03
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/426369/ltcube_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.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/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits
.....................!
real 12.61
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/426369/ltcube_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits outfile=/scratch/kocevski/426369/expmap_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.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/426369/ltcube_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits
.....................!
real 191.43
user 185.40
sys 4.55

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/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits outfile=/scratch/kocevski/426369/cmap_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.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.72
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits outfile=/scratch/kocevski/426369/cmap_HighResolution_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.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 1.17
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426369/Model_4FGL_J0941.7+4125_daily_bin601.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/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits.....................!
real 46.60
user 44.71
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits', '/scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits', expMap='/scratch/kocevski/426369/expmap_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits', expCube='/scratch/kocevski/426369/ltcube_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426369/Model_4FGL_J0941.7+4125_daily_bin601.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/426369/ft1_filtered_4FGL_J0941.7+4125_daily_bin601.fits
Spacecraft file(s): /scratch/kocevski/426369/ft2_4FGL_J0941.7+4125_daily_bin601.fits
Exposure map: /scratch/kocevski/426369/expmap_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits
Exposure cube: /scratch/kocevski/426369/ltcube_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426369/Model_4FGL_J0941.7+4125_daily_bin601.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) = 5096.27848814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5456       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10382E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.582       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58579       1.0000         .10000E-03   10000.    
    10 'norm      '    13.254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42043E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.559       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6825       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8330       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12621E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1936       1.0000         .10000E-03   10000.    
    24 'norm      '    8.8468       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5591       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0750       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76602       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2278       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=   5096.249     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4439 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5473        6.0336        .27673E-06   -.35811E-04
   2  Prefactor     .10000E-03    1.4367       -.69621E-07** at limit **
   3  Prefactor     43.619        60.711       -.29690E-05   -.16602E-03
   4  Prefactor     1.5668        5.0878        .29369E-06   -.19062E-04
   5  Prefactor     41.839        35.858       -.63755E-06   -.86344E-04
   6  Prefactor     2.9020        2.7619        .35147E-07   -.31847E-04
   7  Prefactor     .10000E-03    12.162       -.12275E-06** at limit **
   8  norm          .10000E-03    .24734       -.14070E-06** at limit **
   9  Prefactor     .58665        3.4552        .10192E-05   -.19635E-04
  10  norm          13.257        11.018        .26029E-06    .51645E-04
  11  Prefactor     .10000E-03    1.7640       -.41746E-08** at limit **
  12  Prefactor     .10000E-03    9.7645        .34649E-05** at limit **
  13  Prefactor     .10000E-03    2.2796        .24114E-06** at limit **
  14  Prefactor     25.543        24.909       -.52692E-05    .14633E-04
  15  norm          .10000E-03    9.0919        .15217E-06** at limit **
  16  Prefactor     36.469        30.814        .27426E-06    .47889E-05
  17  Prefactor     1.9664        7.8384        .37239E-05   -.10525E-03
  18  Prefactor     .10000E-03    20.656       -.26981E-06** at limit **
  19  Prefactor     8.6824        9.3499        .11414E-06    .24411E-04
  20  norm          1.6496        10.555        .43982E-06   -.19675E-04
  21  Prefactor     1.8325        5.4835        .20328E-05   -.67447E-04
  22  Prefactor     .10000E-03    3.2970        .88828E-06** at limit **
  23  Prefactor     3.1855        41.218        .14704E-05    .11338E-04
  24  norm          8.8465        3.7846        .12437E-07    .82964E-04
  25  Prefactor     11.155        6.8042       -.14537E-07    .10940E-03
  26  norm          .10000E-03    3.6560        .36547E-07** at limit **
  27  Prefactor     9.5588        20.121        .21337E-06   -.39553E-05
  28  Prefactor     2.0748        2.7726        .81674E-07   -.56156E-04
  29  Prefactor     .10000E-03    1.6466        .23609E-07** at limit **
  30  Prefactor     .10000E-03    19.368        .40015E-06** at limit **
  31  Normalizat    .76590        .19920       -.20985E-05   -.61520E-04
  32  Prefactor     1.2281        .21684        .27189E-06   -.30744E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54732
  Prefactor  = 0.000100003
  Prefactor  = 43.6189
  Prefactor  = 1.56684
  Prefactor  = 41.8389
  Prefactor  = 2.90196
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.586654
  norm       = 13.2569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5427
  norm       = 0.0001
  Prefactor  = 36.4689
  Prefactor  = 1.96644
  Prefactor  = 0.0001
  Prefactor  = 8.6824
  norm       = 1.64956
  Prefactor  = 1.8325
  Prefactor  = 0.0001
  Prefactor  = 3.18555
  norm       = 8.84651
  Prefactor  = 11.1553
  norm       = 0.0001
  Prefactor  = 9.55882
  Prefactor  = 2.07479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.765901
  Prefactor  = 1.22805
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.249     FROM HESSE     STATUS=OK           671 CALLS     5110 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5473        5.9766        .25594E-03   -1.5389    
   2  Prefactor     .10000E-03    17.161        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.619        60.567        .60727E-04   -1.4386    
   4  Prefactor     1.5668        5.0598        .27161E-03   -1.5458    
   5  Prefactor     41.839        35.788        .61986E-04   -1.4413    
   6  Prefactor     2.9020        2.7164        .10889E-03   -1.5367    
   7  Prefactor     .10000E-03    12.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .27021        .61159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .58665        2.7362        .21211E-02   -1.5555    
  10  norm          13.257        10.883        .11003E-03   -1.4980    
  11  Prefactor     .10000E-03    2.8127        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.277        .38349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3031        .10524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.543        24.935        .79238E-04   -1.4697    
  15  norm          .10000E-03    9.0982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.469        30.754        .66362E-04   -1.4499    
  17  Prefactor     1.9664        7.7048        .14788E-02   -1.5428    
  18  Prefactor     .10000E-03    20.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6824        9.3158        .13604E-03   -1.5119    
  20  norm          1.6496        10.458        .32869E-03   -1.5451    
  21  Prefactor     1.8325        5.3598        .12928E-02   -1.5437    
  22  Prefactor     .10000E-03    9.5963        .22468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1855        41.218        .22674E-03   -1.5351    
  24  norm          8.8465        3.7809        .86915E-04   -1.5113    
  25  Prefactor     11.155        6.2851        .11993E-03   -1.5040    
  26  norm          .10000E-03    3.6792        .13328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5588        20.105        .12962E-03   -1.5090    
  28  Prefactor     2.0748        2.7565        .13308E-03   -1.5420    
  29  Prefactor     .10000E-03    1.6480        .89430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    19.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .76590        .23071        .26099E-03   -1.0135    
  32  Prefactor     1.2281        .25341        .25566E-03   -.85472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09123e-08
Minuit parameter uncertainties:
  1  5.97796
  2  0.000447033
  3  60.6527
  4  5.06121
  5  35.8064
  6  2.71656
  7  0.000104865
  8  1.93121e-06
  9  2.53391
  10  10.8847
  11  1.91431e-06
  12  0.000236634
  13  3.46473e-06
  14  24.9456
  15  9.08417e-06
  16  30.767
  17  7.70868
  18  8.08821e-05
  19  9.3174
  20  8.30885
  21  5.36119
  22  2.97822e-05
  23  22.9366
  24  3.78104
  25  6.28552
  26  1.07441e-05
  27  20.1188
  28  2.75663
  29  7.82271e-07
  30  4.75107e-05
  31  0.231008
  32  0.253663
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  9.084e-06  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.228e+00  2.537e-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:  7.659e-01  2.310e-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: 3.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426369/likelihoodResults_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5096.24934929
delta logL = -0.000520397549735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5096.24882888
delta logL = 1.2945747585e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8103       1.0000          .0000       5.0000    
     3 'Normalizat'    .76590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2281       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5096.249     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    494.58        .18142E-01** at limit **
   2  alpha         1.9725        2.8431        .16624        .22705E-07
   3  Normalizat    .76590        .31954E-01    .26099E-03    .64381E-04
   4  Prefactor     1.2281        .38887E-01    .25566E-03    .48693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97248
  Normalizat = 0.765899
  Prefactor  = 1.22806
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.249     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.752        .22794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9725        3.4281        .66495E-02   -.21261    
   3  Normalizat    .76590        .20351        .10440E-04   -1.0135    
   4  Prefactor     1.2281        .24766        .10226E-04   -.85472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07547e-11
Minuit parameter uncertainties:
  1  2.23295e-05
  2  710.364
  3  0.203712
  4  0.247896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426369': 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) = 5096.24882807
delta logL = 8.23724803922e-07

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  2.233e-05  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.972e+00  7.104e+02  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.228e+00  2.479e-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:  7.659e-01  2.037e-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/426369/cmap_HighResolution_395107201_395366401_4FGL_J0941.7+4125_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-08-31 22:26:30.413931', job_id='426369', GAL2='1.23', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630473990.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='8.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='601' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:26:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 426369: <4FGL_J0941.7+4125_daily_bin601> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin601> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:10:30 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:10:31 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:10:31 2021
Terminated at Tue Aug 31 22:26:31 2021
Results reported at Tue Aug 31 22:26:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin601 145.45 41.4216 395107201 395366401 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 :                                   929.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

