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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1350
RA = 145.494, Dec = 27.4136
tmin = 589248001, tmax = 589507201
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='439369', job_status='RUN', time_executed='2021-08-31 22:51:02.863303', time_epoch_executed='1630475462.86' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439369

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439369/ft1_4FGL_J0941.9+2724_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439369/ft1_4FGL_J0941.9+2724_daily_bin1350.fits outfile=/scratch/kocevski/439369/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1350.fits ra=145.494 dec=27.4136 rad=12.0 tmin=589248001.0 tmax=589507201.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.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.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/439369/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1350.fits evtable="EVENTS" outfile="/scratch/kocevski/439369/ft1_filtered_4FGL_J0941.9+2724_daily_bin1350.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.69
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439369/ft1_filtered_4FGL_J0941.9+2724_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/439369/ltcube_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.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/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits
.....................!
real 13.13
user 12.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439369/ft1_filtered_4FGL_J0941.9+2724_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/439369/ltcube_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.fits outfile=/scratch/kocevski/439369/expmap_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.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/439369/ltcube_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.fits
.....................!
real 193.42
user 188.06
sys 4.10

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/439369/ft1_filtered_4FGL_J0941.9+2724_daily_bin1350.fits scfile=/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits outfile=/scratch/kocevski/439369/cmap_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439369/ft1_filtered_4FGL_J0941.9+2724_daily_bin1350.fits scfile=/scratch/kocevski/439369/ft2_4FGL_J0941.9+2724_daily_bin1350.fits outfile=/scratch/kocevski/439369/cmap_HighResolution_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26953E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7972       1.0000         .10000E-03   10000.    
     6 'Prefactor '    178.56       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5620       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    189.59       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    78.912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14026E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    320.24       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .43243       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0324       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=   916.7639     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     2347 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6622        13.017       -.14827E-06    .37593E-04
   2  Prefactor     .10000E-03    42.597       -.81721E-06** at limit **
   3  norm          .10000E-03    17.359       -.58940E-07** at limit **
   4  Prefactor     .10000E-03    39.613       -.12419E-04** at limit **
   5  norm          4.7956        4.8363        .12047E-06    .19258E-03
   6  Prefactor     178.73        139.11       -.60770E-06    .15297E-05
   7  Prefactor     2.5746        15.146       -.14273E-05    .16495E-03
   8  Prefactor     .10000E-03    54.957       -.13764E-06** at limit **
   9  Prefactor     189.39        265.87       -.49231E-06    .32871E-05
  10  Prefactor     25.771        355.75       -.15954E-05    .28531E-06
  11  Prefactor     .10000E-03    12.587        .21937E-07** at limit **
  12  Prefactor     .10001E-03    69.190        .27025E-06** at limit **
  13  Prefactor     .10000E-03    6.7681        .82423E-08** at limit **
  14  norm          .10000E-03    49.893       -.31879E-07** at limit **
  15  Prefactor     79.113        240.51       -.29604E-06   -.15118E-04
  16  Prefactor     .10000E-03    6183.2        .45791E-05** at limit **
  17  Prefactor     319.54        625.90       -.86700E-06   -.15720E-04
  18  Prefactor    10000.0        7092.3       -.13448E-05** at limit **
  19  Normalizat    .43158        .41433        .51830E-05    .13388E-03
  20  Prefactor     1.0328        .38814       -.34008E-06    .45492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.6622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.79562
  Prefactor  = 178.731
  Prefactor  = 2.57455
  Prefactor  = 0.0001
  Prefactor  = 189.387
  Prefactor  = 25.7711
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.1132
  Prefactor  = 0.000100001
  Prefactor  = 319.539
  Prefactor  = 10000
  Normalizat = 0.431579
  Prefactor  = 1.03284
 **********
 **   18 **HESSE 
 **********

 FCN=   916.7639     FROM HESSE     STATUS=OK           285 CALLS     2632 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6622        13.021        .14823E-03   -1.5192    
   2  Prefactor     .10000E-03    43.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.357        .12326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.606        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7956        4.8204        .61804E-04   -1.5270    
   6  Prefactor     178.73        138.89        .15103E-03   -1.3026    
   7  Prefactor     2.5746        15.049        .19480E-03   -1.5387    
   8  Prefactor     .10000E-03    54.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     189.39        265.88        .14665E-03   -1.2947    
  10  Prefactor     25.771        359.17        .78820E-04   -1.4692    
  11  Prefactor     .10000E-03    12.586        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    68.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7677        .76945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    49.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     79.113        240.60        .45208E-04   -1.3927    
  16  Prefactor     .10000E-03    6184.0        .18186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     319.54        628.26        .11360E-03   -1.2114    
  18  Prefactor    10000.0        7091.8        .20691E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .43158        .46326        .30602E-03   -1.1570    
  20  Prefactor     1.0328        .44033        .20441E-03   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58919e-10
Minuit parameter uncertainties:
  1  13.0266
  2  0.000198981
  3  5.06539e-05
  4  0.00035541
  5  4.82082
  6  139.141
  7  12.4533
  8  1.04442e-05
  9  267.599
  10  193.844
  11  4.72914e-05
  12  0.00197247
  13  4.19472e-05
  14  5.03071e-05
  15  243.665
  16  0.00249243
  17  642.449
  18  0.00373091
  19  0.467472
  20  0.441881
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.044e-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.033e+00  4.419e-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:  4.316e-01  4.675e-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.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439369/likelihoodResults_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.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) = 916.764013785
delta logL = -8.63890522851e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 916.763928206
delta logL = -8.10604660728e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8323       1.0000          .0000       10.000    
     3 'Normalizat'    .43157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   916.7639     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11110E-03    42.203        .16730E-01** at limit **
   2  Index         2.6663        8.5642        .50000        .97141E-05
   3  Normalizat    .43157        .96518E-02    .30599E-03   -.54615E-04
   4  Prefactor     1.0328        .97920E-02    .20441E-03   -.86379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111102
  Index      = 2.6663
  Normalizat = 0.431569
  Prefactor  = 1.03284
 **********
 **   18 **HESSE 
 **********

 FCN=   916.7639     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11110E-03    360.45        .18469E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6663        5.3246        .50000       -.48560    
   3  Normalizat    .43157        .28569E-01    .12240E-04   -1.1570    
   4  Prefactor     1.0328        .28984E-01    .40882E-04   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2034e-08
Minuit parameter uncertainties:
  1  0.127291
  2  703.52
  3  0.0285698
  4  0.0289848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439369': 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) = 916.76392791
delta logL = -5.13684767611e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.111e-04  1.273e-01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.666e+00  7.035e+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.033e+00  2.898e-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:  4.316e-01  2.857e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/439369/cmap_HighResolution_589248001_589507201_4FGL_J0941.9+2724_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-02', job_status='DONE', photon_flux_upper_limit='2.72e-07', time_completed='2021-08-31 22:57:11.319458', job_id='439369', GAL2='1.03', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1630475831.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1350' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 439369: <4FGL_J0941.9+2724_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1350 145.494 27.4136 589248001 589507201 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 :                                   359.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   386 sec.
    Turnaround time :                            389 sec.

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

