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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin536
RA = 321.595, Dec = -46.0978
tmin = 378259201, tmax = 378518401
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='484779', job_status='RUN', time_executed='2021-09-26 13:16:44.527931', time_epoch_executed='1632687404.53' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484779/ft1_4FGL_J2126.3-4605_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484779/ft1_4FGL_J2126.3-4605_daily_bin536.fits outfile=/scratch/kocevski/484779/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin536.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=378259201.0 tmax=378518401.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 5.39
user 4.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.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/484779/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.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.61
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/484779/ltcube_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.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/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits
.....................!
real 13.94
user 13.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/484779/ltcube_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits outfile=/scratch/kocevski/484779/expmap_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.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/484779/ltcube_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits
.....................!
real 194.68
user 187.87
sys 5.21

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

Setting source of interest to:
4FGL J2126.3-4605 @ 321.595 -46.0978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits outfile=/scratch/kocevski/484779/cmap_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.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=321.595 yref=-46.0978 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits outfile=/scratch/kocevski/484779/cmap_HighResolution_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.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=321.595 yref=-46.0978 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.60
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484779/Model_4FGL_J2126.3-4605_daily_bin536.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/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits.....................!
real 66.79
user 64.52
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits', '/scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits', expMap='/scratch/kocevski/484779/expmap_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits', expCube='/scratch/kocevski/484779/ltcube_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484779/Model_4FGL_J2126.3-4605_daily_bin536.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2126.3-4605'

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.352e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/484779/ft1_filtered_4FGL_J2126.3-4605_daily_bin536.fits
Spacecraft file(s): /scratch/kocevski/484779/ft2_4FGL_J2126.3-4605_daily_bin536.fits
Exposure map: /scratch/kocevski/484779/expmap_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits
Exposure cube: /scratch/kocevski/484779/ltcube_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484779/Model_4FGL_J2126.3-4605_daily_bin536.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) = 8779.86607814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3589       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12369E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54976       1.0000         .10000E-03   10000.    
    14 'norm      '    15.507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4512       1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.980       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9744       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69479       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8779.833     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2513 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .87257        .19028E-07** at limit **
   2  norm          .10000E-03    9.6995        .16037E-07** at limit **
   3  Prefactor     .10000E-03    16.301        .39767E-06** at limit **
   4  Prefactor     .10000E-03    27.370        .29252E-06** at limit **
   5  Prefactor     .10000E-03    1.1195       -.89129E-07** at limit **
   6  Prefactor     2.3588        8.7718        .89112E-06   -.38500E-05
   7  norm          1.5947        1.4262        .14232E-06   -.46327E-04
   8  Prefactor     .10000E-03    20.125       -.10508E-06** at limit **
   9  Prefactor     .10000E-03    20.518       -.21524E-06** at limit **
  10  Prefactor     13.510        7.6679        .85928E-06   -.16746E-03
  11  Prefactor     6.4908        20.415       -.16003E-06   -.14906E-04
  12  Prefactor     .10000E-03    40.522        .43566E-06** at limit **
  13  Prefactor     .55108        3.2658        .27189E-05   -.11867E-03
  14  norm          15.508        4.9490       -.32480E-07   -.35371E-04
  15  Prefactor     .10000E-03    4.8881        .77492E-07** at limit **
  16  Prefactor     .68919        4.4791        .14575E-06   -.79445E-05
  17  Prefactor     15.009        23.512       -.89328E-06   -.24294E-03
  18  Prefactor     .10000E-03    3.3446        .51299E-07** at limit **
  19  Prefactor     7.4515        3.5944        .38304E-07   -.13047E-03
  20  Prefactor     81.998        72.913        .62110E-06    .60154E-04
  21  norm          .10000E-03    1.5159        .12662E-07** at limit **
  22  Prefactor     1.9746        3.2341        .57027E-06   -.73441E-05
  23  Prefactor     .10000E-03    3.7714        .93327E-07** at limit **
  24  Normalizat    .69469        .18422       -.13624E-05   -.12652E-03
  25  Prefactor     1.2870        .11763       -.22747E-06   -.19538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.35877
  norm       = 1.59466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5101
  Prefactor  = 6.49084
  Prefactor  = 0.0001
  Prefactor  = 0.55108
  norm       = 15.5075
  Prefactor  = 0.0001
  Prefactor  = 0.689189
  Prefactor  = 15.009
  Prefactor  = 0.0001
  Prefactor  = 7.45145
  Prefactor  = 81.9984
  norm       = 0.0001
  Prefactor  = 1.97456
  Prefactor  = 0.0001
  Normalizat = 0.694688
  Prefactor  = 1.28695
 **********
 **   18 **HESSE 
 **********

 FCN=   8779.833     FROM HESSE     STATUS=OK           427 CALLS     2940 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88127        .85477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.7457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6164        .19072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3588        8.7376        .26684E-03   -1.5401    
   7  norm          1.5947        1.4110        .10142E-03   -1.5455    
   8  Prefactor     .10000E-03    20.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.510        7.6244        .54488E-03   -1.4973    
  11  Prefactor     6.4908        20.347        .15752E-03   -1.5198    
  12  Prefactor     .10000E-03    41.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55108        3.2681        .31948E-03   -1.5560    
  14  norm          15.508        4.9393        .10171E-03   -1.4920    
  15  Prefactor     .10000E-03    4.9672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68919        11.278        .37704E-02   -1.5542    
  17  Prefactor     15.009        23.543        .10326E-03   -1.4933    
  18  Prefactor     .10000E-03    3.3657        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4515        3.5950        .11854E-03   -1.5162    
  20  Prefactor     81.998        72.858        .22181E-03   -1.3894    
  21  norm          .10000E-03    1.5160        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9746        3.2260        .20728E-03   -1.5427    
  23  Prefactor     .10000E-03    3.8420        .17768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69469        .20390        .35430E-03   -1.0410    
  25  Prefactor     1.2870        .13131        .18095E-03   -.83696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77557e-08
