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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin585
RA = 353.557, Dec = 7.602
tmin = 390960001, tmax = 391219201
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='17967', job_status='RUN', time_executed='2021-09-29 23:30:35.615629', time_epoch_executed='1632983435.62' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17967/ft1_4FGL_J2334.2+0736_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17967/ft1_4FGL_J2334.2+0736_daily_bin585.fits outfile=/scratch/kocevski/17967/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin585.fits ra=353.557 dec=7.602 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.52
user 4.24
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.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/17967/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/17967/ltcube_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.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/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits
.....................!
real 11.86
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/17967/ltcube_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits outfile=/scratch/kocevski/17967/expmap_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.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/17967/ltcube_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits
.....................!
real 191.24
user 185.85
sys 5.00

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits outfile=/scratch/kocevski/17967/cmap_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.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=353.557 yref=7.602 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits outfile=/scratch/kocevski/17967/cmap_HighResolution_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.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=353.557 yref=7.602 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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17967/Model_4FGL_J2334.2+0736_daily_bin585.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/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits.....................!
real 67.06
user 65.65
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits', '/scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits', expMap='/scratch/kocevski/17967/expmap_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits', expCube='/scratch/kocevski/17967/ltcube_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17967/Model_4FGL_J2334.2+0736_daily_bin585.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17967/ft1_filtered_4FGL_J2334.2+0736_daily_bin585.fits
Spacecraft file(s): /scratch/kocevski/17967/ft2_4FGL_J2334.2+0736_daily_bin585.fits
Exposure map: /scratch/kocevski/17967/expmap_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits
Exposure cube: /scratch/kocevski/17967/ltcube_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17967/Model_4FGL_J2334.2+0736_daily_bin585.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) = 5923.35146464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33242E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50520E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6758       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.151       1.0000         .10000E-03   10000.    
    16 'norm      '    .11047E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0523       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .57168       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1674       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   5923.346     FROM MIGRAD    STATUS=FAILED      1002 CALLS     3205 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.240        30.104        .53958E-04   -.50693E-04
   2  Prefactor     .10000E-03    44.035        .18142E-02** at limit **
   3  Prefactor     27.005        42.324        .77042E-04    .15494E-04
   4  Prefactor     .10000E-03    2.2646        .11293E-02** at limit **
   5  Prefactor     .10000E-03    4.5395        .15999E-02** at limit **
   6  Prefactor     .10001E-03    159.03        .61250E-02** at limit **
   7  norm          1.2770        1.0735        .71386E-04    .30099E-04
   8  Prefactor     .10024E-03    14.397        .65693E-01** at limit **
   9  Prefactor     5.5458        17.871        .17056E-03    .59989E-05
  10  Prefactor     .10000E-03    21.770        .18142E-02** at limit **
  11  norm          .10000E-03    6.7013        .18142E-02** at limit **
  12  Prefactor     7.6691        7.0898        .14474E-03    .68412E-04
  13  Prefactor     .10000E-03    74.486        .18142E-02** at limit **
  14  Prefactor     15.947        12.681        .10030E-03   -.15189E-04
  15  Prefactor     17.130        31.827        .96712E-04    .16810E-04
  16  norm          .10000E-03    14.247        .18142E-02** at limit **
  17  norm          .10000E-03    10.814        .18142E-02** at limit **
  18  Prefactor     .45999        10.587        .24308E-02    .25584E-03
  19  Prefactor     .10000E-03    59.086        .18142E-02** at limit **
  20  Prefactor     .80195        292.80        .73781E-02    .57465E-03
  21  Prefactor     5.1560        7.0276        .17707E-03   -.12584E-04
  22  Prefactor     1.0349        143.92        .62544E-02    .76681E-03
  23  Normalizat    .57175        .26773        .38830E-03    .68218E-05
  24  Prefactor     1.1673        .16039        .18525E-03    .54252E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5923.346     FROM SIMPLEX   STATUS=PROGRESS    1285 CALLS     4490 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.240        30.104        .51545E-06   -1.4220    
   2  Prefactor     .10000E-03    44.035        .90095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.005        42.324        .52823E-06   -1.4668    
   4  Prefactor     .10000E-03    2.2646        .25822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5395        .25328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    159.03        .31123E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2770        1.0735        .55760E-06   -1.5482    
   8  Prefactor     .10024E-03    14.397        .16564E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5458        17.871        .54837E-06   -1.5237    
  10  Prefactor     .10000E-03    21.770        .75162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7013        .25761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6691        7.0898        .54566E-06   -1.5154    
  13  Prefactor     .10000E-03    74.486        .45968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.947        12.681        .53675E-06   -1.4909    
  15  Prefactor     17.130        31.827        .53581E-06   -1.4880    
  16  norm          .10000E-03    14.247        .54955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.814        .11582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .45999        10.587        .56066E-06   -1.5572    
  19  Prefactor     .10000E-03    59.086        .32849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80195        292.80        .55156E-06   -1.5529    
  21  Prefactor     5.1560        7.0276        .54909E-06   -1.5254    
  22  Prefactor     1.0349        143.92        .55524E-06   -1.5505    
  23  Normalizat    .57175        .26773        .39310E-06   -1.0920    
  24  Prefactor     1.1673        .16039        .31450E-06   -.87343    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5923.346     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     4882 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.240        30.042        .10792E-04   -.44246E-05
   2  Prefactor     .10000E-03    44.070        .36285E-03** at limit **
   3  Prefactor     27.005        42.240        .30817E-05    .59026E-05
   4  Prefactor     .10000E-03    2.2647        .22586E-03** at limit **
   5  Prefactor     .10000E-03    4.5398        .31999E-03** at limit **
   6  Prefactor     .10000E-03    165.13        .24500E-03** at limit **
   7  norm          1.2770        1.0730        .28555E-05    .13537E-04
   8  Prefactor     .10023E-03    12.380        .72591E-01** at limit **
   9  Prefactor     5.5458        17.849        .68224E-05    .33327E-06
  10  Prefactor     .10000E-03    21.770        .36285E-03** at limit **
  11  norm          .10000E-03    6.7028        .36285E-03** at limit **
  12  Prefactor     7.6691        7.0846        .57897E-05    .16887E-04
  13  Prefactor     .10000E-03    74.486        .36285E-03** at limit **
  14  Prefactor     15.947        12.563        .40119E-05    .10768E-04
  15  Prefactor     17.130        31.747        .38685E-05    .13518E-04
  16  norm          .10000E-03    14.255        .36285E-03** at limit **
  17  norm          .10000E-03    10.814        .36285E-03** at limit **
  18  Prefactor     .45994        10.309        .97231E-04   -.35077E-05
  19  Prefactor     .10000E-03    59.102        .36285E-03** at limit **
  20  Prefactor     .80211        290.25        .14756E-02    .12404E-05
  21  Prefactor     5.1560        7.0217        .70828E-05    .32102E-06
  22  Prefactor     1.0350        140.96        .12509E-02    .22630E-05
  23  Normalizat    .57175        .26442        .15532E-04    .13029E-04
  24  Prefactor     1.1673        .15983        .74098E-05    .23935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.2399
  Prefactor  = 0.0001
  Prefactor  = 27.005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27699
  Prefactor  = 0.000100229
  Prefactor  = 5.54581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.66913
  Prefactor  = 0.0001
  Prefactor  = 15.9473
  Prefactor  = 17.1298
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.459939
  Prefactor  = 0.0001
  Prefactor  = 0.802114
  Prefactor  = 5.15601
  Prefactor  = 1.03495
  Normalizat = 0.571751
  Prefactor  = 1.16731
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.346     FROM HESSE     STATUS=OK           387 CALLS     5269 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.240        30.017        .21583E-05   -1.4220    
   2  Prefactor     .10000E-03    44.071        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.005        42.056        .61633E-06   -1.4668    
   4  Prefactor     .10000E-03    2.2647        .45172E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5398        .63997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    165.14        .49000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2770        1.0730        .57109E-06   -1.5482    
   8  Prefactor     .10023E-03    12.944        .70370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5458        17.831        .13645E-05   -1.5237    
  10  Prefactor     .10000E-03    21.770        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7029        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6691        7.0854        .11579E-05   -1.5154    
  13  Prefactor     .10000E-03    74.487        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.947        12.566        .80237E-06   -1.4909    
  15  Prefactor     17.130        31.501        .77370E-06   -1.4880    
  16  norm          .10000E-03    14.256        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.814        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .45994        10.287        .38893E-05   -1.5572    
  19  Prefactor     .10000E-03    59.102        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80211        287.51        .59025E-04   -1.5529    
  21  Prefactor     5.1560        7.0173        .14166E-05   -1.5254    
  22  Prefactor     1.0350        139.74        .50035E-04   -1.5505    
  23  Normalizat    .57175        .26334        .31064E-05   -1.0920    
  24  Prefactor     1.1673        .15947        .14820E-05   -.87343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09102e-11
