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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1031
RA = 145.494, Dec = 27.4136
tmin = 506563201, tmax = 506822401
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='437795', job_status='RUN', time_executed='2021-08-31 22:47:52.091703', time_epoch_executed='1630475272.09' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437795/ft1_4FGL_J0941.9+2724_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437795/ft1_4FGL_J0941.9+2724_daily_bin1031.fits outfile=/scratch/kocevski/437795/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1031.fits ra=145.494 dec=27.4136 rad=12.0 tmin=506563201.0 tmax=506822401.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.59
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437795/ft1_filtered_4FGL_J0941.9+2724_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/437795/ltcube_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.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/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits
.....................!
real 11.95
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437795/ft1_filtered_4FGL_J0941.9+2724_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/437795/ltcube_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.fits outfile=/scratch/kocevski/437795/expmap_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.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/437795/ltcube_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.fits
.....................!
real 189.61
user 184.93
sys 4.22

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/437795/ft1_filtered_4FGL_J0941.9+2724_daily_bin1031.fits scfile=/scratch/kocevski/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits outfile=/scratch/kocevski/437795/cmap_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.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 1.08
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437795/ft1_filtered_4FGL_J0941.9+2724_daily_bin1031.fits scfile=/scratch/kocevski/437795/ft2_4FGL_J0941.9+2724_daily_bin1031.fits outfile=/scratch/kocevski/437795/cmap_HighResolution_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.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.75
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.012       1.0000         .10000E-03   10000.    
     3 'norm      '    21.204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5225       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6532       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57938E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    14.052       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2513       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80184       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=   5675.603     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2072 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.784        11.586       -.44963E-06   -.13982E-03
   2  Prefactor     19.012        15.701        .39856E-05    .62314E-03
   3  norm          21.211        22.744       -.28993E-05   -.22864E-03
   4  Prefactor     1.5226        2.5921        .58589E-07   -.15080E-03
   5  norm          2.8955        1.7365       -.75953E-07   -.48963E-04
   6  Prefactor     28.783        40.462        .44194E-05    .15338E-03
   7  Prefactor     .10000E-03    1.8357        .30685E-07** at limit **
   8  Prefactor     9.7314        21.275       -.93463E-07   -.97478E-06
   9  Prefactor     52.590        56.906       -.36458E-05   -.11735E-03
  10  Prefactor     .10000E-03    16.972        .51995E-07** at limit **
  11  Prefactor     4.6548        4.1628        .16497E-05   -.26611E-02
  12  Prefactor     .10000E-03    3.3534        .10576E-07** at limit **
  13  Prefactor     .76924E-01    .96987       -.28268E-07   -.11428E-03
  14  norm          14.052        8.3618        .16610E-06    .52269E-04
  15  Prefactor     .61602        7.7591       -.22024E-06   -.22289E-03
  16  Prefactor     24.765        46.778       -.68951E-05   -.16773E-03
  17  Prefactor     1.2512        9.0789        .56166E-06   -.21723E-03
  18  Prefactor     .10000E-03    11.760        .98194E-07** at limit **
  19  Normalizat    1.1139        .17315       -.81542E-06    .54409E-04
  20  Prefactor     .80212        .17457        .17786E-06   -.14677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7839
  Prefactor  = 19.0119
  norm       = 21.2114
  Prefactor  = 1.52263
  norm       = 2.89548
  Prefactor  = 28.7835
  Prefactor  = 0.0001
  Prefactor  = 9.73137
  Prefactor  = 52.5903
  Prefactor  = 0.0001
  Prefactor  = 4.65484
  Prefactor  = 0.0001
  Prefactor  = 0.0769239
  norm       = 14.0524
  Prefactor  = 0.616024
  Prefactor  = 24.7652
  Prefactor  = 1.25123
  Prefactor  = 0.0001
  Normalizat = 1.11386
  Prefactor  = 0.802118
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.603     FROM HESSE     STATUS=OK           295 CALLS     2367 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.784        11.595        .92425E-04   -1.4841    
   2  Prefactor     19.012        15.863        .91856E-04   -1.4836    
   3  norm          21.211        22.884        .86983E-04   -1.4787    
   4  Prefactor     1.5226        2.5621        .15316E-03   -1.5461    
   5  norm          2.8955        1.7390        .74468E-04   -1.5368    
   6  Prefactor     28.783        40.588        .74666E-04   -1.4634    
   7  Prefactor     .10000E-03    1.8604        .99579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7314        21.345        .12838E-03   -1.5084    
   9  Prefactor     52.590        56.953        .55237E-04   -1.4256    
  10  Prefactor     .10000E-03    17.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6548        6.1045        .93285E-03   -1.5276    
  12  Prefactor     .10000E-03    3.3890        .13470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .76924E-01    10.130        .14116E-02   -1.5653    
  14  norm          14.052        8.3772        .10685E-03   -1.4958    
  15  Prefactor     .61602        10.137        .22571E-02   -1.5551    
  16  Prefactor     24.765        47.253        .80520E-04   -1.4712    
  17  Prefactor     1.2512        6.8009        .25044E-03   -1.5484    
  18  Prefactor     .10000E-03    11.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1139        .19994        .21338E-03   -.89308    
  20  Prefactor     .80212        .20081        .26106E-03   -.99650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45074e-08
