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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin61
RA = 145.494, Dec = 27.4136
tmin = 255139201, tmax = 255398401
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='432673', job_status='RUN', time_executed='2021-08-31 22:30:42.689547', time_epoch_executed='1630474242.69' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432673/ft1_4FGL_J0941.9+2724_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432673/ft2_4FGL_J0941.9+2724_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432673/ft1_4FGL_J0941.9+2724_daily_bin61.fits outfile=/scratch/kocevski/432673/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin61.fits ra=145.494 dec=27.4136 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.48
user 7.16
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432673/ft1_filtered_4FGL_J0941.9+2724_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/432673/ft2_4FGL_J0941.9+2724_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/432673/ltcube_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.fits outfile=/scratch/kocevski/432673/expmap_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.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/432673/ltcube_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.fits
.....................!
real 190.23
user 185.29
sys 4.33

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/432673/ft1_filtered_4FGL_J0941.9+2724_daily_bin61.fits scfile=/scratch/kocevski/432673/ft2_4FGL_J0941.9+2724_daily_bin61.fits outfile=/scratch/kocevski/432673/cmap_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432673/ft1_filtered_4FGL_J0941.9+2724_daily_bin61.fits scfile=/scratch/kocevski/432673/ft2_4FGL_J0941.9+2724_daily_bin61.fits outfile=/scratch/kocevski/432673/cmap_HighResolution_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.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.70
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.858       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7765       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0492       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88866E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66105       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3151       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=   3758.607     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2029 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5615        11.878       -.18714E-06   -.21143E-03
   2  Prefactor     .10008E-03    10.499        .23584E-05** at limit **
   3  norm          26.410        29.781        .16884E-06   -.12651E-04
   4  Prefactor     12.858        7.3717       -.17694E-06   -.19312E-03
   5  norm          1.7766        1.8507        .32274E-07   -.15237E-03
   6  Prefactor     .10000E-03    30.022       -.54967E-05** at limit **
   7  Prefactor     9.8618        6.5099       -.56888E-06   -.49076E-03
   8  Prefactor     3.3958        119.72        .32708E-04   -.12373E-04
   9  Prefactor     .10000E-03    20.856        .33881E-05** at limit **
  10  Prefactor     35.513        52.576        .72099E-05    .13760E-04
  11  Prefactor     8.0477        7.2142        .16203E-05    .10980E-03
  12  Prefactor     .10000E-03    6.1578        .19706E-06** at limit **
  13  Prefactor     .10000E-03    1.1233       -.17691E-06** at limit **
  14  norm          .10027E-03    9.9538       -.42526E-05** at limit **
  15  Prefactor     1.5876        3.9109       -.54321E-06   -.69061E-03
  16  Prefactor     .10000E-03    80.636       -.74412E-04** at limit **
  17  Prefactor     .10000E-03    5.9105        .50772E-06** at limit **
  18  Prefactor     .10000E-03    63.526        .64060E-04** at limit **
  19  Normalizat    .66099        .21573       -.37548E-05    .97164E-04
  20  Prefactor     1.3151        .21818        .54391E-06    .10304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56152
  Prefactor  = 0.000100083
  norm       = 26.4096
  Prefactor  = 12.858
  norm       = 1.77655
  Prefactor  = 0.0001
  Prefactor  = 9.86181
  Prefactor  = 3.39576
  Prefactor  = 0.0001
  Prefactor  = 35.5127
  Prefactor  = 8.04771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100266
  Prefactor  = 1.58764
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.660994
  Prefactor  = 1.31512
 **********
 **   18 **HESSE 
 **********

 FCN=   3758.607     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5615        11.879        .64800E-03   -1.5089    
   2  Prefactor     .10008E-03    46.197        .38080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.410        29.780        .77953E-04   -1.4680    
   4  Prefactor     12.858        7.3711        .11171E-03   -1.4991    
   5  norm          1.7766        1.8422        .82479E-04   -1.5441    
   6  Prefactor     .10000E-03    30.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8618        6.4989        .11616E-03   -1.5080    
   8  Prefactor     3.3958        118.10        .21988E-03   -1.5339    
   9  Prefactor     .10000E-03    20.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.513        52.573        .67254E-04   -1.4515    
  11  Prefactor     8.0477        7.1872        .14132E-03   -1.5141    
  12  Prefactor     .10000E-03    6.1801        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1407        .63418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10027E-03    31.545        .36618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5876        3.5910        .16778E-03   -1.5456    
  16  Prefactor     .10000E-03    80.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.756        .26538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .66099        .25069        .27674E-03   -1.0545    
  20  Prefactor     1.3151        .25573        .22132E-03   -.82858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09124e-08
Minuit parameter uncertainties:
  1  11.8817
  2  0.00392011
  3  29.7963
  4  7.37158
  5  1.84226
  6  5.94465e-06
  7  6.4994
  8  40.1381
  9  1.28525e-05
  10  52.6415
  11  7.188
  12  1.03651e-05
  13  5.5457e-06
  14  0.00579283
  15  3.5915
  16  0.000266117
  17  0.000312308
  18  0.000156674
  19  0.251128
  20  0.25597
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.396e+00  4.014e+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.315e+00  2.560e-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.610e-01  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432673/likelihoodResults_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.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) = 3758.38126244
delta logL = 0.22536642419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3758.33832783
delta logL = 0.268301041745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5462       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3054       1.0000          .0000       10.000    
     3 'Normalizat'    .60442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3521       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=   3758.338     FROM MIGRAD    STATUS=FAILED        84 CALLS      274 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5472        145.78        .10265E-03    .31926E-02
   2  Index         4.3058        6.6475        .70390E-02    .46692E-03
   3  Normalizat    .60444        .19488        .28850E-03    .60253E-03
   4  Prefactor     1.3521        .21074        .21868E-03    .55533E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3758.338     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      363 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5472        145.78        .20738E-03    .31926E-02
   2  Index         4.3058        6.6475        .18226E-02    .46692E-03
   3  Normalizat    .60444        .19488        .26418E-03    .60253E-03
   4  Prefactor     1.3521        .21074        .10886E-03    .55533E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3758.338     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      390 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5478        21.058        .41059E-05    .31653E-02
   2  Index         4.3055        3.5071        .28156E-03    .35908E-03
   3  Normalizat    .60444        .24395        .57701E-04    .56823E-03
   4  Prefactor     1.3521        .25925        .43736E-04    .53122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54784
  Index      = 4.30554
  Normalizat = 0.604436
  Prefactor  = 1.3521
 **********
 **   18 **HESSE 
 **********

 FCN=   3758.338     FROM HESSE     STATUS=OK            23 CALLS      413 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5478        18.116        .82119E-06   -1.5459    
   2  Index         4.3055        3.3018        .56312E-04   -.13934    
   3  Normalizat    .60444        .24399        .11540E-04   -1.0780    
   4  Prefactor     1.3521        .25922        .87471E-05   -.81771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02724e-09
Minuit parameter uncertainties:
  1  10.5943
  2  3.6143
  3  0.244424
  4  0.259471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432673': 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) = 3758.33832741
delta logL = 0.268301457507

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.548e+00  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  4.306e+00  3.614e+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.352e+00  2.595e-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.044e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/432673/cmap_HighResolution_255139201_255398401_4FGL_J0941.9+2724_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.63e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-08-31 22:39:14.194771', job_id='432673', GAL2='1.35', fit_tolerance='1e-08', EG2='0.60', EG='0.66', time_epoch_completed='1630474754.19', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.68e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='61' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 432673: <4FGL_J0941.9+2724_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin61 145.494 27.4136 255139201 255398401 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 :                                   506.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

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

