/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7366
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1094
RA = 359.755, Dec = 39.3669
tmin = 522892801, tmax = 523152001
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='238908', job_status='RUN', time_executed='2021-09-30 11:50:50.270308', time_epoch_executed='1633027850.27' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238908/ft1_4FGL_J2359.0+3922_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238908/ft1_4FGL_J2359.0+3922_daily_bin1094.fits outfile=/scratch/kocevski/238908/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1094.fits ra=359.755 dec=39.3669 rad=12.0 tmin=522892801.0 tmax=523152001.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.75
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/238908/ltcube_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.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/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits
.....................!
real 11.59
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/238908/ltcube_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.fits outfile=/scratch/kocevski/238908/expmap_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.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/238908/ltcube_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.fits
.....................!
real 191.44
user 186.59
sys 4.54

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/238908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1094.fits scfile=/scratch/kocevski/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits outfile=/scratch/kocevski/238908/cmap_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238908/ft1_filtered_4FGL_J2359.0+3922_daily_bin1094.fits scfile=/scratch/kocevski/238908/ft2_4FGL_J2359.0+3922_daily_bin1094.fits outfile=/scratch/kocevski/238908/cmap_HighResolution_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4038       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .42615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65636       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31670       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5677       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15826E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.4834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4862       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7912       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9163       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71875       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99089       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=   7940.981     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3196 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    63.967        .49074E-05** at limit **
   2  Prefactor     .10000E-03    18.884        .47888E-06** at limit **
   3  norm          1.3836        41.441        .22106E-05   -.45735E-04
   4  Prefactor     .10000E-03    9.6857       -.64695E-06** at limit **
   5  norm          .42648        2.3215        .15577E-05   -.60275E-03
   6  Prefactor     3.5492        6.1235        .15741E-05    .36188E-03
   7  Prefactor     .66025        2.7608        .17120E-05   -.39116E-03
   8  Prefactor     16.723        20.010       -.10976E-05   -.12021E-03
   9  Prefactor     .10000E-03    9.4884        .41890E-06** at limit **
  10  Prefactor     .10001E-03    46.454       -.45889E-05** at limit **
  11  norm          .10000E-03    1.4109        .12707E-06** at limit **
  12  Prefactor     5.4169        4.6972        .64470E-06   -.54271E-03
  13  Prefactor     .15319        14.468       -.65218E-06    .10186E-03
  14  norm          3.5685        1.5491        .42052E-07    .82430E-04
  15  Prefactor     .10000E-03    5.2585       -.29275E-07** at limit **
  16  norm          .10000E-03    3.4350       -.24378E-06** at limit **
  17  norm          7.4835        7.0789        .72999E-08   -.78376E-05
  18  Prefactor     1.4920        25.176        .27099E-05   -.40949E-04
  19  norm          3.7913        2.6237        .48167E-07   -.92777E-04
  20  Prefactor     .10000E-03    5.9386       -.32763E-07** at limit **
  21  Prefactor     .10000E-03    26.578        .10782E-05** at limit **
  22  Prefactor     .10000E-03    27.236        .28074E-05** at limit **
  23  Prefactor     .10000E-03    23.287       -.29967E-05** at limit **
  24  Prefactor     4.9112        8.6101       -.28996E-06   -.12988E-03
  25  Normalizat    .71864        .19387       -.18338E-05   -.12711E-03
  26  Prefactor     .99093        .89740E-01   -.44654E-08   -.29513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 1.38361
  Prefactor  = 0.0001
  norm       = 0.426476
  Prefactor  = 3.54924
  Prefactor  = 0.660255
  Prefactor  = 16.723
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 5.4169
  Prefactor  = 0.153194
  norm       = 3.56854
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.48347
  Prefactor  = 1.49195
  norm       = 3.79133
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100005
  Prefactor  = 4.91122
  Normalizat = 0.71864
  Prefactor  = 0.99093
 **********
 **   18 **HESSE 
 **********

 FCN=   7940.981     FROM HESSE     STATUS=OK           468 CALLS     3664 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    66.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3836        38.290        .36602E-03   -1.5473    
   4  Prefactor     .10000E-03    9.9255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42648        2.5059        .26746E-03   -1.5577    
   6  Prefactor     3.5492        6.1768        .21454E-03   -1.5331    
   7  Prefactor     .66025        2.7716        .26197E-03   -1.5545    
   8  Prefactor     16.723        19.519        .97910E-04   -1.4890    
   9  Prefactor     .10000E-03    9.5244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    48.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1567        .20488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4169        4.7410        .86326E-03   -1.5242    
  13  Prefactor     .15319        13.240        .11359       -1.5630    
  14  norm          3.5685        1.5453        .70304E-04   -1.5330    
  15  Prefactor     .10000E-03    5.3161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.163        .29559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4835        7.0811        .14661E-03   -1.5161    
  18  Prefactor     1.4920        22.173        .35183E-03   -1.5464    
  19  norm          3.7913        2.6238        .11595E-03   -1.5319    
  20  Prefactor     .10000E-03    5.9427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9112        8.1631        .18140E-03   -1.5265    
  25  Normalizat    .71864        .21521        .36324E-03   -1.0316    
  26  Prefactor     .99093        .10087        .15167E-03   -.93032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11394e-09
