/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0534.5+2200_daily_bin1440
RA = 83.6367, Dec = 22.0149
tmin = 612576001, tmax = 612835201
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='606633', job_status='RUN', time_executed='2021-08-23 09:08:54.890962', time_epoch_executed='1629734934.89' WHERE source_name='4FGL J0534.5+2200' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606633/ft1_4FGL_J0534.5+2200_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606633/ft1_4FGL_J0534.5+2200_daily_bin1440.fits outfile=/scratch/kocevski/606633/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1440.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=612576001.0 tmax=612835201.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 10.24
user 2.56
sys 7.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.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/606633/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1440.fits evtable="EVENTS" outfile="/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.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 7.92
user 0.32
sys 7.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/606633/ltcube_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.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/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits
.....................!
real 21.10
user 12.38
sys 8.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/606633/ltcube_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits outfile=/scratch/kocevski/606633/expmap_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.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/606633/ltcube_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits
.....................!
real 200.46
user 185.50
sys 14.39

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 168 point sources and 3 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 J0534.5+2200 @ 83.6367 22.0149

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits outfile=/scratch/kocevski/606633/cmap_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.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=83.6367 yref=22.0149 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 7.83
user 0.36
sys 7.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits outfile=/scratch/kocevski/606633/cmap_HighResolution_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.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=83.6367 yref=22.0149 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 7.80
user 0.38
sys 7.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606633/Model_4FGL_J0534.5+2200_daily_bin1440.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
adding source IC 443
adding source Monoceros
adding source S 147
Working on...
/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits......................!
real 62.92
user 51.87
sys 10.85

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits', '/scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits', expMap='/scratch/kocevski/606633/expmap_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits', expCube='/scratch/kocevski/606633/ltcube_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606633/Model_4FGL_J0534.5+2200_daily_bin1440.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0534.5+2200'

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.883e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/606633/ft1_filtered_4FGL_J0534.5+2200_daily_bin1440.fits
Spacecraft file(s): /scratch/kocevski/606633/ft2_4FGL_J0534.5+2200_daily_bin1440.fits
Exposure map: /scratch/kocevski/606633/expmap_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits
Exposure cube: /scratch/kocevski/606633/ltcube_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606633/Model_4FGL_J0534.5+2200_daily_bin1440.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) = 1889.1797904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '    9999.7       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .48173E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .12136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17431E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14548E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91370E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30084       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.143       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17503E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0015       1.0000          .0000       10.000    
    21 'norm      '    3.5563       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1886.789     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2027 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        .59854        .46087E-05   -.83621E-04
   2  norm          9999.8        61.765        .56784E-04   -.78678E-03
   3  Prefactor     .49196E-03    863.24       -.10565E-03** at limit **
   4  norm          .10000E-03    49.594       -.26167E-06** at limit **
   5  Prefactor     .10000E-03    19.785        .63746E-05** at limit **
   6  Prefactor    10000.0        13.354        .17094E-04** at limit **
   7  Prefactor     .11389E-03    250.78        .23093E-03** at limit **
   8  norm          .10023E-03    114.66        .35126E-04** at limit **
   9  Prefactor     .14228E-03    21.031        .94179E-05** at limit **
  10  norm          .10000E-03    26.861        .10970E-04** at limit **
  11  Prefactor     .29007        1.2909       -.38837E-08   -.28583E-03
  12  norm          7.0961        30.075        .14249E-04    .10756E-03
  13  Prefactor     17.194        15.707        .38293E-05   -.10831E-02
  14  Prefactor     .10133E-03    140.63       -.11701E-03** at limit **
  15  Prefactor     .10000E-03    21.464        .88031E-05** at limit **
  16  Prefactor     .10000E-03    13.185        .42843E-05** at limit **
  17  Prefactor     .15496E-03    42.222        .91200E-04** at limit **
  18  Prefactor     .57319E-03    241.50        .28750E-04** at limit **
  19  Normalizat    .10000E-01    .49749        .88780E-05** at limit **
  20  Prefactor     1.0015        .98890E-01    .94270E-06   -.42134E-04
  21  norm          3.5566        1.5611       -.42988E-06    .32421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9999.98
  norm       = 9999.77
  Prefactor  = 0.000491958
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000113891
  norm       = 0.000100231
  Prefactor  = 0.000142284
  norm       = 0.0001
  Prefactor  = 0.290071
  norm       = 7.09614
  Prefactor  = 17.1944
  Prefactor  = 0.000101332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000154965
  Prefactor  = 0.00057319
  Normalizat = 0.01
  Prefactor  = 1.00151
  norm       = 3.55661
 **********
 **   18 **HESSE 
 **********

 FCN=   1886.789     FROM HESSE     STATUS=OK           351 CALLS     2378 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        5835.9        .91042E-02    1.5683    
   2  norm          9999.8        9836.0        .10321E-01    1.5612    
   3  Prefactor     .49196E-03    1491.3        .92612E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    49.594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6232.3        .10366E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11389E-03    269.70        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10023E-03    114.86        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14228E-03    1025.9        .10410E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    26.813        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29007        1.4837        .10429E-01   -1.5600    
  12  norm          7.0961        37.570        .38182E-02   -1.5175    
  13  Prefactor     17.194        17.442        .24183E-02   -1.4878    
  14  Prefactor     .10133E-03    141.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15496E-03    503.13        .10172E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .57319E-03    798.02        .90712E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .47624        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0015        .10177        .30500E-01   -.92679    
  21  norm          3.5566        1.5611        .53581E-02   -1.5331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81162e-06
