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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin203
RA = 145.494, Dec = 27.4136
tmin = 291945601, tmax = 292204801
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='432892', job_status='RUN', time_executed='2021-08-31 22:31:05.633497', time_epoch_executed='1630474265.63' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432892

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432892/ft1_4FGL_J0941.9+2724_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432892/ft1_4FGL_J0941.9+2724_daily_bin203.fits outfile=/scratch/kocevski/432892/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin203.fits ra=145.494 dec=27.4136 rad=12.0 tmin=291945601.0 tmax=292204801.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.76
user 3.55
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432892/ft1_filtered_4FGL_J0941.9+2724_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/432892/ltcube_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.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/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits
.....................!
real 12.09
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432892/ft1_filtered_4FGL_J0941.9+2724_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/432892/ltcube_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.fits outfile=/scratch/kocevski/432892/expmap_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.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/432892/ltcube_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.fits
.....................!
real 190.09
user 185.06
sys 4.68

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/432892/ft1_filtered_4FGL_J0941.9+2724_daily_bin203.fits scfile=/scratch/kocevski/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits outfile=/scratch/kocevski/432892/cmap_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432892/ft1_filtered_4FGL_J0941.9+2724_daily_bin203.fits scfile=/scratch/kocevski/432892/ft2_4FGL_J0941.9+2724_daily_bin203.fits outfile=/scratch/kocevski/432892/cmap_HighResolution_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=145.494 yref=27.4136 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    48.126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9682       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    83.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12298E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2220       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5300       1.0000         .10000E-03   10000.    
    14 'norm      '    10.303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9747       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75341E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89624       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5941.695     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1740 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6295        7.0004        .14848E-05   -.17803E-04
   2  Prefactor     .10000E-03    10.419       -.53641E-06** at limit **
   3  norm          48.157        18.567       -.32267E-06    .44390E-02
   4  Prefactor     2.9694        3.6501        .57000E-06   -.55293E-05
   5  norm          .10000E-03    .58407        .92266E-07** at limit **
   6  Prefactor     83.787        4.1599       -.10161E-06    .26229E-02
   7  Prefactor     2.1464        3.4127        .17514E-06    .75819E-05
   8  Prefactor     23.288        24.742       -.43171E-06   -.24774E-02
   9  Prefactor     .10000E-03    16.148       -.22661E-05** at limit **
  10  Prefactor     .10000E-03    61.942        .57324E-06** at limit **
  11  Prefactor     .10000E-03    5.5000        .54541E-06** at limit **
  12  Prefactor     3.2265        8.9197       -.37612E-06   -.81908E-04
  13  Prefactor     4.5308        2.6294        .27663E-07    .11817E-04
  14  norm          10.305        8.0037       -.16341E-07    .43415E-04
  15  Prefactor     3.9816        3.8168       -.19530E-06    .89847E-05
  16  Prefactor     .10000E-03    88.795       -.99012E-06** at limit **
  17  Prefactor     .10000E-03    2.1136       -.19559E-06** at limit **
  18  Prefactor     .10105E-03    1663.6        .18715E-04** at limit **
  19  Normalizat    .89630        .20300       -.25449E-05    .42206E-05
  20  Prefactor     1.2248        .21218        .62025E-06    .29684E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.62954
  Prefactor  = 0.0001
  norm       = 48.1566
  Prefactor  = 2.96943
  norm       = 0.0001
  Prefactor  = 83.7874
  Prefactor  = 2.14636
  Prefactor  = 23.2877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22648
  Prefactor  = 4.53076
  norm       = 10.3052
  Prefactor  = 3.98161
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101045
  Normalizat = 0.896304
  Prefactor  = 1.22479
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.695     FROM HESSE     STATUS=OK           341 CALLS     2081 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6295        7.0083        .42344E-02   -1.5233    
   2  Prefactor     .10000E-03    10.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          48.157        33.854        .14450E-02   -1.4319    
   4  Prefactor     2.9694        3.6614        .58921E-02   -1.5363    
   5  norm          .10000E-03    .57965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     83.787        57.441        .10972E-02   -1.3875    
   7  Prefactor     2.1464        3.4375        .70330E-02   -1.5415    
   8  Prefactor     23.288        29.358        .20762E-02   -1.4742    
   9  Prefactor     .10000E-03    16.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3597        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2265        8.9590        .56421E-02   -1.5349    
  13  Prefactor     4.5308        2.6344        .47288E-02   -1.5282    
  14  norm          10.305        8.0077        .31207E-02   -1.5066    
  15  Prefactor     3.9816        3.8334        .50578E-02   -1.5309    
  16  Prefactor     .10000E-03    88.355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10105E-03    49.648        .14910       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89630        .17527        .44854E-01   -.96590    
  20  Prefactor     1.2248        .18227        .54513E-01   -.85572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69553e-07
Minuit parameter uncertainties:
  1  7.00934
  2  6.13326e-07
  3  33.8671
  4  3.66165
  5  3.36687e-08
  6  57.4791
  7  3.43781
  8  29.3758
  9  1.75549e-06
  10  6.21602e-05
  11  4.87992e-07
  12  8.96269
  13  2.63446
  14  8.0085
  15  3.83362
  16  0.000472733
  17  3.46977e-07
  18  0.0144186
  19  0.175379
  20  0.182361
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.329e+01  2.938e+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.225e+00  1.824e-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:  8.963e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/432892/likelihoodResults_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.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): 0
logL (Free Index) = 5941.45576778
delta logL = 0.239567050697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5941.00291107
delta logL = 0.692423764421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4269       1.0000          .0000       10.000    
     3 'Normalizat'    .82068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2948       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.

 FCN=   5941.003     FROM MIGRAD    STATUS=CONVERGED    314 CALLS      701 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29696E-02    .33125E-03** at limit **
   2  Index         9.4266        8.6108        .26371        .61139E-04
   3  Normalizat    .82062        .48092E-01    .43880E-01   -.46687E-04
   4  Prefactor     1.2948        .51958E-01    .53283E-01    .65246E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.42658
  Normalizat = 0.820621
  Prefactor  = 1.29481
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.003     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      742 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23628E-01    .13910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4266        9.4003        .13009E-01   -5.1960    
   3  Normalizat    .82062        .10697        .26426E-03   -.99308    
   4  Prefactor     1.2948        .11553        .23558E-03   -.83461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69419e-09
Minuit parameter uncertainties:
  1  1.21335e-07
  2  5.00383
  3  0.106996
  4  0.115549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432892': 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): 102
logL (Free Index) = 5941.00290996
delta logL = 0.692424879366

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.213e-07  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  9.427e+00  5.004e+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.295e+00  1.155e-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:  8.206e-01  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 145.494 27.414
Photon Index (Free Index): 9.43 +/- 5.00
Photon Flux (Free Index): 7.07e-08 +/- 6.96e-07
Energy Flux (Free Index): 7.97e-06 +/- 7.83e-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/432892/cmap_HighResolution_291945601_292204801_4FGL_J0941.9+2724_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', comment='SUCCESS', energy_flux2='7.97e-06', dlogl='6.92e-01', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-08-31 22:41:21.250359', photon_index_error2='5.00', photon_index2='9.43', ts='0.81', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='7.83e-05', EG='0.90', time_epoch_completed='1630474881.25', return_code='0', job_id='432892', GAL2='1.29', EG2='0.82', return_code2='102', photon_flux_error2='6.96e-07', ts2='2.41', photon_index='2.43' WHERE bin_id='203' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:41:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 432892: <4FGL_J0941.9+2724_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin203 145.494 27.4136 291945601 292204801 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 :                                   610.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

