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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1026
RA = 145.494, Dec = 27.4136
tmin = 505267201, tmax = 505526401
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='437787', job_status='RUN', time_executed='2021-08-31 22:48:48.725803', time_epoch_executed='1630475328.73' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437787/ft1_4FGL_J0941.9+2724_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437787/ft1_4FGL_J0941.9+2724_daily_bin1026.fits outfile=/scratch/kocevski/437787/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1026.fits ra=145.494 dec=27.4136 rad=12.0 tmin=505267201.0 tmax=505526401.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.61
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.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/437787/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1026.fits evtable="EVENTS" outfile="/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/437787/ltcube_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.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/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits
.....................!
real 12.44
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/437787/ltcube_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits outfile=/scratch/kocevski/437787/expmap_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.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/437787/ltcube_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits
.....................!
real 192.19
user 187.04
sys 4.71

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

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits outfile=/scratch/kocevski/437787/cmap_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.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.494 yref=27.4136 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits outfile=/scratch/kocevski/437787/cmap_HighResolution_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.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.494 yref=27.4136 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/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437787/Model_4FGL_J0941.9+2724_daily_bin1026.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/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits.....................!
real 52.58
user 50.93
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits', '/scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits', expMap='/scratch/kocevski/437787/expmap_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits', expCube='/scratch/kocevski/437787/ltcube_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437787/Model_4FGL_J0941.9+2724_daily_bin1026.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437787/ft1_filtered_4FGL_J0941.9+2724_daily_bin1026.fits
Spacecraft file(s): /scratch/kocevski/437787/ft2_4FGL_J0941.9+2724_daily_bin1026.fits
Exposure map: /scratch/kocevski/437787/expmap_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits
Exposure cube: /scratch/kocevski/437787/ltcube_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437787/Model_4FGL_J0941.9+2724_daily_bin1026.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) = 5838.22025842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    45.480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12168E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.492       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29733       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5838.177     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2056 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7209        9.5972        .48677E-07   -.28985E-05
   2  Prefactor     .10000E-03    12.439        .90433E-06** at limit **
   3  norm          45.490        40.523        .11576E-05    .21649E-03
   4  Prefactor     .10004E-03    2.2858       -.97449E-06** at limit **
   5  norm          .10000E-03    .66241       -.22346E-07** at limit **
   6  Prefactor     .10000E-03    43.711       -.90953E-06** at limit **
   7  Prefactor     1.6626        4.0439        .10870E-05    .49935E-04
   8  Prefactor     .10000E-03    7.6250        .24706E-06** at limit **
   9  Prefactor     67.965        55.652       -.95896E-08    .36371E-04
  10  Prefactor     15.495        35.425        .98753E-06    .38597E-04
  11  Prefactor     11.342        9.1932        .17000E-05   -.12262E-04
  12  Prefactor     .10000E-03    7.0812       -.17113E-06** at limit **
  13  Prefactor     .10000E-03    .86641       -.57339E-07** at limit **
  14  norm          8.6245        8.4846        .14748E-05   -.11200E-04
  15  Prefactor     .94925        4.3545        .22119E-05    .30146E-03
  16  Prefactor     .10001E-03    28.279        .14898E-05** at limit **
  17  Prefactor     .33567        3.7306       -.12262E-05    .36795E-03
  18  Prefactor     .10000E-03    17.068       -.11818E-05** at limit **
  19  Normalizat    1.0961        .17996       -.97446E-06    .12009E-03
  20  Prefactor     1.0516        .17920       -.81057E-06    .70470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.7209
  Prefactor  = 0.000100002
  norm       = 45.4905
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.66263
  Prefactor  = 0.0001
  Prefactor  = 67.9651
  Prefactor  = 15.495
  Prefactor  = 11.342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.62447
  Prefactor  = 0.949247
  Prefactor  = 0.000100005
  Prefactor  = 0.335672
  Prefactor  = 0.000100003
  Normalizat = 1.09608
  Prefactor  = 1.05164
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.177     FROM HESSE     STATUS=OK           293 CALLS     2349 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7209        9.5972        .12853E-03   -1.5084    
   2  Prefactor     .10000E-03    12.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          45.490        40.639        .59452E-04   -1.4358    
   4  Prefactor     .10004E-03    9.3445        .20393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .67323        .60683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6626        4.0281        .22558E-03   -1.5450    
   8  Prefactor     .10000E-03    7.6343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.965        55.657        .24344E-03   -1.4057    
  10  Prefactor     15.495        35.427        .10176E-03   -1.4920    
  11  Prefactor     11.342        9.2003        .59479E-03   -1.5034    
  12  Prefactor     .10000E-03    7.1625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .87448        .69434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6245        8.4772        .68249E-03   -1.5121    
  15  Prefactor     .94925        4.7831        .26342E-03   -1.5513    
  16  Prefactor     .10001E-03    28.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33567        15.311        .23608E-02   -1.5592    
  18  Prefactor     .10000E-03    17.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0961        .21354        .24378E-03   -.89878    
  20  Prefactor     1.0516        .21357        .25342E-03   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45556e-09
