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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1324
RA = 145.494, Dec = 27.4136
tmin = 582508801, tmax = 582768001
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='439327', job_status='RUN', time_executed='2021-08-31 22:50:57.507961', time_epoch_executed='1630475457.51' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439327

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439327/ft1_4FGL_J0941.9+2724_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439327/ft2_4FGL_J0941.9+2724_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439327/ft1_4FGL_J0941.9+2724_daily_bin1324.fits outfile=/scratch/kocevski/439327/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1324.fits ra=145.494 dec=27.4136 rad=12.0 tmin=582508801.0 tmax=582768001.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.74
user 3.41
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439327/ft1_filtered_4FGL_J0941.9+2724_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/439327/ft2_4FGL_J0941.9+2724_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/439327/ltcube_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.fits outfile=/scratch/kocevski/439327/expmap_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.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/439327/ltcube_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.fits
.....................!
real 193.92
user 187.56
sys 4.76

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/439327/ft1_filtered_4FGL_J0941.9+2724_daily_bin1324.fits scfile=/scratch/kocevski/439327/ft2_4FGL_J0941.9+2724_daily_bin1324.fits outfile=/scratch/kocevski/439327/cmap_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439327/ft1_filtered_4FGL_J0941.9+2724_daily_bin1324.fits scfile=/scratch/kocevski/439327/ft2_4FGL_J0941.9+2724_daily_bin1324.fits outfile=/scratch/kocevski/439327/cmap_HighResolution_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.704       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6462       1.0000         .10000E-03   10000.    
     5 'norm      '    .96275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48868       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4608       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1407       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0197       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=   5970.584     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2068 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2891       -.61470E-07** at limit **
   2  Prefactor     19.700        15.660       -.19894E-05    .87184E-04
   3  norm          .10000E-03    8.6402        .86087E-06** at limit **
   4  Prefactor     3.6458        3.1855       -.60272E-06    .72932E-04
   5  norm          .96289        1.1022       -.35162E-07    .28842E-03
   6  Prefactor     .10000E-03    18.055       -.12909E-04** at limit **
   7  Prefactor     .10000E-03    1.5356        .44159E-06** at limit **
   8  Prefactor     7.1644        45.448       -.12464E-03    .27508E-04
   9  Prefactor     .10000E-03    39.034        .11138E-04** at limit **
  10  Prefactor     65.415        54.700       -.36525E-04    .59972E-04
  11  Prefactor     1.6749        15.347        .60423E-05    .40703E-04
  12  Prefactor     .10000E-03    11.444       -.50623E-05** at limit **
  13  Prefactor     .48859        2.5053       -.99339E-06   -.11062E-02
  14  norm          4.1857        7.2043       -.22756E-05   -.18030E-03
  15  Prefactor     6.4596        4.1645       -.69741E-06    .24305E-03
  16  Prefactor     .10000E-03    14.405        .13943E-04** at limit **
  17  Prefactor     5.0873        4.8567       -.47864E-06   -.57629E-04
  18  Prefactor     .10000E-03    29.663       -.38580E-06** at limit **
  19  Normalizat    1.1411        .19022        .12877E-04   -.24941E-03
  20  Prefactor     1.0194        .17903        .23182E-05    .58256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6998
  norm       = 0.0001
  Prefactor  = 3.64577
  norm       = 0.962886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.16438
  Prefactor  = 0.0001
  Prefactor  = 65.4152
  Prefactor  = 1.67487
  Prefactor  = 0.0001
  Prefactor  = 0.488594
  norm       = 4.18566
  Prefactor  = 6.45962
  Prefactor  = 0.0001
  Prefactor  = 5.08728
  Prefactor  = 0.0001
  Normalizat = 1.14111
  Prefactor  = 1.01935
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.584     FROM HESSE     STATUS=OK           287 CALLS     2355 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2934        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.700        15.662        .90231E-04   -1.4820    
   3  norm          .10000E-03    8.6439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6458        3.1872        .12486E-03   -1.5326    
   5  norm          .96289        1.0794        .84442E-04   -1.5512    
   6  Prefactor     .10000E-03    18.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5472        .93471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1644        45.272        .14929E-03   -1.5173    
   9  Prefactor     .10000E-03    39.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     65.415        54.755        .49607E-04   -1.4089    
  11  Prefactor     1.6749        14.897        .32381E-03   -1.5449    
  12  Prefactor     .10000E-03    11.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48859        2.4332        .22796E-03   -1.5568    
  14  norm          4.1857        7.1655        .19700E-03   -1.5299    
  15  Prefactor     6.4596        4.1676        .11909E-03   -1.5200    
  16  Prefactor     .10000E-03    14.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0873        4.8524        .15724E-03   -1.5257    
  18  Prefactor     .10000E-03    29.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1411        .22115        .24526E-03   -.88443    
  20  Prefactor     1.0194        .20899        .25949E-03   -.92087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62453e-09
