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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1191
RA = 359.755, Dec = 39.3669
tmin = 548035201, tmax = 548294401
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='239057', job_status='RUN', time_executed='2021-09-30 11:53:01.057122', time_epoch_executed='1633027981.06' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239057/ft1_4FGL_J2359.0+3922_daily_bin1191.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239057/ft1_4FGL_J2359.0+3922_daily_bin1191.fits outfile=/scratch/kocevski/239057/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1191.fits ra=359.755 dec=39.3669 rad=12.0 tmin=548035201.0 tmax=548294401.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.81
user 3.59
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.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/239057/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1191.fits evtable="EVENTS" outfile="/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits" evtable="EVENTS" scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits sctable="SC_DATA" outfile=/scratch/kocevski/239057/ltcube_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.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/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits
.....................!
real 11.85
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits evtable="EVENTS" scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits sctable="SC_DATA" expcube=/scratch/kocevski/239057/ltcube_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits outfile=/scratch/kocevski/239057/expmap_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.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/239057/ltcube_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits
.....................!
real 190.17
user 185.35
sys 4.50

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits outfile=/scratch/kocevski/239057/cmap_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.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=359.755 yref=39.3669 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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits outfile=/scratch/kocevski/239057/cmap_HighResolution_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.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=359.755 yref=39.3669 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits evtable="EVENTS" scfile=/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/239057/Model_4FGL_J2359.0+3922_daily_bin1191.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits.....................!
real 40.55
user 39.29
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits', '/scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits', expMap='/scratch/kocevski/239057/expmap_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits', expCube='/scratch/kocevski/239057/ltcube_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/239057/Model_4FGL_J2359.0+3922_daily_bin1191.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/239057/ft1_filtered_4FGL_J2359.0+3922_daily_bin1191.fits
Spacecraft file(s): /scratch/kocevski/239057/ft2_4FGL_J2359.0+3922_daily_bin1191.fits
Exposure map: /scratch/kocevski/239057/expmap_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits
Exposure cube: /scratch/kocevski/239057/ltcube_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/239057/Model_4FGL_J2359.0+3922_daily_bin1191.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) = 2998.54312084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13490E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21061E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4084       1.0000         .10000E-03   10000.    
     5 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12534E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11917E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73781E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6885       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73421       1.0000         .10000E-03   10000.    
    16 'norm      '    11.232       1.0000         .10000E-03   10000.    
    17 'norm      '    .11884E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24679E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20929E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13115E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63769       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   2998.463     FROM MIGRAD    STATUS=FAILED      1174 CALLS     3150 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.13        .18142E-02** at limit **
   2  Prefactor     .10000E-03    482.03        .18142E-02** at limit **
   3  norm          .10000E-03    10.766        .17544E-02** at limit **
   4  Prefactor     7.4116        10.604        .14735E-03    .86026E-05
   5  norm          .10000E-03    13.913        .18142E-02** at limit **
   6  Prefactor     .10000E-03    24.152        .36285E-03** at limit **
   7  Prefactor     .10000E-03    6.6909        .13819E-02** at limit **
   8  Prefactor     .10000E-03    64.351        .18142E-02** at limit **
   9  Prefactor     .10000E-03    344.24        .18142E-02** at limit **
  10  Prefactor     .10000E-03    99.407        .18142E-02** at limit **
  11  norm          4.1431        4.7024        .12047E-03   -.53981E-04
  12  Prefactor     .10000E-03    7.4840        .14626E-02** at limit **
  13  Prefactor     .10000E-03    88.560        .13059    ** at limit **
  14  norm          3.6888        2.5670        .69178E-04    .14955E-04
  15  Prefactor     .79740        628.59        .65660E-02    .30027E-03
  16  norm          11.230        7.5215        .11753E-03    .12024E-03
  17  norm          .10000E-03    32.747        .18142E-02** at limit **
  18  Prefactor     .10000E-03    118.92        .36285E-03** at limit **
  19  norm          13.915        11.271        .10737E-03   -.89257E-04
  20  Prefactor     .10000E-03    20.133        .18142E-02** at limit **
  21  Prefactor     .10000E-03    187.26        .18142E-02** at limit **
  22  Prefactor     .10000E-03    51.645        .18142E-02** at limit **
  23  Prefactor     .10000E-03    52.837        .18142E-02** at limit **
  24  Prefactor     .10000E-03    9.7483        .16675E-02** at limit **
  25  Normalizat    .63780        .36626        .41934E-03    .29971E-04
  26  Prefactor     1.0328        .19196        .16797E-03   -.53808E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2998.463     FROM SIMPLEX   STATUS=UNCHANGED   1526 CALLS     4676 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.13        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    482.03        .93552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.766        .34587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4116        10.604        .14766E-05   -1.5163    
   5  norm          .10000E-03    13.913        .43828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.152        .64974E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6909        .22875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.351        .50979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    344.24        .14808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    99.407        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1431        4.7024        .14900E-05   -1.5301    
  12  Prefactor     .10000E-03    7.4840        .24433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    88.560        .73983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6888        2.5670        .14924E-05   -1.5324    
  15  Prefactor     .79740        628.59        .15217E-05   -1.5529    
  16  norm          11.230        7.5215        .14641E-05   -1.5038    
  17  norm          .10000E-03    32.747        .68010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    118.92        .69481E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.915        11.271        .14570E-05   -1.4962    
  20  Prefactor     .10000E-03    20.133        .15908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    187.26        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    51.645        .18588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.837        .40024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7483        .13740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .63780        .36626        .10361E-05   -1.0640    
  26  Prefactor     1.0328        .19196        .89241E-06   -.91643    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2998.463     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     5121 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.13        .36285E-03** at limit **
   2  Prefactor     .10000E-03    482.11        .36285E-03** at limit **
   3  norm          .10000E-03    10.766        .35088E-03** at limit **
   4  Prefactor     7.4116        10.604        .58941E-05     .0000    
   5  norm          .10000E-03    13.913        .36285E-03** at limit **
   6  Prefactor     .10000E-03    24.153        .72569E-04** at limit **
   7  Prefactor     .10000E-03    6.6912        .27638E-03** at limit **
   8  Prefactor     .10000E-03    64.352        .36285E-03** at limit **
   9  Prefactor     .10000E-03    344.49        .36285E-03** at limit **
  10  Prefactor     .10000E-03    99.409        .36285E-03** at limit **
  11  norm          4.1431        4.7001        .48187E-05   -.23593E-06
  12  Prefactor     .10000E-03    7.4842        .29251E-03** at limit **
  13  Prefactor     .10000E-03    88.202        .13002    ** at limit **
  14  norm          3.6888        2.5641        .27671E-05    .13558E-04
  15  Prefactor     .79737        571.81        .13132E-02    .79647E-06
  16  norm          11.230        7.5210        .47010E-05    .96734E-06
  17  norm          .10000E-03    32.750        .36285E-03** at limit **
  18  Prefactor     .10000E-03    118.93        .72569E-04** at limit **
  19  norm          13.915        10.801        .42949E-05    .66175E-05
  20  Prefactor     .10000E-03    20.136        .36285E-03** at limit **
  21  Prefactor     .10000E-03    187.26        .36285E-03** at limit **
  22  Prefactor     .10000E-03    51.649        .36285E-03** at limit **
  23  Prefactor     .10000E-03    52.837        .36285E-03** at limit **
  24  Prefactor     .10000E-03    9.7492        .33350E-03** at limit **
  25  Normalizat    .63780        .36521        .16774E-04    .18300E-05
  26  Prefactor     1.0328        .19207        .33594E-04    .81896E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.41157
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68885
  Prefactor  = 0.797367
  norm       = 11.2297
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.637802
  Prefactor  = 1.03284
 **********
 **   18 **HESSE 
 **********

 FCN=   2998.463     FROM HESSE     STATUS=OK           440 CALLS     5561 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.13        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    482.11        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.766        .70176E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4116        10.604        .58941E-05   -1.5163    
   5  norm          .10000E-03    13.913        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.152        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6912        .55275E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    64.352        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    344.50        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    99.409        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1431        4.6984        .96373E-06   -1.5301    
  12  Prefactor     .10000E-03    7.4842        .58503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    87.777        .13022       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6888        2.5629        .55342E-06   -1.5324    
  15  Prefactor     .79737        556.09        .52528E-04   -1.5529    
  16  norm          11.230        7.5207        .94021E-06   -1.5038    
  17  norm          .10000E-03    32.750        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    118.91        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.915        10.697        .85899E-06   -1.4962    
  20  Prefactor     .10000E-03    20.136        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    187.26        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    51.649        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.837        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7492        .66699E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .63780        .36500        .33547E-05   -1.0640    
  26  Prefactor     1.0328        .19208        .67188E-05   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29835e-13
