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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1223
RA = 359.755, Dec = 39.3669
tmin = 556329601, tmax = 556588801
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='240322', job_status='RUN', time_executed='2021-09-30 11:59:08.371291', time_epoch_executed='1633028348.37' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240322/ft1_4FGL_J2359.0+3922_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240322/ft1_4FGL_J2359.0+3922_daily_bin1223.fits outfile=/scratch/kocevski/240322/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1223.fits ra=359.755 dec=39.3669 rad=12.0 tmin=556329601.0 tmax=556588801.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.74
user 3.53
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.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/240322/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/240322/ltcube_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.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/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits
.....................!
real 11.80
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/240322/ltcube_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits outfile=/scratch/kocevski/240322/expmap_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.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/240322/ltcube_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits
.....................!
real 192.78
user 186.73
sys 5.46

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/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits outfile=/scratch/kocevski/240322/cmap_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits outfile=/scratch/kocevski/240322/cmap_HighResolution_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240322/Model_4FGL_J2359.0+3922_daily_bin1223.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/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits.........................!
real 24.33
user 23.01
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits', '/scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits', expMap='/scratch/kocevski/240322/expmap_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits', expCube='/scratch/kocevski/240322/ltcube_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240322/Model_4FGL_J2359.0+3922_daily_bin1223.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/240322/ft1_filtered_4FGL_J2359.0+3922_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/240322/ft2_4FGL_J2359.0+3922_daily_bin1223.fits
Exposure map: /scratch/kocevski/240322/expmap_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits
Exposure cube: /scratch/kocevski/240322/ltcube_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240322/Model_4FGL_J2359.0+3922_daily_bin1223.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) = 1267.16193031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37531E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18589E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10654E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62626E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.123       1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.664       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12946E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14662E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .91650E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    697.90       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .72541E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.678       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3687       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.

 FCN=   1267.015     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3605 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    558.48        .95355E-07** at limit **
   2  Prefactor     .10000E-03    981.88        .13437E-05** at limit **
   3  norm          .10000E-03    33.009        .29206E-06** at limit **
   4  Prefactor     .10000E-03    15.089        .32834E-06** at limit **
   5  norm          .10000E-03    1323.1        .17805E-06** at limit **
   6  Prefactor     .10000E-03    11.819       -.41570E-06** at limit **
   7  Prefactor     .10000E-03    15.058        .81796E-07** at limit **
   8  Prefactor     .10009E-03    7442.9       -.27331E-04** at limit **
   9  Prefactor     23.467        154.38       -.17987E-04    .91531E-05
  10  Prefactor     63.810        344.43       -.20071E-04    .24828E-04
  11  norm          .10000E-03    2.8893        .97912E-07** at limit **
  12  Prefactor     .10005E-03    178.45        .31401E-04** at limit **
  13  Prefactor     .10000E-03    380.22        .20516E-06** at limit **
  14  norm          .12077        5.0395        .10915E-05   -.46231E-03
  15  Prefactor     .10000E-03    82.503       -.18688E-06** at limit **
  16  norm          .10000E-03    4.2784       -.46069E-07** at limit **
  17  norm          .10000E-03    146.92        .55859E-06** at limit **
  18  Prefactor     .10000E-03    16.428       -.93233E-07** at limit **
  19  norm          .10000E-03    12.937       -.73581E-07** at limit **
  20  Prefactor     68.595        92.695        .24687E-05   -.14605E-03
  21  Prefactor     698.10        1532.0       -.95074E-05    .11692E-05
  22  Prefactor     .10000E-03    33.440       -.19568E-06** at limit **
  23  Prefactor     .10001E-03    631.49       -.50028E-06** at limit **
  24  Prefactor     15.614        37.212        .30980E-05   -.14338E-03
  25  Normalizat    .10000E-01    .15438        .20485E-04** at limit **
  26  Prefactor     1.3682        .17829       -.50104E-05   -.39820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 23.467
  Prefactor  = 63.8103
  norm       = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.000100002
  norm       = 0.120766
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 68.5951
  Prefactor  = 698.098
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 15.6141
  Normalizat = 0.01
  Prefactor  = 1.3682
 **********
 **   18 **HESSE 
 **********

 FCN=   1267.015     FROM HESSE     STATUS=OK           438 CALLS     4043 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    558.47        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    981.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    33.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.092        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1323.0        .20720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.920        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.060        .13495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10009E-03    7427.1        .18663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.467        157.42        .83300E-04   -1.4739    
  10  Prefactor     63.810        342.24        .25147E-03   -1.4109    
  11  norm          .10000E-03    2.9578        .59081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    183.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    380.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12077        60.269        .15200E-02   -1.5638    
  15  Prefactor     .10000E-03    82.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2793        .71916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    146.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.433        .14095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.948        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.595        92.904        .48462E-04   -1.4050    
  21  Prefactor     698.10        1531.6        .78495E-04   -1.0360    
  22  Prefactor     .10000E-03    33.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    631.90        .18642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.614        37.161        .10115E-03   -1.4917    
  25  Normalizat    .10000E-01    .19137        .86124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3682        .18567        .15347E-03   -.81301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81335e-09
