/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 2 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 = 7490
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin192
RA = 145.494, Dec = 27.4136
tmin = 289094401, tmax = 289353601
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='432875', job_status='RUN', time_executed='2021-08-31 22:31:01.529617', time_epoch_executed='1630474261.53' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432875/ft1_4FGL_J0941.9+2724_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432875/ft2_4FGL_J0941.9+2724_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432875/ft1_4FGL_J0941.9+2724_daily_bin192.fits outfile=/scratch/kocevski/432875/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin192.fits ra=145.494 dec=27.4136 rad=12.0 tmin=289094401.0 tmax=289353601.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.54
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432875/ft1_filtered_4FGL_J0941.9+2724_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/432875/ft2_4FGL_J0941.9+2724_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/432875/ltcube_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.fits outfile=/scratch/kocevski/432875/expmap_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.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/432875/ltcube_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.fits
.....................!
real 190.80
user 185.49
sys 4.59

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/432875/ft1_filtered_4FGL_J0941.9+2724_daily_bin192.fits scfile=/scratch/kocevski/432875/ft2_4FGL_J0941.9+2724_daily_bin192.fits outfile=/scratch/kocevski/432875/cmap_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.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.58
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5437       1.0000         .10000E-03   10000.    
     3 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3258       1.0000         .10000E-03   10000.    
     5 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .97609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.278       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8144       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83839       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=   5844.009     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2084 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.043        11.577        .72549E-07    .90641E-04
   2  Prefactor     8.5069        18.776       -.20610E-04   -.18535E-04
   3  norm          .10000E-03    48.236       -.17329E-04** at limit **
   4  Prefactor     2.3254        3.0843       -.19031E-06   -.63628E-05
   5  norm          .10000E-03    .79056        .21220E-06** at limit **
   6  Prefactor     .10000E-03    48.654       -.18194E-04** at limit **
   7  Prefactor     7.9107        5.5848        .11861E-05    .11892E-03
   8  Prefactor     .10000E-03    13.902        .20654E-05** at limit **
   9  Prefactor     46.504        71.703       -.22394E-04   -.57309E-05
  10  Prefactor     71.521        41.378       -.12311E-04   -.17066E-04
  11  Prefactor     .97373        2.6100        .17325E-05   -.22467E-02
  12  Prefactor     1.4253        18.538       -.41521E-05   -.63912E-03
  13  Prefactor     .10000E-03    .67873       -.65954E-07** at limit **
  14  norm          12.278        8.8110       -.68455E-06   -.22514E-04
  15  Prefactor     .10000E-03    2.5552       -.18859E-07** at limit **
  16  Prefactor     .10000E-03    43.278        .38777E-04** at limit **
  17  Prefactor     9.8159        5.7456        .32256E-06    .90400E-04
  18  Prefactor     .10000E-03    17.544       -.46652E-05** at limit **
  19  Normalizat    1.0669        .17928        .26136E-05    .46004E-04
  20  Prefactor     .83859        .17572        .29647E-05    .79639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0426
  Prefactor  = 8.50687
  norm       = 0.0001
  Prefactor  = 2.32543
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91065
  Prefactor  = 0.0001
  Prefactor  = 46.5044
  Prefactor  = 71.5211
  Prefactor  = 0.973731
  Prefactor  = 1.42529
  Prefactor  = 0.0001
  norm       = 12.2783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.81588
  Prefactor  = 0.0001
  Normalizat = 1.06689
  Prefactor  = 0.838593
 **********
 **   18 **HESSE 
 **********

 FCN=   5844.009     FROM HESSE     STATUS=OK           299 CALLS     2383 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.043        11.583        .10326E-03   -1.4932    
   2  Prefactor     8.5069        18.826        .13714E-03   -1.5125    
   3  norm          .10000E-03    48.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3254        3.0739        .14922E-03   -1.5403    
   5  norm          .10000E-03    1.1965        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9107        5.5417        .13775E-03   -1.5145    
   8  Prefactor     .10000E-03    13.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.504        72.145        .58786E-04   -1.4343    
  10  Prefactor     71.521        41.468        .47465E-04   -1.4015    
  11  Prefactor     .97373        5.5813        .56439E-01   -1.5511    
  12  Prefactor     1.4253        22.385        .17984E-02   -1.5469    
  13  Prefactor     .10000E-03    .68516        .61487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.278        8.8290        .11432E-03   -1.5007    
  15  Prefactor     .10000E-03    2.5777        .11892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8159        5.7363        .12791E-03   -1.5081    
  18  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0669        .21210        .23199E-03   -.90822    
  20  Prefactor     .83859        .20223        .25911E-03   -.98321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00532e-08
Minuit parameter uncertainties:
  1  11.5852
  2  18.8387
  3  5.91694e-05
  4  3.07414
  5  1.38404e-05
  6  4.78116e-05
  7  5.54206
  8  2.71436e-05
  9  72.2805
  10  41.4851
  11  4.6629
  12  11.3015
  13  4.00728e-06
  14  8.82996
  15  1.96138e-05
  16  2.14516e-05
  17  5.73665
  18  2.65699e-05
  19  0.212271
  20  0.202414
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.714e-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:  8.386e-01  2.024e-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.067e+00  2.123e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432875/likelihoodResults_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.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) = 5844.00979077
delta logL = -0.000342279783581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5844.00944888
delta logL = -3.910590749e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4431       1.0000          .0000       10.000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83873       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=   5844.008     FROM MIGRAD    STATUS=CONVERGED    158 CALLS      308 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81154E-01    2.9415        .37488E-01   -.59107E-03
   2  Index         4.4910        1.4684        .50000        .29401E-05
   3  Normalizat    1.0626        .88121E-02    .23199E-03   -.33813E-05
   4  Prefactor     .84125        .88757E-02    .25911E-03   -.26764E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0811538
  Index      = 4.49105
  Normalizat = 1.06261
  Prefactor  = 0.841252
 **********
 **   18 **HESSE 
 **********

 FCN=   5844.008     FROM HESSE     STATUS=OK            31 CALLS      339 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81154E-01    7.9228        .12448E-02   -1.5765    
   2  Index         4.4910        7.2443        .10875E-01   -.10197    
   3  Normalizat    1.0626        .21130        .92796E-05   -.90961    
   4  Prefactor     .84125        .20483        .10365E-04   -.98225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71962e-11
Minuit parameter uncertainties:
  1  1.60293
  2  7.46003
  3  0.211464
  4  0.205018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432875': 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) = 5844.00793653
delta logL = 0.00151196013212

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  8.115e-02  1.603e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  4.491e+00  7.460e+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.413e-01  2.050e-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.063e+00  2.115e-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/432875/cmap_HighResolution_289094401_289353601_4FGL_J0941.9+2724_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2021-08-31 22:40:55.322745', job_id='432875', GAL2='0.84', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1630474855.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.51e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='192' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 432875: <4FGL_J0941.9+2724_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin192 145.494 27.4136 289094401 289353601 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 :                                   579.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            613 sec.

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

