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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1128
RA = 145.494, Dec = 27.4136
tmin = 531705601, tmax = 531964801
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='437919', job_status='RUN', time_executed='2021-08-31 22:48:12.071417', time_epoch_executed='1630475292.07' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437919/ft1_4FGL_J0941.9+2724_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437919/ft1_4FGL_J0941.9+2724_daily_bin1128.fits outfile=/scratch/kocevski/437919/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1128.fits ra=145.494 dec=27.4136 rad=12.0 tmin=531705601.0 tmax=531964801.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.97
user 3.75
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437919/ft1_filtered_4FGL_J0941.9+2724_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/437919/ltcube_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.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/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits
.....................!
real 11.88
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437919/ft1_filtered_4FGL_J0941.9+2724_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/437919/ltcube_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.fits outfile=/scratch/kocevski/437919/expmap_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.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/437919/ltcube_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.fits
.....................!
real 189.74
user 185.14
sys 4.20

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/437919/ft1_filtered_4FGL_J0941.9+2724_daily_bin1128.fits scfile=/scratch/kocevski/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits outfile=/scratch/kocevski/437919/cmap_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.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/437919/ft1_filtered_4FGL_J0941.9+2724_daily_bin1128.fits scfile=/scratch/kocevski/437919/ft2_4FGL_J0941.9+2724_daily_bin1128.fits outfile=/scratch/kocevski/437919/cmap_HighResolution_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7587       1.0000         .10000E-03   10000.    
     3 'norm      '    33.100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28423       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0157       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=   7022.631     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1851 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1879        11.935        .18218E-06   -.44524E-05
   2  Prefactor     4.7584        13.292        .63468E-06   -.61793E-05
   3  norm          33.098        33.527        .14936E-06   -.50663E-05
   4  Prefactor     .10000E-03    1.8082        .10041E-06** at limit **
   5  norm          .10000E-03    .55559        .27158E-07** at limit **
   6  Prefactor     .10000E-03    15.417       -.14075E-07** at limit **
   7  Prefactor     .10000E-03    1.3261        .22994E-07** at limit **
   8  Prefactor     6.0449        28.708       -.20697E-06   -.18657E-04
   9  Prefactor     .10000E-03    209.11       -.29546E-05** at limit **
  10  Prefactor     .10000E-03    62.124       -.18485E-06** at limit **
  11  Prefactor     5.5766        5.0534       -.64740E-07   -.10683E-03
  12  Prefactor     .10000E-03    4.2670        .80878E-08** at limit **
  13  Prefactor     .28645        1.7459        .17579E-05   -.73085E-04
  14  norm          .10000E-03    3.8543        .51081E-06** at limit **
  15  Prefactor     .10000E-03    2.3777       -.83764E-07** at limit **
  16  Prefactor     .10000E-03    22.926        .38363E-07** at limit **
  17  Prefactor     2.8437        4.2738        .52254E-06   -.24213E-04
  18  Prefactor     .10000E-03    138.89        .22982E-05** at limit **
  19  Normalizat    1.1584        .15945       -.58804E-06   -.18819E-03
  20  Prefactor     1.0156        .16231       -.33729E-06   -.17109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.18789
  Prefactor  = 4.7584
  norm       = 33.0982
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04494
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 5.57659
  Prefactor  = 0.0001
  Prefactor  = 0.286451
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84365
  Prefactor  = 0.000100003
  Normalizat = 1.15841
  Prefactor  = 1.01563
 **********
 **   18 **HESSE 
 **********

 FCN=   7022.631     FROM HESSE     STATUS=OK           293 CALLS     2144 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1879        11.931        .13222E-03   -1.5102    
   2  Prefactor     4.7584        13.297        .18444E-03   -1.5272    
   3  norm          33.098        33.563        .69649E-04   -1.4557    
   4  Prefactor     .10000E-03    3.8619        .21881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0272        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3405        .94197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0449        28.822        .16327E-03   -1.5216    
   9  Prefactor     .10000E-03    212.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5766        5.0444        .17013E-03   -1.5236    
  12  Prefactor     .10000E-03    4.3593        .16904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .28645        1.7503        .21124E-03   -1.5601    
  14  norm          .10000E-03    14.801        .31447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4112        .12559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8437        4.2584        .20311E-03   -1.5371    
  18  Prefactor     .10000E-03    141.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1584        .18786        .22861E-03   -.87898    
  20  Prefactor     1.0156        .19101        .25210E-03   -.92210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32524e-10
Minuit parameter uncertainties:
  1  11.9339
  2  13.3056
  3  33.5819
  4  1.02394e-05
  5  8.57726e-07
  6  5.31009e-06
  7  1.50123e-06
  8  26.4193
  9  0.00179942
  10  1.26045e-05
  11  5.04475
  12  3.74474e-07
  13  1.41597
  14  0.000484934
  15  8.30463e-06
  16  1.10248e-05
  17  4.25885
  18  0.00120295
  19  0.187964
  20  0.191133
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.045e+00  2.642e+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:  1.016e+00  1.911e-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.158e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437919/likelihoodResults_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.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) = 7022.30708426
delta logL = 0.323710979786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7022.22468114
delta logL = 0.406114097916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4051       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0562       1.0000          .0000       10.000    
     3 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0484       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7022.225     FROM MIGRAD    STATUS=FAILED        94 CALLS      270 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4019        140.01        .13703E-03   -.26797E-04
   2  Index         4.0568        6.8884        .76390E-02    .62677E-03
   3  Normalizat    1.1076        .15843        .23300E-03    .11364E-03
   4  Prefactor     1.0484        .16383        .24861E-03   -.11405E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7022.225     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      357 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4019        140.01        .12904E-03   -.26797E-04
   2  Index         4.0568        6.8884        .10919E-02    .62677E-03
   3  Normalizat    1.1076        .15843        .62392E-04    .11364E-03
   4  Prefactor     1.0484        .16383        .61100E-04   -.11405E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7022.225     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      386 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4019        19.942        .54813E-05   -.73838E-04
   2  Index         4.0568        2.9594        .15278E-02    .45094E-05
   3  Normalizat    1.1076        .19172        .93202E-05    .76847E-04
   4  Prefactor     1.0484        .19432        .99445E-05   -.86656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40185
  Index      = 4.0568
  Normalizat = 1.10758
  Prefactor  = 1.04839
 **********
 **   18 **HESSE 
 **********

 FCN=   7022.225     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4019        10.312        .10963E-05   -1.5398    
   2  Index         4.0568        2.2007        .61112E-04   -.18978    
   3  Normalizat    1.1076        .19172        .18640E-05   -.89509    
   4  Prefactor     1.0484        .19400        .19889E-05   -.91133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33736e-10
Minuit parameter uncertainties:
  1  9.95614
  2  2.28192
  3  0.19184
  4  0.194135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437919': 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) = 7022.22468107
delta logL = 0.406114173038

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.402e+00  9.956e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  4.057e+00  2.282e+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.048e+00  1.941e-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.108e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 145.494 27.414

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437919/cmap_HighResolution_531705601_531964801_4FGL_J0941.9+2724_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-08-31 22:59:09.065024', job_id='437919', GAL2='1.05', fit_tolerance='1e-08', EG2='1.11', EG='1.16', time_epoch_completed='1630475949.07', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.06e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1128' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 437919: <4FGL_J0941.9+2724_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1128 145.494 27.4136 531705601 531964801 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 :                                   625.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

