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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin14
RA = 145.494, Dec = 27.4136
tmin = 242956801, tmax = 243216001
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='432596', job_status='RUN', time_executed='2021-08-31 22:33:41.339499', time_epoch_executed='1630474421.34' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432596/ft1_4FGL_J0941.9+2724_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432596/ft1_4FGL_J0941.9+2724_daily_bin14.fits outfile=/scratch/kocevski/432596/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin14.fits ra=145.494 dec=27.4136 rad=12.0 tmin=242956801.0 tmax=243216001.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 2.45
user 1.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/432596/ltcube_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.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/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits
.....................!
real 13.44
user 12.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/432596/ltcube_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits outfile=/scratch/kocevski/432596/expmap_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.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/432596/ltcube_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits
.....................!
real 197.54
user 186.59
sys 4.11

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/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits scfile=/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits outfile=/scratch/kocevski/432596/cmap_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits scfile=/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits outfile=/scratch/kocevski/432596/cmap_HighResolution_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits', '/scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits', expMap='/scratch/kocevski/432596/expmap_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits', expCube='/scratch/kocevski/432596/ltcube_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432596/Model_4FGL_J0941.9+2724_daily_bin14.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/432596/ft1_filtered_4FGL_J0941.9+2724_daily_bin14.fits
Spacecraft file(s): /scratch/kocevski/432596/ft2_4FGL_J0941.9+2724_daily_bin14.fits
Exposure map: /scratch/kocevski/432596/expmap_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits
Exposure cube: /scratch/kocevski/432596/ltcube_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432596/Model_4FGL_J0941.9+2724_daily_bin14.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9184.37177633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    66.507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12831E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3555       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.403       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84927       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2856       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97205       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=   9184.348     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2068 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2282        8.6638        .27620E-06   -.50537E-03
   2  Prefactor     .10000E-03    12.778        .25992E-07** at limit **
   3  norm          66.506        35.907       -.10557E-05   -.43878E-04
   4  Prefactor     .10000E-03    2.2609       -.10694E-06** at limit **
   5  norm          .10000E-03    .33601       -.31538E-07** at limit **
   6  Prefactor     62.600        44.632        .12114E-05    .31539E-04
   7  Prefactor     4.3560        3.2210        .94189E-08   -.87398E-04
   8  Prefactor     .10000E-03    5.5013        .17356E-06** at limit **
   9  Prefactor     .10000E-03    43.267        .82883E-05** at limit **
  10  Prefactor     61.931        34.738       -.35466E-06   -.21549E-04
  11  Prefactor     .10000E-03    3.8882        .66500E-07** at limit **
  12  Prefactor     .10000E-03    7.1961       -.23067E-06** at limit **
  13  Prefactor     .10000E-03    .41580        .34667E-07** at limit **
  14  norm          24.402        8.7368       -.12341E-07   -.10789E-04
  15  Prefactor     .85094        3.2611       -.17175E-06   -.34108E-03
  16  Prefactor     .10000E-03    20.914        .87050E-07** at limit **
  17  Prefactor     6.1953        3.7187        .33872E-06   -.20188E-02
  18  Prefactor     .10000E-03    45.828       -.83301E-05** at limit **
  19  Normalizat    1.2856        .15336        .19789E-06    .25685E-04
  20  Prefactor     .97209        .15395       -.11441E-06    .27048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22816
  Prefactor  = 0.0001
  norm       = 66.5058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.6002
  Prefactor  = 4.35595
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 61.9314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.4023
  Prefactor  = 0.85094
  Prefactor  = 0.0001
  Prefactor  = 6.19532
  Prefactor  = 0.000100001
  Normalizat = 1.28559
  Prefactor  = 0.972094
 **********
 **   18 **HESSE 
 **********

 FCN=   9184.348     FROM HESSE     STATUS=OK           289 CALLS     2357 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2282        9.2087        .80432E-03   -1.5209    
   2  Prefactor     .10000E-03    12.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          66.506        35.928        .49214E-04   -1.4075    
   4  Prefactor     .10000E-03    4.9108        .27699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .33679        .54235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.600        44.619        .50717E-04   -1.4124    
   7  Prefactor     4.3560        3.2264        .14076E-03   -1.5291    
   8  Prefactor     .10000E-03    5.5058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.931        34.756        .50988E-04   -1.4132    
  11  Prefactor     .10000E-03    3.9770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .41756        .60331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.402        8.7350        .81090E-04   -1.4720    
  15  Prefactor     .85094        5.7661        .26843E-02   -1.5523    
  16  Prefactor     .10000E-03    20.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1953        5.5727        .80635E-03   -1.5210    
  18  Prefactor     .10000E-03    46.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2856        .17808        .23920E-03   -.83998    
  20  Prefactor     .97209        .17962        .27795E-03   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77659e-08
Minuit parameter uncertainties:
  1  9.21083
  2  1.26807e-06
  3  35.9398
  4  1.61684e-05
  5  2.11409e-07
  6  44.6424
  7  3.22655
  8  2.98245e-06
  9  0.000471767
  10  34.7678
  11  1.37761e-06
  12  8.08182e-06
  13  7.45552e-08
  14  8.7355
  15  4.43052
  16  2.69355e-06
  17  5.57321
  18  0.00051677
  19  0.178161
  20  0.179733
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.982e-06  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:  9.721e-01  1.797e-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.286e+00  1.782e-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: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432596/likelihoodResults_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.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) = 9184.34913089
delta logL = -0.000862657889229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9184.34826837
delta logL = -1.33079083753e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4170       1.0000          .0000       10.000    
     3 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97201       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=   9184.348     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.429        .18142E-01** at limit **
   2  Index         1.9925        6.0885        .50000        .27785E-07
   3  Normalizat    1.2856        .61168E-02    .23920E-03    .16526E-03
   4  Prefactor     .97209        .63157E-02    .27795E-03    .14520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99246
  Normalizat = 1.28559
  Prefactor  = 0.972094
 **********
 **   18 **HESSE 
 **********

 FCN=   9184.348     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.06        .23665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9925        5.6303        .50000       -.64539    
   3  Normalizat    1.2856        .17629E-01    .47841E-04   -.83998    
   4  Prefactor     .97209        .18203E-01    .11118E-04   -.93666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64895e-11
Minuit parameter uncertainties:
  1  6.85123e-06
  2  633.313
  3  0.0176296
  4  0.0182028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432596': 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) = 9184.34826696
delta logL = 1.27060775412e-06

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  6.851e-06  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.992e+00  6.333e+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:  9.721e-01  1.820e-02  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.286e+00  1.763e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/432596/cmap_HighResolution_242956801_243216001_4FGL_J0941.9+2724_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-08-31 22:46:06.611991', job_id='432596', GAL2='0.97', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630475166.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='14' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 432596: <4FGL_J0941.9+2724_daily_bin14> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin14 145.494 27.4136 242956801 243216001 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

