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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1246
RA = 320.921, Dec = 5.592
tmin = 562291201, tmax = 562550401
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='480329', job_status='RUN', time_executed='2021-09-26 13:03:00.439318', time_epoch_executed='1632686580.44' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480329

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480329/ft1_4FGL_J2123.6+0535_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480329/ft1_4FGL_J2123.6+0535_daily_bin1246.fits outfile=/scratch/kocevski/480329/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1246.fits ra=320.921 dec=5.592 rad=12.0 tmin=562291201.0 tmax=562550401.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.29
user 4.00
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.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/480329/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1246.fits evtable="EVENTS" outfile="/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.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.64
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/480329/ltcube_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.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/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits
.....................!
real 16.14
user 15.72
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/480329/ltcube_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits outfile=/scratch/kocevski/480329/expmap_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.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/480329/ltcube_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits
.....................!
real 240.82
user 234.06
sys 5.85

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

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits outfile=/scratch/kocevski/480329/cmap_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.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=320.921 yref=5.592 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.65
user 0.47
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits outfile=/scratch/kocevski/480329/cmap_HighResolution_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.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=320.921 yref=5.592 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.65
user 0.47
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/480329/Model_4FGL_J2123.6+0535_daily_bin1246.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/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits.....................!
real 40.73
user 39.05
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits', '/scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits', expMap='/scratch/kocevski/480329/expmap_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits', expCube='/scratch/kocevski/480329/ltcube_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/480329/Model_4FGL_J2123.6+0535_daily_bin1246.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/480329/ft1_filtered_4FGL_J2123.6+0535_daily_bin1246.fits
Spacecraft file(s): /scratch/kocevski/480329/ft2_4FGL_J2123.6+0535_daily_bin1246.fits
Exposure map: /scratch/kocevski/480329/expmap_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits
Exposure cube: /scratch/kocevski/480329/ltcube_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/480329/Model_4FGL_J2123.6+0535_daily_bin1246.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) = 2246.61232841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64787E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    80.789       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.340       1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13883E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31241E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14416E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.252       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2246.526     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3455 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    234.57        .20698E-06** at limit **
   2  norm          .10000E-03    12.432        .31752E-07** at limit **
   3  Prefactor     .10008E-03    138.12       -.27788E-05** at limit **
   4  Prefactor     80.166        336.43       -.30656E-05   -.97418E-06
   5  Prefactor     34.329        35.350        .95446E-06    .24768E-03
   6  Prefactor     95.762        86.205        .36602E-06    .30447E-03
   7  Prefactor     .10000E-03    66.335        .52285E-07** at limit **
   8  Prefactor     .10000E-03    33.814       -.17595E-07** at limit **
   9  Prefactor     .10000E-03    154.15       -.33471E-06** at limit **
  10  Prefactor     .10000E-03    229.42       -.24978E-05** at limit **
  11  Prefactor     .10000E-03    230.02       -.14067E-06** at limit **
  12  Prefactor     .10000E-03    8.6901       -.19845E-07** at limit **
  13  Prefactor     14.809        15.733        .14963E-05   -.16839E-03
  14  Prefactor     .10000E-03    7.3491       -.43556E-07** at limit **
  15  Prefactor     .10000E-03    164.52       -.44884E-07** at limit **
  16  Prefactor     .10000E-03    305.35       -.39010E-06** at limit **
  17  Prefactor     .10000E-03    60.059       -.12738E-06** at limit **
  18  Prefactor     .10000E-03    69.151       -.39659E-07** at limit **
  19  norm          .10000E-03    3.2572        .23901E-06** at limit **
  20  norm          .10000E-03    123.92        .15476E-05** at limit **
  21  Prefactor     .10000E-03    8.1220        .34141E-07** at limit **
  22  Prefactor     .10000E-03    88.730        .43285E-06** at limit **
  23  Prefactor     44.253        45.218        .76980E-06    .22035E-04
  24  Prefactor     .10000E-03    46.770        .26142E-06** at limit **
  25  Normalizat    .10000E-01    .35792       -.40283E-04** at limit **
  26  Prefactor     1.2277        .13418        .43606E-05    .23067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100077
  Prefactor  = 80.1662
  Prefactor  = 34.3286
  Prefactor  = 95.7616
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.253
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.22771
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.526     FROM HESSE     STATUS=OK           436 CALLS     3891 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    235.46        .21023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.482        .16323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    138.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     80.166        338.65        .22342E-03   -1.3915    
   5  Prefactor     34.329        35.676        .68384E-04   -1.4535    
   6  Prefactor     95.762        86.706        .41077E-04   -1.3748    
   7  Prefactor     .10000E-03    66.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    154.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    230.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    230.03        .21373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7393        .13627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.809        15.898        .52034E-03   -1.4938    
  14  Prefactor     .10000E-03    7.3493        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    164.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    305.35        .20887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2942        .83359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    124.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1236        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    89.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     44.253        45.261        .60268E-04   -1.4377    
  24  Prefactor     .10000E-03    46.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    2.0968        .14348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.2277        .13848        .15470E-03   -.85483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9106e-09
Minuit parameter uncertainties:
  1  0.00167928
  2  7.25075e-05
  3  0.00654302
  4  332.802
  5  35.6985
  6  86.8209
  7  0.000684124
  8  0.00013308
  9  0.00125106
  10  0.000918749
  11  0.000347413
  12  6.27257e-05
  13  15.9022
  14  2.05165e-05
  15  8.17008e-05
  16  0.00056987
  17  0.000253169
  18  0.000258263
  19  6.88138e-05
  20  0.00153513
  21  1.25478e-05
  22  0.000221386
  23  45.2961
  24  0.000133843
  25  7.6607e-05
  26  0.138517
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.187e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.228e+00  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  7.661e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 3.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480329/likelihoodResults_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.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) = 2246.52582565
delta logL = -2.26074880629e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2246.52580503
delta logL = -1.98755424208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3601       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2246.526     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      251 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6621.0        .90712E-02** at limit **
   2  Index         2.4745        5.9719        .50000       -.54188E-05
   3  Normalizat    .10000E-01    .14028        .32102    ** at limit **
   4  Prefactor     1.2277        .87444E-01    .34006E-01   -.39484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.47452
  Normalizat = 0.01
  Prefactor  = 1.2277
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.526     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    513.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4745        6.2150        .50000       -.52949    
   3  Normalizat    .10000E-01    1.1405        .14390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2277        .10999        .15470E-03   -.85483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81027e-10
Minuit parameter uncertainties:
  1  0.00126054
  2  5.07003
  3  5.17258e-05
  4  0.110013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480329': 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) = 2246.52580294
delta logL = 1.03084403236e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.261e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.475e+00  5.070e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.228e+00  1.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  5.173e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

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/480329/cmap_HighResolution_562291201_562550401_4FGL_J2123.6+0535_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', job_status='DONE', photon_flux_upper_limit='3.66e-07', time_completed='2021-09-26 13:12:54.183931', job_id='480329', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632687174.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1246' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:12:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 480329: <4FGL_J2123.6+0535_daily_bin1246> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1246> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:22 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:00:58 2021
Terminated at Sun Sep 26 13:12:55 2021
Results reported at Sun Sep 26 13:12:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1246 320.921 5.592 562291201 562550401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   592.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            753 sec.

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

