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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin503
RA = 145.494, Dec = 27.4136
tmin = 369705601, tmax = 369964801
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='434577', job_status='RUN', time_executed='2021-08-31 22:36:01.824955', time_epoch_executed='1630474561.82' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434577/ft1_4FGL_J0941.9+2724_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434577/ft1_4FGL_J0941.9+2724_daily_bin503.fits outfile=/scratch/kocevski/434577/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin503.fits ra=145.494 dec=27.4136 rad=12.0 tmin=369705601.0 tmax=369964801.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.77
user 3.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434577/ft1_filtered_4FGL_J0941.9+2724_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/434577/ltcube_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.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/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits
.....................!
real 12.02
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434577/ft1_filtered_4FGL_J0941.9+2724_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/434577/ltcube_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.fits outfile=/scratch/kocevski/434577/expmap_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.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/434577/ltcube_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.fits
.....................!
real 191.00
user 185.75
sys 4.85

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/434577/ft1_filtered_4FGL_J0941.9+2724_daily_bin503.fits scfile=/scratch/kocevski/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits outfile=/scratch/kocevski/434577/cmap_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.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/434577/ft1_filtered_4FGL_J0941.9+2724_daily_bin503.fits scfile=/scratch/kocevski/434577/ft2_4FGL_J0941.9+2724_daily_bin503.fits outfile=/scratch/kocevski/434577/cmap_HighResolution_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39725E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.285       1.0000         .10000E-03   10000.    
     3 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    88.159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44541E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12112E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2308       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34815       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12476E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.680       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69991       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3560       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=   5031.575     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2737 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8316        .56402E-07** at limit **
   2  Prefactor     14.295        18.934        .68580E-07   -.36524E-04
   3  norm          .10000E-03    14.170       -.86029E-06** at limit **
   4  Prefactor     .10000E-03    1.8825        .17837E-06** at limit **
   5  norm          1.5265        1.8663        .23214E-07   -.45196E-03
   6  Prefactor     88.227        57.713        .13171E-04   -.10548E-04
   7  Prefactor     .10000E-03    2.2111        .10992E-07** at limit **
   8  Prefactor     .80817E-01    14.692       -.20652E-06    .15730E-04
   9  Prefactor     .10000E-03    18.714        .92483E-05** at limit **
  10  Prefactor     .10000E-03    11.722        .16407E-06** at limit **
  11  Prefactor     5.2269        5.2394        .13963E-06   -.12069E-03
  12  Prefactor     11.087        12.033        .11209E-05    .11124E-03
  13  Prefactor     .35061        1.7063       -.33667E-06   -.22403E-03
  14  norm          6.6792        6.2148        .22963E-06    .20572E-04
  15  Prefactor     .10000E-03    2.6601       -.42454E-08** at limit **
  16  Prefactor     65.124        47.964       -.64108E-05   -.12530E-05
  17  Prefactor     .10004E-03    2.8789       -.14460E-05** at limit **
  18  Prefactor     43.813        57.791        .31513E-04    .36584E-04
  19  Normalizat    .69992        .18368       -.13618E-05    .18434E-03
  20  Prefactor     1.3561        .18933       -.15864E-05    .20425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.2952
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52651
  Prefactor  = 88.2267
  Prefactor  = 0.0001
  Prefactor  = 0.0808172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22693
  Prefactor  = 11.0872
  Prefactor  = 0.350614
  norm       = 6.67924
  Prefactor  = 0.0001
  Prefactor  = 65.1239
  Prefactor  = 0.000100042
  Prefactor  = 43.813
  Normalizat = 0.699915
  Prefactor  = 1.35606
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.575     FROM HESSE     STATUS=OK           305 CALLS     3042 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9308        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.295        19.032        .10597E-03   -1.4952    
   3  norm          .10000E-03    14.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1930        .18911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5265        1.8434        .10326E-03   -1.5461    
   6  Prefactor     88.227        57.622        .21396E-03   -1.3827    
   7  Prefactor     .10000E-03    2.2609        .10290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80817E-01    18.339        .88198E-01   -1.5651    
   9  Prefactor     .10000E-03    18.721        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2269        5.2252        .15529E-03   -1.5251    
  12  Prefactor     11.087        12.040        .12031E-03   -1.5042    
  13  Prefactor     .35061        5.4132        .16981E-02   -1.5590    
  14  norm          6.6792        6.2142        .15529E-03   -1.5191    
  15  Prefactor     .10000E-03    2.7157        .22500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     65.124        47.984        .24942E-03   -1.4092    
  17  Prefactor     .10004E-03    17.502        .22831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.813        57.796        .60660E-04   -1.4383    
  19  Normalizat    .69992        .21227        .26755E-03   -1.0390    
  20  Prefactor     1.3561        .22215        .22028E-03   -.81655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67261e-09
Minuit parameter uncertainties:
  1  8.70736e-06
  2  19.0399
  3  1.65355e-05
  4  3.14114e-05
  5  1.84351
  6  57.6583
  7  1.94939e-06
  8  2.4341
  9  7.31881e-06
  10  1.19895e-05
  11  5.2257
  12  12.0426
  13  2.75523
  14  6.21484
  15  1.09189e-06
  16  48.0121
  17  0.00171131
  18  57.87
  19  0.212522
  20  0.222309
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  8.082e-02  2.434e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.356e+00  2.223e-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:  6.999e-01  2.125e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434577/likelihoodResults_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.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) = 5031.57470691
delta logL = 3.25659402733e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5031.57470371
delta logL = 6.46270473226e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80817E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4295       1.0000          .0000       10.000    
     3 'Normalizat'    .69991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3561       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5031.573     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      328 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0737        100.31        .18839E-02    .10116E-03
   2  Index         2.1484        3.2562        .26175E-01    .24248E-04
   3  Normalizat    .69974        .19604        .26759E-03    .16825E-04
   4  Prefactor     1.3555        .21873        .22031E-03   -.33748E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07366
  Index      = 2.14843
  Normalizat = 0.69974
  Prefactor  = 1.35551
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.573     FROM HESSE     STATUS=OK            27 CALLS      355 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0737        82.780        .37678E-03   -1.5501    
   2  Index         2.1484        3.0392        .52351E-02   -.60689    
   3  Normalizat    .69974        .19618        .10703E-04   -1.0390    
   4  Prefactor     1.3555        .21881        .44063E-04   -.81671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52393e-12
Minuit parameter uncertainties:
  1  18.8812
  2  3.42145
  3  0.19638
  4  0.218957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434577': 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): 0
logL (Free Index) = 5031.5730065
delta logL = 0.00170367106602

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.074e+00  1.888e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.148e+00  3.421e+00  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.356e+00  2.190e-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:  6.997e-01  1.964e-01  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/434577/cmap_HighResolution_369705601_369964801_4FGL_J0941.9+2724_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-08-31 22:46:02.343273', job_id='434577', GAL2='1.36', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630475162.34', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.70e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='503' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 434577: <4FGL_J0941.9+2724_daily_bin503> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin503> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:35:51 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:35:52 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:35:52 2021
Terminated at Tue Aug 31 22:46:02 2021
Results reported at Tue Aug 31 22:46:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin503 145.494 27.4136 369705601 369964801 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 :                                   595.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             376.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

