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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1
RA = 145.494, Dec = 27.4136
tmin = 239587201, tmax = 239846401
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='432578', job_status='RUN', time_executed='2021-08-31 22:33:38.719556', time_epoch_executed='1630474418.72' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432578

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432578/ft1_4FGL_J0941.9+2724_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432578/ft1_4FGL_J0941.9+2724_daily_bin1.fits outfile=/scratch/kocevski/432578/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1.fits ra=145.494 dec=27.4136 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.35
user 1.15
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432578/ft1_filtered_4FGL_J0941.9+2724_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/432578/ltcube_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.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/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits
.....................!
real 13.55
user 13.05
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432578/ft1_filtered_4FGL_J0941.9+2724_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/432578/ltcube_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.fits outfile=/scratch/kocevski/432578/expmap_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.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/432578/ltcube_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.fits
.....................!
real 190.66
user 185.30
sys 4.64

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/432578/ft1_filtered_4FGL_J0941.9+2724_daily_bin1.fits scfile=/scratch/kocevski/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits outfile=/scratch/kocevski/432578/cmap_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.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.51
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432578/ft1_filtered_4FGL_J0941.9+2724_daily_bin1.fits scfile=/scratch/kocevski/432578/ft2_4FGL_J0941.9+2724_daily_bin1.fits outfile=/scratch/kocevski/432578/cmap_HighResolution_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58801E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71231       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=   4792.629     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2052 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0146        11.056       -.29110E-06   -.35755E-04
   2  Prefactor     18.988        15.821       -.62161E-06   -.20981E-04
   3  norm          7.3010        57.919       -.19349E-04   -.57773E-04
   4  Prefactor     .10000E-03    3.5205        .70789E-06** at limit **
   5  norm          1.1781        1.1666        .15721E-06    .74887E-04
   6  Prefactor     26.471        70.839        .91323E-04    .14323E-04
   7  Prefactor     10.092        5.1673       -.78511E-06   -.15024E-03
   8  Prefactor     34.247        24.993       -.81831E-05    .58315E-05
   9  Prefactor     .10000E-03    18.673        .39408E-05** at limit **
  10  Prefactor     14.694        37.071       -.47341E-05   -.79923E-05
  11  Prefactor     .10000E-03    2.5365       -.79406E-07** at limit **
  12  Prefactor     .10000E-03    17.385       -.62574E-05** at limit **
  13  Prefactor     .10000E-03    1.1155        .21421E-06** at limit **
  14  norm          17.481        9.6270        .47848E-06    .90953E-04
  15  Prefactor     .10000E-03    2.0777        .20958E-06** at limit **
  16  Prefactor     .10000E-03    26.008        .44033E-05** at limit **
  17  Prefactor     .10000E-03    6.5271        .12636E-05** at limit **
  18  Prefactor     .10029E-03    283.44       -.31252E-03** at limit **
  19  Normalizat    1.0615        .17394        .15928E-05    .69841E-03
  20  Prefactor     .71238        .17471       -.48631E-05    .73710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.01457
  Prefactor  = 18.9881
  norm       = 7.30096
  Prefactor  = 0.0001
  norm       = 1.17806
  Prefactor  = 26.471
  Prefactor  = 10.0918
  Prefactor  = 34.247
  Prefactor  = 0.0001
  Prefactor  = 14.6939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100293
  Normalizat = 1.06146
  Prefactor  = 0.712381
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.629     FROM HESSE     STATUS=OK           293 CALLS     2345 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0146        11.047        .13350E-03   -1.5107    
   2  Prefactor     18.988        15.823        .91915E-04   -1.4836    
   3  norm          7.3010        57.725        .14840E-03   -1.5167    
   4  Prefactor     .10000E-03    3.6682        .25347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1781        1.1668        .42161E-04   -1.5491    
   6  Prefactor     26.471        70.779        .77936E-04   -1.4679    
   7  Prefactor     10.092        5.1839        .10497E-03   -1.5073    
   8  Prefactor     34.247        25.025        .68468E-04   -1.4537    
   9  Prefactor     .10000E-03    18.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.694        37.143        .10448E-03   -1.4941    
  11  Prefactor     .10000E-03    2.5461        .10764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3711        .14205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.481        9.6302        .95790E-04   -1.4872    
  15  Prefactor     .10000E-03    2.1152        .97376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8018        .34505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10029E-03    284.13        .42149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0615        .19946        .21086E-03   -.90999    
  20  Prefactor     .71238        .19931        .25610E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37436e-09
Minuit parameter uncertainties:
  1  11.0491
  2  15.8264
  3  41.1127
  4  2.14564e-05
  5  1.16679
  6  71.0043
  7  5.18413
  8  25.0329
  9  4.85991e-08
  10  37.2011
  11  1.19062e-05
  12  0.000184253
  13  4.3983e-05
  14  9.63108
  15  9.471e-06
  16  2.67596e-05
  17  3.35396e-05
  18  0.0183342
  19  0.199602
  20  0.19951
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.425e+01  2.503e+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:  7.124e-01  1.995e-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.061e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.00e-05

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) = 4792.40181282
delta logL = 0.226747016389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4792.40167428
delta logL = 0.226885557201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.882       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0229       1.0000          .0000       10.000    
     3 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70208       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=   4792.402     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      299 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.848        31.523        .30971E-03    .25181E-04
   2  Index         2.0221        .57518        .77791E-02   -.53620E-05
   3  Normalizat    1.0769        .19294        .20958E-03    .14104E-05
   4  Prefactor     .70208        .19528        .25776E-03   -.74980E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8481
  Index      = 2.02212
  Normalizat = 1.07687
  Prefactor  = 0.702083
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.402     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.848        31.448        .12388E-04   -1.4413    
   2  Index         2.0221        .57371        .31116E-03   -.63798    
   3  Normalizat    1.0769        .19309        .83830E-05   -.90498    
   4  Prefactor     .70208        .19543        .10310E-04   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54039e-12
Minuit parameter uncertainties:
  1  31.46
  2  0.575675
  3  0.193214
  4  0.195622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432578': 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) = 4792.40167261
delta logL = 0.226887226142

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  4.185e+01  3.146e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.022e+00  5.757e-01  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:  7.021e-01  1.956e-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.077e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.02 +/- 0.58
Photon Flux (Free Index): 3.10e-08 +/- 3.01e-08
Energy Flux (Free Index): 2.03e-05 +/- 2.17e-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/432578/cmap_HighResolution_239587201_239846401_4FGL_J0941.9+2724_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='2.03e-05', photon_flux_error='3.19e-08', dlogl='2.27e-01', energy_flux='1.37e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-08-31 22:41:48.822099', photon_index_error2='0.58', photon_index2='2.02', ts='4.40', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.06', time_epoch_completed='1630474908.82', return_code='0', job_id='432578', GAL2='0.70', EG2='1.08', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.01e-08', ts2='4.86', photon_index='2.43' WHERE bin_id='1' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 432578: <4FGL_J0941.9+2724_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1 145.494 27.4136 239587201 239846401 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 :                                   485.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