Minuit parameter uncertainties:
  1  1.85039e-05
  2  15.6651
  3  1.5458e-05
  4  3.18736
  5  1.0794
  6  1.10346e-05
  7  4.23894e-05
  8  36.0591
  9  6.28275e-05
  10  54.7975
  11  9.99301
  12  0.00014603
  13  2.18062
  14  7.16698
  15  4.16776
  16  1.67243e-05
  17  4.85279
  18  0.000113697
  19  0.221331
  20  0.209152
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  7.164e+00  3.606e+01  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.019e+00  2.092e-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.141e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439327/likelihoodResults_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.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) = 5970.11795953
delta logL = 0.466145714247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5970.10031369
delta logL = 0.483791552163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12389       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7812       1.0000          .0000       10.000    
     3 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       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=   5970.100     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      337 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12057        2.1128        .61485E-02    .25842E-02
   2  Index         5.7951        3.0976        .12589        .13446E-03
   3  Normalizat    1.0759        .38469E-01    .56914E-01   -.11268E-04
   4  Prefactor     1.0652        .38939E-01    .57615E-01   -.29273E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.120569
  Index      = 5.79513
  Normalizat = 1.07585
  Prefactor  = 1.06524
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.100     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      372 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12057        6.5896        .28223E-03   -1.5639    
   2  Index         5.7951        7.8450        .65857E-02    .15970    
   3  Normalizat    1.0759        .14867        .25168E-03   -.90531    
   4  Prefactor     1.0652        .14700        .25477E-03   -.90585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.76939e-08
Minuit parameter uncertainties:
  1  1.78216
  2  7.52832
  3  0.148725
  4  0.147056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439327': 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): 102
logL (Free Index) = 5970.1003066
delta logL = 0.4837986438

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.206e-01  1.782e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  5.795e+00  7.528e+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:  1.065e+00  1.471e-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.076e+00  1.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 145.494 27.414
Photon Index (Free Index): 5.80 +/- 7.53
Photon Flux (Free Index): 6.19e-08 +/- 6.24e-08
Energy Flux (Free Index): 7.79e-06 +/- 9.09e-06

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/439327/cmap_HighResolution_582508801_582768001_4FGL_J0941.9+2724_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', comment='SUCCESS', energy_flux2='7.79e-06', dlogl='4.84e-01', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-08-31 23:00:49.499951', photon_index_error2='7.53', photon_index2='5.80', ts='0.04', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='9.09e-06', EG='1.14', time_epoch_completed='1630476049.5', return_code='0', job_id='439327', GAL2='1.07', EG2='1.08', return_code2='102', photon_flux_error2='6.24e-08', ts2='1.10', photon_index='2.43' WHERE bin_id='1324' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 439327: <4FGL_J0941.9+2724_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1324 145.494 27.4136 582508801 582768001 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 :                                   584.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