Minuit parameter uncertainties:
  1  0.00191165
  2  0.000103088
  3  14.5672
  4  4.6203e-05
  5  2.06747
  6  6.17792
  7  2.70555
  8  19.5265
  9  6.73633e-05
  10  0.0014542
  11  6.2347e-06
  12  4.74128
  13  2.84804
  14  1.54528
  15  2.17215e-06
  16  0.000111993
  17  7.08192
  18  11.508
  19  2.62387
  20  3.3838e-06
  21  0.000274129
  22  0.000689921
  23  0.00068948
  24  8.16498
  25  0.215466
  26  0.100884
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  4.911e+00  8.165e+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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  9.909e-01  1.009e-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:  7.186e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238908/likelihoodResults_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.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) = 7940.86962123
delta logL = 0.111457658411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7940.84899194
delta logL = 0.132086946453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4855       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1034       1.0000          .0000       10.000    
     3 'Normalizat'    .69506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99829       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=   7940.849     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4829        38.328        .87988E-02    .12158E-02
   2  Index         3.1043        3.0015        .12220        .20148E-03
   3  Normalizat    .69500        .46830E-01    .83312E-01   -.76479E-05
   4  Prefactor     .99836        .22190E-01    .34209E-01   -.16476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48286
  Index      = 3.1043
  Normalizat = 0.695005
  Prefactor  = 0.998357
 **********
 **   18 **HESSE 
 **********

 FCN=   7940.849     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      308 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4829        101.34        .12476E-03   -1.5464    
   2  Index         3.1043        6.3209        .71021E-02   -.38887    
   3  Normalizat    .69500        .19954        .36895E-03   -1.0409    
   4  Prefactor     .99836        .92444E-01    .15116E-03   -.92784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1817e-09
Minuit parameter uncertainties:
  1  24.5597
  2  7.47419
  3  0.199747
  4  0.0924584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238908': 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) = 7940.8489914
delta logL = 0.132087487209

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.483e+00  2.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
519        Index:  3.104e+00  7.474e+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:  9.984e-01  9.246e-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.950e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 359.755 39.367

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/238908/cmap_HighResolution_522892801_523152001_4FGL_J2359.0+3922_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-30 12:05:07.297937', job_id='238908', GAL2='1.00', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1633028707.3', return_code2='102', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.32e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1094' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 238908: <4FGL_J2359.0+3922_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1094 359.755 39.3669 522892801 523152001 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 :                                   850.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            879 sec.

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

