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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1583
RA = 353.557, Dec = 7.602
tmin = 649641601, tmax = 649900801
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='21525', job_status='RUN', time_executed='2021-09-29 23:43:45.895593', time_epoch_executed='1632984225.9' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21525

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21525/ft1_4FGL_J2334.2+0736_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21525/ft1_4FGL_J2334.2+0736_daily_bin1583.fits outfile=/scratch/kocevski/21525/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1583.fits ra=353.557 dec=7.602 rad=12.0 tmin=649641601.0 tmax=649900801.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 1.99
user 1.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/21525/ltcube_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.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/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits
.....................!
real 9.63
user 9.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/21525/ltcube_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits outfile=/scratch/kocevski/21525/expmap_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.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/21525/ltcube_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits
.....................!
real 141.67
user 137.79
sys 3.66

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/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits scfile=/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits outfile=/scratch/kocevski/21525/cmap_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits scfile=/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits outfile=/scratch/kocevski/21525/cmap_HighResolution_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.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.44
user 0.30
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits', '/scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits', expMap='/scratch/kocevski/21525/expmap_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits', expCube='/scratch/kocevski/21525/ltcube_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21525/Model_4FGL_J2334.2+0736_daily_bin1583.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/21525/ft1_filtered_4FGL_J2334.2+0736_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/21525/ft2_4FGL_J2334.2+0736_daily_bin1583.fits
Exposure map: /scratch/kocevski/21525/expmap_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits
Exposure cube: /scratch/kocevski/21525/ltcube_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21525/Model_4FGL_J2334.2+0736_daily_bin1583.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) = 8542.45325289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.706       1.0000         .10000E-03   10000.    
     7 'norm      '    .40709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.198       1.0000         .10000E-03   10000.    
    11 'norm      '    14.879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1926       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78792E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12546E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9280       1.0000         .10000E-03   10000.    
    17 'norm      '    28.815       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.309       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.383       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.209       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91231       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8542.449     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2378 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9520        10.499       -.25629E-05    .22667E-03
   2  Prefactor     .10000E-03    3.3788       -.25031E-06** at limit **
   3  Prefactor     28.207        12.422       -.12110E-05   -.48934E-03
   4  Prefactor     .10000E-03    1.7707        .74516E-07** at limit **
   5  Prefactor     .10000E-03    2.5968        .15118E-06** at limit **
   6  Prefactor     14.706        1.3729        .12768E-06    .61250E-03
   7  norm          .40698        .56787       -.20538E-08    .10310E-03
   8  Prefactor     .10000E-03    6.3637       -.36488E-06** at limit **
   9  Prefactor     9.1635        2.8892        .34755E-06    .58432E-03
  10  Prefactor     19.277        20.521        .25554E-05    .24563E-02
  11  norm          14.884        8.4784       -.14254E-06    .57263E-04
  12  Prefactor     2.1849        6.4606        .49815E-07   -.18738E-05
  13  Prefactor     39.618        8.1828        .93028E-06   -.34933E-02
  14  Prefactor     .15435E-03    7370.5       -.11506E-03** at limit **
  15  Prefactor     .10000E-03    28.240        .40821E-06** at limit **
  16  norm          4.9285        7.5731       -.23860E-06   -.73129E-05
  17  norm          28.911        21.742        .77241E-06    .28740E-03
  18  Prefactor     .10000E-03    3.0476        .88966E-07** at limit **
  19  Prefactor     30.360        33.471       -.25356E-05   -.10333E-02
  20  Prefactor     14.383        13.331        .34067E-06   -.56437E-03
  21  Prefactor     .10000E-03    3.4033        .82744E-08** at limit **
  22  Prefactor     36.212        2.6603        .23690E-06    .32775E-02
  23  Normalizat    .91233        .19464        .31756E-06    .46458E-04
  24  Prefactor     .81909        .11987        .10977E-06    .50717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95202
  Prefactor  = 0.0001
  Prefactor  = 28.2066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7063
  norm       = 0.406984
  Prefactor  = 0.0001
  Prefactor  = 9.16354
  Prefactor  = 19.2771
  norm       = 14.8844
  Prefactor  = 2.18491
  Prefactor  = 39.6181
  Prefactor  = 0.000154354
  Prefactor  = 0.0001
  norm       = 4.92848
  norm       = 28.9115
  Prefactor  = 0.0001
  Prefactor  = 30.3601
  Prefactor  = 14.383
  Prefactor  = 0.0001
  Prefactor  = 36.2121
  Normalizat = 0.912328
  Prefactor  = 0.819086
 **********
 **   18 **HESSE 
 **********

 FCN=   8542.449     FROM HESSE     STATUS=OK           463 CALLS     2841 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9520        10.832        .45168E-02   -1.5263    
   2  Prefactor     .10000E-03    3.3877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.207        35.239        .18862E-02   -1.4645    
   4  Prefactor     .10000E-03    1.7314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.706        12.176        .26111E-02   -1.4941    
   7  norm          .40698        .77373        .19727E-01   -1.5580    
   8  Prefactor     .10000E-03    6.3278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1635        11.503        .33096E-02   -1.5102    
  10  Prefactor     19.277        50.903        .22853E-02   -1.4830    
  11  norm          14.884        8.6716        .25958E-02   -1.4936    
  12  Prefactor     2.1849        6.6367        .69481E-02   -1.5412    
  13  Prefactor     39.618        175.92        .15923E-02   -1.4448    
  14  Prefactor     .15435E-03    13.070        .94096E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9285        7.5856        .45295E-02   -1.5264    
  17  norm          28.911        24.811        .18659E-02   -1.4632    
  18  Prefactor     .10000E-03    2.9773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.360        36.388        .18194E-02   -1.4605    
  20  Prefactor     14.383        13.462        .26403E-02   -1.4949    
  21  Prefactor     .10000E-03    1.8060        .48501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.212        18.594        .16650E-02   -1.4504    
  23  Normalizat    .91233        .17065        .66406E-01   -.96028    
  24  Prefactor     .81909        .10288        .43964E-01   -.99029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67943e-06