Minuit parameter uncertainties:
  1  30.0247
  2  6.87744e-07
  3  42.1019
  4  1.58663e-08
  5  5.32537e-08
  6  0.000141472
  7  1.07299
  8  0.00344368
  9  17.8479
  10  7.84148e-08
  11  5.86725e-07
  12  7.08618
  13  7.96057e-07
  14  12.5685
  15  31.532
  16  2.29062e-07
  17  4.29805e-07
  18  4.35063
  19  9.38011e-07
  20  30.5189
  21  7.01842
  22  24.1088
  23  0.263922
  24  0.159537
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.713e+01  3.153e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.167e+00  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  5.718e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17967/likelihoodResults_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.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) = 5923.13156129
delta logL = 0.214397637447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5923.11917113
delta logL = 0.226787794797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4386       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1998       1.0000          .0000       10.000    
     3 'Normalizat'    .54799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   5923.119     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      287 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4307        37.222        .13800E-03   -.37039E-03
   2  Index         3.2003        2.0875        .77717E-02   -.97418E-04
   3  Normalizat    .54801        .23883        .39612E-03    .11856E-03
   4  Prefactor     1.1761        .15817        .18460E-03    .20457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.43074
  Index      = 3.20025
  Normalizat = 0.548007
  Prefactor  = 1.1761
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.119     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4307        20.703        .55200E-05   -1.5127    
   2  Index         3.2003        1.2475        .31087E-03   -.36821    
   3  Normalizat    .54801        .23825        .15845E-04   -1.1024    
   4  Prefactor     1.1761        .15685        .36919E-04   -.87070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44715e-10
Minuit parameter uncertainties:
  1  20.7203
  2  1.2629
  3  0.238697
  4  0.156908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17967': 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) = 5923.11917105
delta logL = 0.226787876791

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  8.431e+00  2.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  3.200e+00  1.263e+00  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.176e+00  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  5.480e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
Ra Dec: 353.557 7.602

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/17967/cmap_HighResolution_390960001_391219201_4FGL_J2334.2+0736_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-29 23:43:29.495760', job_id='17967', GAL2='1.18', fit_tolerance='1e-08', EG2='0.55', EG='0.57', time_epoch_completed='1632984209.5', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.27e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='585' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:43:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 17967: <4FGL_J2334.2+0736_daily_bin585> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin585> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:30:13 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:30:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:30:14 2021
Terminated at Wed Sep 29 23:43:30 2021
Results reported at Wed Sep 29 23:43:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin585 353.557 7.602 390960001 391219201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