Minuit parameter uncertainties:
  1  9.59868
  2  0.000284026
  3  40.6633
  4  0.00115483
  5  4.12663e-07
  6  0.000696325
  7  4.02873
  8  7.42502e-05
  9  55.6994
  10  35.4753
  11  9.20145
  12  3.13326e-05
  13  2.05142e-06
  14  8.47837
  15  4.26194
  16  0.000789846
  17  4.53461
  18  0.000483981
  19  0.213708
  20  0.213738
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  7.425e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.052e+00  2.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.096e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437787/likelihoodResults_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.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) = 5838.17802125
delta logL = -0.000621449407845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5838.1773998
delta logL = 4.16639522882e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4265       1.0000          .0000       10.000    
     3 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5838.177     FROM MIGRAD    STATUS=FAILED        90 CALLS      235 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    13.102        .18142E-02** at limit **
   2  Index         2.2335        8.4652        .50000        .35407E-05
   3  Normalizat    1.0961        .20698        .24378E-03   -.33577E-05
   4  Prefactor     1.0516        .21222        .25342E-03   -.21982E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5838.177     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      346 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10122E-03    13.102        .25039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2335        8.4652        .92082E-03   -.58631    
   3  Normalizat    1.0961        .20698        .62323E-04   -.89878    
   4  Prefactor     1.0516        .21222        .85138E-04   -.91027    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5838.177     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      382 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8204        .36285E-03** at limit **
   2  Index         2.0720        8.3141        .50000       -.12103E-06
   3  Normalizat    1.0961        .20718        .97514E-05    .56661E-04
   4  Prefactor     1.0516        .21243        .10137E-04    .28487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07195
  Normalizat = 1.09608
  Prefactor  = 1.05164
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.177     FROM HESSE     STATUS=OK            29 CALLS      411 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0658        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0720        5.0506        .50000       -.62563    
   3  Normalizat    1.0961        .20690        .19503E-05   -.89878    
   4  Prefactor     1.0516        .21216        .20273E-05   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42632e-11
Minuit parameter uncertainties:
  1  3.70913e-05
  2  262.215
  3  0.207056
  4  0.212325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437787': 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) = 5838.17739948
delta logL = 3.28142050421e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  3.709e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.072e+00  2.622e+02  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.052e+00  2.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.096e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.494 27.414

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/437787/cmap_HighResolution_505267201_505526401_4FGL_J0941.9+2724_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-08-31 22:58:44.770078', job_id='437787', GAL2='1.05', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630475924.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1026' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:58:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 437787: <4FGL_J0941.9+2724_daily_bin1026> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1026> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:45:52 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:45:54 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:45:54 2021
Terminated at Tue Aug 31 22:58:45 2021
Results reported at Tue Aug 31 22:58:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1026 145.494 27.4136 505267201 505526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.00 sec.
    Max Memory :                                 1148 MB
    Average Memory :                             322.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