Minuit parameter uncertainties:
  1  10.8367
  2  9.43207e-09
  3  35.2654
  4  4.82979e-07
  5  5.22336e-07
  6  12.1782
  7  0.773744
  8  3.5741e-06
  9  11.5061
  10  51.0178
  11  8.6723
  12  6.63896
  13  167.799
  14  0.0533181
  15  1.72989e-05
  16  7.58712
  17  24.82
  18  1.85009e-07
  19  36.4143
  20  13.4645
  21  1.65977e-06
  22  18.597
  23  0.170752
  24  0.102908
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.000e-04  1.730e-05  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:  8.191e-01  1.029e-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:  9.123e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21525/likelihoodResults_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.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) = 8542.44888812
delta logL = -0.000168867143657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8542.44871916
delta logL = 1.0009171092e-07

Fit tolerance = 1e-08

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

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

 FCN=   8542.145     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      269 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3477        78.317        .90712E-02   -.12849E-02
   2  Index         4.0427        6.8942        .15106        .16484E-03
   3  Normalizat    .87026        .74302E-01    .67782E-01    .29481E-04
   4  Prefactor     .83226        .40330E-01    .43964E-01    .35968E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34771
  Index      = 4.04267
  Normalizat = 0.870256
  Prefactor  = 0.832263
 **********
 **   18 **HESSE 
 **********

 FCN=   8542.145     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3477        117.10        .13699E-03   -1.5940    
   2  Index         4.0427        6.7595        .81343E-02   -.19266    
   3  Normalizat    .87026        .17880        .29987E-03   -.97513    
   4  Prefactor     .83226        .11444        .19619E-03   -.98550    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46701e-06
Minuit parameter uncertainties:
  1  25.1757
  2  9.02945
  3  0.178921
  4  0.11447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21525': 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) = 8542.14478491
delta logL = 0.303934349955

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  1.348e+00  2.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
431        Index:  4.043e+00  9.029e+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:  8.323e-01  1.145e-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:  8.703e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/21525/cmap_HighResolution_649641601_649900801_4FGL_J2334.2+0736_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-29 23:53:07.329529', job_id='21525', GAL2='0.83', fit_tolerance='1e-08', EG2='0.87', EG='0.91', time_epoch_completed='1632984787.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.04e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1583' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 21525: <4FGL_J2334.2+0736_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1583> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:41:01 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:41:02 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:41:02 2021
Terminated at Wed Sep 29 23:53:09 2021
Results reported at Wed Sep 29 23:53:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1583 353.557 7.602 649641601 649900801 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 :                                   551.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