Minuit parameter uncertainties:
  1  11.5967
  2  15.8662
  3  22.8932
  4  2.56228
  5  1.73905
  6  40.6272
  7  7.12125e-06
  8  21.3612
  9  57.0125
  10  1.60587e-05
  11  6.10532
  12  1.94108e-06
  13  1.76462
  14  8.37788
  15  4.99852
  16  47.3248
  17  5.835
  18  7.91789e-06
  19  0.200073
  20  0.200994
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  9.731e+00  2.136e+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:  8.021e-01  2.010e-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.114e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437795/likelihoodResults_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.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): 0
logL (Free Index) = 5675.25873555
delta logL = 0.344445324582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.24875929
delta logL = 0.354421591182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2296       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8039       1.0000          .0000       10.000    
     3 'Normalizat'    1.0743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82908       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=   5675.249     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2231        100.38        .56352E-02    .44458E-03
   2  Index         3.8049        6.8053        .13010        .12416E-03
   3  Normalizat    1.0743        .50852E-01    .39157E-01   -.27719E-04
   4  Prefactor     .82906        .51865E-01    .44095E-01   -.14526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22307
  Index      = 3.80489
  Normalizat = 1.07433
  Prefactor  = 0.829056
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.249     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2231        194.64        .14378E-03   -1.5349    
   2  Index         3.8049        6.5830        .75081E-02   -.24136    
   3  Normalizat    1.0743        .18293        .21674E-03   -.90580    
   4  Prefactor     .82906        .19100        .25723E-03   -.98666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.72698e-07
Minuit parameter uncertainties:
  1  50.2643
  2  8.93567
  3  0.183038
  4  0.191158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437795': 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) = 5675.24875906
delta logL = 0.354421819681

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.223e+00  5.026e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  3.805e+00  8.936e+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:  8.291e-01  1.912e-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.074e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 145.494 27.414
Photon Index (Free Index): 3.80 +/- 8.94
Photon Flux (Free Index): 3.97e-08 +/- 4.68e-08
Energy Flux (Free Index): 6.16e-06 +/- 1.09e-05

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/437795/cmap_HighResolution_506563201_506822401_4FGL_J0941.9+2724_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', energy_flux2='6.16e-06', dlogl='3.54e-01', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-08-31 22:58:02.649527', photon_index_error2='8.94', photon_index2='3.80', ts='0.26', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='1.09e-05', EG='1.11', time_epoch_completed='1630475882.65', return_code='0', job_id='437795', GAL2='0.83', EG2='1.07', return_code2='102', photon_flux_error2='4.68e-08', ts2='1.02', photon_index='2.43' WHERE bin_id='1031' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:58:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 437795: <4FGL_J0941.9+2724_daily_bin1031> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1031 145.494 27.4136 506563201 506822401 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 :                                   575.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

