/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7468
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1473
RA = 145.494, Dec = 27.4136
tmin = 621129601, tmax = 621388801
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='439563', job_status='RUN', time_executed='2021-08-31 22:51:16.228802', time_epoch_executed='1630475476.23' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439563/ft1_4FGL_J0941.9+2724_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439563/ft1_4FGL_J0941.9+2724_daily_bin1473.fits outfile=/scratch/kocevski/439563/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1473.fits ra=145.494 dec=27.4136 rad=12.0 tmin=621129601.0 tmax=621388801.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.16
user 2.92
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits" evtable="EVENTS" scfile=/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits sctable="SC_DATA" outfile=/scratch/kocevski/439563/ltcube_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.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/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits
.....................!
real 12.43
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/439563/ltcube_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits outfile=/scratch/kocevski/439563/expmap_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.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/439563/ltcube_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits
.....................!
real 191.67
user 184.93
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 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/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits scfile=/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits outfile=/scratch/kocevski/439563/cmap_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits scfile=/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits outfile=/scratch/kocevski/439563/cmap_HighResolution_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439563/Model_4FGL_J0941.9+2724_daily_bin1473.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/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits.....................!
real 25.59
user 24.26
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits', '/scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits', expMap='/scratch/kocevski/439563/expmap_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits', expCube='/scratch/kocevski/439563/ltcube_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439563/Model_4FGL_J0941.9+2724_daily_bin1473.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/439563/ft1_filtered_4FGL_J0941.9+2724_daily_bin1473.fits
Spacecraft file(s): /scratch/kocevski/439563/ft2_4FGL_J0941.9+2724_daily_bin1473.fits
Exposure map: /scratch/kocevski/439563/expmap_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits
Exposure cube: /scratch/kocevski/439563/ltcube_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439563/Model_4FGL_J0941.9+2724_daily_bin1473.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) = 1621.95419106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    52.458       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6581       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.703       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23207E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.59       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7271       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .66360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1621.622     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     1580 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.960        15.323       -.79911E-06    .28787E-04
   2  Prefactor     .10001E-03    25.994       -.46175E-04** at limit **
   3  norm          55.535        55.427       -.87477E-05    .82256E-07
   4  Prefactor     3.6845        3.6426       -.64098E-06    .36450E-04
   5  norm          .10000E-03    .92487       -.22157E-07** at limit **
   6  Prefactor     18.614        60.002       -.19742E-04   -.34213E-04
   7  Prefactor     2.1671        5.7595       -.24355E-05   -.25484E-03
   8  Prefactor     .10000E-03    111.24        .54049E-04** at limit **
   9  Prefactor     50.246        131.29        .13988E-04    .64306E-04
  10  Prefactor     111.01        131.18        .10864E-04   -.18434E-04
  11  Prefactor     16.245        28.109       -.71740E-05    .41115E-04
  12  Prefactor     .10000E-03    17.427        .42525E-06** at limit **
  13  Prefactor     .10000E-03    7.3607        .25992E-05** at limit **
  14  norm          .10003E-03    22.024        .72264E-04** at limit **
  15  Prefactor     .10000E-03    5.6935       -.43799E-06** at limit **
  16  Prefactor     603.46        967.38       -.35864E-04   -.11849E-04
  17  Prefactor     .10000E-03    7.8799        .26682E-05** at limit **
  18  Prefactor     .10001E-03    318.81       -.25082E-04** at limit **
  19  Normalizat    1.1751        .38085       -.22437E-05   -.17413E-03
  20  Prefactor     .65746        .36682        .23143E-04   -.65144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9603
  Prefactor  = 0.000100005
  norm       = 55.5353
  Prefactor  = 3.68446
  norm       = 0.0001
  Prefactor  = 18.6143
  Prefactor  = 2.16712
  Prefactor  = 0.000100002
  Prefactor  = 50.2458
  Prefactor  = 111.009
  Prefactor  = 16.2448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 603.456
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.17511
  Prefactor  = 0.65746
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.622     FROM HESSE     STATUS=OK           331 CALLS     1911 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.960        15.305        .27817E-02   -1.4988    
   2  Prefactor     .10001E-03    26.185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          55.535        55.475        .13844E-02   -1.4216    
   4  Prefactor     3.6845        3.6515        .52800E-02   -1.5324    
   5  norm          .10000E-03    .92718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.614        57.945        .21495E-02   -1.4845    
   7  Prefactor     2.1671        5.7507        .71992E-02   -1.5414    
   8  Prefactor     .10000E-03    112.38        .91385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.246        130.81        .13201E-02   -1.4289    
  10  Prefactor     111.01        130.88        .92764E-03   -1.3597    
  11  Prefactor     16.245        28.672        .22756E-02   -1.4902    
  12  Prefactor     .10000E-03    17.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10003E-03    21.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7039        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     603.46        961.25        .15569E-02   -1.0744    
  17  Prefactor     .10000E-03    7.8957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    314.97        .46268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1751        .32816        .35343E-01   -.87376    
  20  Prefactor     .65746        .31733        .62257E-01   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92084e-09
Minuit parameter uncertainties:
  1  15.3097
  2  0.000744699
  3  55.527
  4  3.65176
  5  1.14122e-06
  6  58.1211
  7  5.75218
  8  0.00083628
  9  131.564
  10  131.222
  11  28.6958
  12  4.02786e-06
  13  4.09635e-05
  14  0.00158078
  15  2.80461e-06
  16  989.476
  17  6.01915e-05
  18  0.00270798
  19  0.328734
  20  0.318207
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  8.363e-04  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:  6.575e-01  3.182e-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.175e+00  3.287e-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: 2.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439563/likelihoodResults_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.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) = 1621.62245594
delta logL = -4.21299964728e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1621.62241385
delta logL = -3.38657173415e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3926       1.0000          .0000       10.000    
     3 'Normalizat'    1.1751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65747       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.

 FCN=   1621.622     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      242 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9156.7        .90712E-02** at limit **
   2  Index         2.4327        8.3534        .50000       -.33971E-05
   3  Normalizat    1.1751        .10492        .35533E-01    .61796E-04
   4  Prefactor     .65746        .10221        .62257E-01    .10205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.43271
  Normalizat = 1.17511
  Prefactor  = 0.65746
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.622     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    326.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4327        5.6031        .50000       -.53921    
   3  Normalizat    1.1751        .36286        .21754E-03   -.87375    
   4  Prefactor     .65746        .35377        .27542E-03   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26378e-11
Minuit parameter uncertainties:
  1  0.00121737
  2  7.4965
  3  0.36364
  4  0.354986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439563': 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) = 1621.62241381
delta logL = -1.33923094836e-10

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.217e-03  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  7.497e+00  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:  6.575e-01  3.550e-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.175e+00  3.636e-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/439563/cmap_HighResolution_621129601_621388801_4FGL_J0941.9+2724_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', job_status='DONE', photon_flux_upper_limit='2.18e-07', time_completed='2021-08-31 22:57:45.238521', job_id='439563', GAL2='0.66', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630475865.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.34e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1473' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 439563: <4FGL_J0941.9+2724_daily_bin1473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1473 145.494 27.4136 621129601 621388801 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 :                                   378.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   407 sec.
    Turnaround time :                            409 sec.

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