Minuit parameter uncertainties:
  1  3.12901e-07
  2  2.92597e-06
  3  7.63078e-08
  4  10.6063
  5  6.36122e-09
  6  7.51013e-07
  7  4.08603e-08
  8  4.4846e-08
  9  1.31505e-05
  10  2.45678e-07
  11  4.69881
  12  4.88956e-08
  13  2.69271e-05
  14  2.56296
  15  42.5141
  16  7.52134
  17  1.29237e-06
  18  4.72437e-06
  19  10.6988
  20  1.38172e-07
  21  4.24426e-07
  22  2.24422e-06
  23  1.97798e-07
  24  3.66748e-08
  25  0.366393
  26  0.192209
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.000e-04  3.667e-08  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.033e+00  1.922e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  6.378e-01  3.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239057/likelihoodResults_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.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) = 2998.46389432
delta logL = -0.000488424418563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2998.46340655
delta logL = -6.4928417487e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11504E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3232       1.0000          .0000       10.000    
     3 'Normalizat'    .63788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   2998.463     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10182E-03    90.573        .17094E-02** at limit **
   2  Index         2.2576        5.0834        .50000        .17882E-04
   3  Normalizat    .63780        .24947E-01    .41934E-03    .10546E-04
   4  Prefactor     1.0328        .12586E-01    .16797E-03    .54072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101816
  Index      = 2.25764
  Normalizat = 0.637802
  Prefactor  = 1.03284
 **********
 **   18 **HESSE 
 **********

 FCN=   2998.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10182E-03    388.26        .34189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2576        8.3962        .50000       -.58053    
   3  Normalizat    .63780        .53594E-01    .16774E-04   -1.0640    
   4  Prefactor     1.0328        .27038E-01    .33594E-04   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27648e-08
Minuit parameter uncertainties:
  1  0.0534521
  2  618.843
  3  0.0535985
  4  0.0270386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239057': 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) = 2998.46340556
delta logL = 3.43751707987e-07

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.018e-04  5.345e-02  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.258e+00  6.188e+02  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.033e+00  2.704e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  6.378e-01  5.360e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.755 39.367

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/239057/cmap_HighResolution_548035201_548294401_4FGL_J2359.0+3922_daily_bin1191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-30 12:03:34.190811', job_id='239057', GAL2='1.03', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1633028614.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1191' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:03:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 239057: <4FGL_J2359.0+3922_daily_bin1191> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1191> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:50:42 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:50:44 2021
Terminated at Thu Sep 30 12:03:34 2021
Results reported at Thu Sep 30 12:03:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1191 359.755 39.3669 548035201 548294401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