Minuit parameter uncertainties:
  1  5.09689e-07
  2  2.45248e-06
  3  0.000112223
  4  0.000124853
  5  0.000120177
  6  8.74235
  7  1.41102
  8  7.2501e-05
  9  0.000101579
  10  7.62498
  11  20.3682
  12  0.000122189
  13  2.68399
  14  4.9394
  15  1.9708e-05
  16  5.57683
  17  23.5574
  18  8.59448e-07
  19  3.59513
  20  72.937
  21  2.31571e-07
  22  3.22631
  23  5.5095e-06
  24  0.204125
  25  0.131346
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.351e+01  7.625e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.287e+00  1.313e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.947e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.13e-05

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) = 8778.20631898
delta logL = 1.62631719516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8778.19089901
delta logL = 1.64173716822

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8778.191     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3995        28.805        .47983E-02    .36414E-03
   2  Index         3.7965        3.0263        .12866        .16853E-03
   3  Normalizat    .64001        .69141E-01    .82977E-01    .52214E-04
   4  Prefactor     1.3114        .45789E-01    .32413E-01   -.23841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39955
  Index      = 3.7965
  Normalizat = 0.640006
  Prefactor  = 1.31141
 **********
 **   18 **HESSE 
 **********

 FCN=   8778.191     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3995        9.1378        .82277E-04   -1.5288    
   2  Index         3.7965        1.4439        .51505E-02   -.24309    
   3  Normalizat    .64001        .19598        .36748E-03   -1.0631    
   4  Prefactor     1.3114        .13138        .17938E-03   -.82968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46575e-11
Minuit parameter uncertainties:
  1  9.14071
  2  1.46611
  3  0.19619
  4  0.13141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484779': 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) = 8778.19089881
delta logL = 1.64173736999

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.400e+00  9.141e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  3.797e+00  1.466e+00  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.311e+00  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.400e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 3.80 +/- 1.47
Photon Flux (Free Index): 1.15e-07 +/- 5.08e-08
Energy Flux (Free Index): 1.78e-05 +/- 9.55e-06

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/484779/cmap_HighResolution_378259201_378518401_4FGL_J2126.3-4605_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='1.78e-05', photon_flux_error='4.12e-08', dlogl='1.64e+00', energy_flux='2.00e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-26 13:28:49.205744', photon_index_error2='1.47', photon_index2='3.80', ts='4.68', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='9.55e-06', EG='0.69', time_epoch_completed='1632688129.21', return_code='0', job_id='484779', GAL2='1.31', EG2='0.64', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.08e-08', ts2='8.22', photon_index='2.55' WHERE bin_id='536' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 484779: <4FGL_J2126.3-4605_daily_bin536> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin536> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 26 13:15:33 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:16:34 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:16:34 2021
Terminated at Sun Sep 26 13:28:50 2021
Results reported at Sun Sep 26 13:28:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin536 321.595 -46.0978 378259201 378518401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2126.3-4605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            797 sec.

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