Minuit parameter uncertainties:
  1  0.00050502
  2  0.00296483
  3  1.70899e-05
  4  7.83012e-06
  5  0.000663922
  6  0.000106186
  7  2.11958e-05
  8  0.0473197
  9  122.025
  10  298.249
  11  2.07615e-05
  12  0.00596878
  13  0.00174134
  14  5.39896
  15  2.83761e-05
  16  3.24658e-06
  17  0.000919535
  18  1.26009e-05
  19  2.13778e-05
  20  93.1008
  21  1643.1
  22  4.23806e-05
  23  0.00542381
  24  37.2162
  25  9.36609e-06
  26  0.185763
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.561e+01  3.722e+01  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.368e+00  1.858e-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:  1.000e-02  9.366e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/240322/likelihoodResults_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.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) = 1266.99840513
delta logL = 0.0167393196764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1266.99080603
delta logL = 0.0243384209937

Fit tolerance = 1e-08

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

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

 FCN=   1266.991     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      230 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.246        6113.3        .29866E-02    .22111E-03
   2  Index         2.6754        7.9862        .22963E-01    .43570E-04
   3  Normalizat    .10000E-01    .17340        .21636    ** at limit **
   4  Prefactor     1.3648        .17748        .31566E-01    .14005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2462
  Index      = 2.67537
  Normalizat = 0.01
  Prefactor  = 1.36479
 **********
 **   18 **HESSE 
 **********

 FCN=   1266.991     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.246        34.881        .11946E-03   -1.5037    
   2  Index         2.6754        1.4998        .79955E-03   -.48355    
   3  Normalizat    .10000E-01    .18878        .85791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3648        .15653        .15358E-03   -.81400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29992e-10
Minuit parameter uncertainties:
  1  34.9447
  2  1.53005
  3  3.6187e-08
  4  0.156584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240322': 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) = 1266.99080593
delta logL = 0.024338523338

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.125e+01  3.494e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  2.675e+00  1.530e+00  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.365e+00  1.566e-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:  1.000e-02  3.619e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/240322/cmap_HighResolution_556329601_556588801_4FGL_J2359.0+3922_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-02', job_status='DONE', photon_flux_upper_limit='6.11e-07', time_completed='2021-09-30 12:05:46.843104', job_id='240322', GAL2='1.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633028746.84', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.43e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1223' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 240322: <4FGL_J2359.0+3922_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1223> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:55:12 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:55:14 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:55:14 2021
Terminated at Thu Sep 30 12:05:47 2021
Results reported at Thu Sep 30 12:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1223 359.755 39.3669 556329601 556588801 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 :                                   394.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             209.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

