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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin95
RA = 145.494, Dec = 27.4136
tmin = 263952001, tmax = 264211201
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='432722', job_status='RUN', time_executed='2021-08-31 22:34:54.058081', time_epoch_executed='1630474494.06' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432722/ft1_4FGL_J0941.9+2724_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432722/ft2_4FGL_J0941.9+2724_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432722/ft1_4FGL_J0941.9+2724_daily_bin95.fits outfile=/scratch/kocevski/432722/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin95.fits ra=145.494 dec=27.4136 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.70
user 1.50
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432722/ft1_filtered_4FGL_J0941.9+2724_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/432722/ft2_4FGL_J0941.9+2724_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/432722/ltcube_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.fits outfile=/scratch/kocevski/432722/expmap_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.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/432722/ltcube_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.fits
.....................!
real 190.85
user 185.48
sys 5.06

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/432722/ft1_filtered_4FGL_J0941.9+2724_daily_bin95.fits scfile=/scratch/kocevski/432722/ft2_4FGL_J0941.9+2724_daily_bin95.fits outfile=/scratch/kocevski/432722/cmap_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.309       1.0000         .10000E-03   10000.    
     3 'norm      '    17.928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0223       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3320       1.0000         .10000E-03   10000.    
    14 'norm      '    28.371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.207       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0335       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0392       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=   5728.863     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1999 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7808        13.856        .43848E-05    .21818E-04
   2  Prefactor     24.302        19.700       -.24638E-05    .14976E-04
   3  norm          17.890        36.347       -.61129E-04   -.18192E-04
   4  Prefactor     .10000E-03    1.3484        .11688E-06** at limit **
   5  norm          2.0221        1.7450       -.22058E-07    .14415E-04
   6  Prefactor     .10000E-03    42.527        .41930E-04** at limit **
   7  Prefactor     .10000E-03    1.4664       -.28336E-06** at limit **
   8  Prefactor     .10000E-03    30.865       -.11456E-04** at limit **
   9  Prefactor     .10000E-03    51.725       -.37820E-04** at limit **
  10  Prefactor     62.419        34.094       -.22419E-05    .33591E-04
  11  Prefactor     .10000E-03    2.1238       -.24811E-06** at limit **
  12  Prefactor     19.139        12.842       -.80197E-06   -.94401E-05
  13  Prefactor     4.3316        2.6284       -.91300E-07   -.47641E-04
  14  norm          28.370        9.8279       -.69522E-06    .57755E-04
  15  Prefactor     .10000E-03    3.5707        .66220E-06** at limit **
  16  Prefactor     25.908        36.312       -.48298E-05    .57007E-05
  17  Prefactor     7.1840        4.9323       -.73233E-06   -.19217E-03
  18  Prefactor     10.206        26.957       -.23503E-05   -.56754E-05
  19  Normalizat    1.0338        .17923        .15396E-05    .15558E-03
  20  Prefactor     1.0388        .18360        .41710E-05   -.41219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78083
  Prefactor  = 24.3017
  norm       = 17.8904
  Prefactor  = 0.0001
  norm       = 2.02207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.4185
  Prefactor  = 0.0001
  Prefactor  = 19.1386
  Prefactor  = 4.33163
  norm       = 28.3699
  Prefactor  = 0.0001
  Prefactor  = 25.9079
  Prefactor  = 7.18401
  Prefactor  = 10.2062
  Normalizat = 1.03385
  Prefactor  = 1.03882
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.863     FROM HESSE     STATUS=OK           293 CALLS     2292 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7808        13.845        .14378E-03   -1.5150    
   2  Prefactor     24.302        19.765        .81246E-04   -1.4722    
   3  norm          17.890        36.409        .94591E-04   -1.4862    
   4  Prefactor     .10000E-03    1.3541        .85819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0221        1.7448        .89873E-04   -1.5424    
   6  Prefactor     .10000E-03    42.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4873        .89445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.419        34.100        .50789E-04   -1.4126    
  11  Prefactor     .10000E-03    2.1332        .10771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.139        12.858        .91545E-04   -1.4833    
  13  Prefactor     4.3316        2.6292        .91333E-04   -1.5292    
  14  norm          28.370        9.8322        .75216E-04   -1.4642    
  15  Prefactor     .10000E-03    3.6655        .27814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.908        36.318        .78698E-04   -1.4690    
  17  Prefactor     7.1840        4.9265        .13382E-03   -1.5172    
  18  Prefactor     10.206        26.956        .12542E-03   -1.5069    
  19  Normalizat    1.0338        .20764        .24567E-03   -.91905    
  20  Prefactor     1.0388        .21199        .25867E-03   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10334e-10
Minuit parameter uncertainties:
  1  13.8509
  2  19.7698
  3  36.4538
  4  5.22878e-06
  5  1.74485
  6  0.00014078
  7  1.21986e-06
  8  4.89979e-05
  9  5.8762e-05
  10  34.1105
  11  6.15379e-06
  12  12.8599
  13  2.6293
  14  9.83271
  15  8.76877e-06
  16  36.3487
  17  4.92675
  18  26.9882
  19  0.207805
  20  0.212166
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  4.900e-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.039e+00  2.122e-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.034e+00  2.078e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432722/likelihoodResults_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.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) = 5728.86330477
delta logL = -0.00015206464559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5728.86315427
delta logL = -1.56519399752e-06

Fit tolerance = 1e-08

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

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

 FCN=   5728.863     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      288 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12000E-03    .70575        .93692E-01** at limit **
   2  Index         2.5530        5.7069        .50000        .21874E-04
   3  Normalizat    1.0338        .10938E-02    .24567E-03   -.25901E-03
   4  Prefactor     1.0388        .11592E-02    .25867E-03   -.56021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000119997
  Index      = 2.55304
  Normalizat = 1.03385
  Prefactor  = 1.03882
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.863     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      319 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12000E-03    81.438        .51067E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5530        5.7915        .50000       -.51139    
   3  Normalizat    1.0338        .82303E-02    .49134E-04   -.91905    
   4  Prefactor     1.0388        .87225E-02    .51734E-04   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.94182e-08
Minuit parameter uncertainties:
  1  0.0808204
  2  284.678
  3  0.00823031
  4  0.00872248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432722': 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) = 5728.86315355
delta logL = -8.40231223265e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.200e-04  8.082e-02  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.553e+00  2.847e+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.039e+00  8.722e-03  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.034e+00  8.230e-03  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/432722/cmap_HighResolution_263952001_264211201_4FGL_J0941.9+2724_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-08-31 22:44:24.645343', job_id='432722', GAL2='1.04', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630475064.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-8.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='95' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 432722: <4FGL_J0941.9+2724_daily_bin95> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin95> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 22:30:32 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:30:34 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:30:34 2021
Terminated at Tue Aug 31 22:44:25 2021
Results reported at Tue Aug 31 22:44:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin95 145.494 27.4136 263952001 264211201 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 :                                   568.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