Minuit parameter uncertainties:
  1  67.246
  2  168.095
  3  1.5699
  4  0.000256454
  5  2.518e-05
  6  0.789853
  7  0.122972
  8  0.0103278
  9  0.424029
  10  5.20577e-05
  11  1.3119
  12  32.6879
  13  17.4468
  14  0.027539
  15  3.99878e-05
  16  1.4948e-05
  17  0.335448
  18  1.24597
  19  2.53075e-07
  20  0.101794
  21  1.5611
Done.

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

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  2.901e-01  1.312e+00  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.883e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.002e+00  1.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  2.531e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 83.637 22.015
Photon Flux Upper Limit: 3.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606633/likelihoodResults_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.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) = 1886.7506468
delta logL = 0.0379302055783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1886.74108582
delta logL = 0.047491190521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40019       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.2303       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1886.741     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      220 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40035        41.378        .10856E-01   -.46081E-03
   2  Index1        1.2306        9.3676        .33950       -.42384E-04
   3  Normalizat    .10000E-01    .94093E-01    .32094    ** at limit **
   4  Prefactor     1.0032        .45671E-01    .30490E-01   -.11000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.400349
  Index1     = 1.23063
  Normalizat = 0.01
  Prefactor  = 1.00316
 **********
 **   18 **HESSE 
 **********

 FCN=   1886.741     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40035        .83273        .60338E-03   -1.5581    
   2  Index1        1.2306        1.8055        .18619E-01   -.85394    
   3  Normalizat    .10000E-01    .50316        .18099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0032        .95760E-01    .13476E-03   -.92624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37183e-10
Minuit parameter uncertainties:
  1  0.832756
  2  1.91162
  3  5.04251e-07
  4  0.0957766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606633': 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) = 1886.74108571
delta logL = 0.0474912957156

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  4.003e-01  8.328e-01  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.231e+00  1.912e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.003e+00  9.578e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  5.043e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 83.637 22.015

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/606633/cmap_HighResolution_612576001_612835201_4FGL_J0534.5+2200_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-03', job_status='DONE', photon_flux_upper_limit='3.58e-06', time_completed='2021-08-23 09:17:52.283437', job_id='606633', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629735472.28', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.75e-02', ts2='0.34', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1440' AND source_name='4FGL J0534.5+2200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 09:17:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 606633: <4FGL_J0534.5+2200_daily_bin1440> in cluster <slac> Done

Job <4FGL_J0534.5+2200_daily_bin1440> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 09:05:36 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 09:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 09:05:37 2021
Terminated at Mon Aug 23 09:17:54 2021
Results reported at Mon Aug 23 09:17:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_daily_bin1440 83.6367 22.0149 612576001 612835201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

