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


Performing analysis on: 4FGL_J0534.5+2200_daily_bin1391
RA = 83.6367, Dec = 22.0149
tmin = 599875201, tmax = 600134401
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='606554', job_status='RUN', time_executed='2021-08-23 09:07:56.813579', time_epoch_executed='1629734876.81' WHERE source_name='4FGL J0534.5+2200' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606554/ft1_4FGL_J0534.5+2200_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606554/ft1_4FGL_J0534.5+2200_daily_bin1391.fits outfile=/scratch/kocevski/606554/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1391.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=599875201.0 tmax=600134401.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 6.92
user 2.18
sys 4.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.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/606554/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1391.fits evtable="EVENTS" outfile="/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.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 4.67
user 0.36
sys 4.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/606554/ltcube_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.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/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits
.....................!
real 17.77
user 12.54
sys 5.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/606554/ltcube_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits outfile=/scratch/kocevski/606554/expmap_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.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/606554/ltcube_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits
.....................!
real 199.02
user 187.58
sys 10.71

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/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits outfile=/scratch/kocevski/606554/cmap_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.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 4.57
user 0.38
sys 4.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits outfile=/scratch/kocevski/606554/cmap_HighResolution_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.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 4.74
user 0.37
sys 4.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606554/Model_4FGL_J0534.5+2200_daily_bin1391.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/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits.........................!
real 32.17
user 25.40
sys 6.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits', '/scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits', expMap='/scratch/kocevski/606554/expmap_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits', expCube='/scratch/kocevski/606554/ltcube_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606554/Model_4FGL_J0534.5+2200_daily_bin1391.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/606554/ft1_filtered_4FGL_J0534.5+2200_daily_bin1391.fits
Spacecraft file(s): /scratch/kocevski/606554/ft2_4FGL_J0534.5+2200_daily_bin1391.fits
Exposure map: /scratch/kocevski/606554/expmap_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits
Exposure cube: /scratch/kocevski/606554/ltcube_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606554/Model_4FGL_J0534.5+2200_daily_bin1391.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 596.837988037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 592.818843125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    291.80       1.0000         .10000E-03   10000.    
     2 'norm      '    19.220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    129.85       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    595.28       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21487       1.0000         .10000E-03   10000.    
     8 'norm      '    .39929E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39577       1.0000         .10000E-03   10000.    
    10 'norm      '    .11211E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99093       1.0000         .10000E-03   10000.    
    12 'norm      '    90.069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17673E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4579       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55107E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5864       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7482       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .40444       1.0000          .0000       10.000    
    21 'norm      '    3.4642       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=   592.7837     FROM MIGRAD    STATUS=CONVERGED    231 CALLS      689 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          335.14        502.78        .62215E-06    .79520E-03
   2  norm          .10002E-03    454.73       -.23551E-03** at limit **
   3  Prefactor     130.10        85.832        .27118E-04    .19591E-02
   4  norm          .10011E-03    228.57       -.92655E-04** at limit **
   5  Prefactor     10.910        28.188       -.66007E-05    .72410E-06
   6  Prefactor     593.07        29.425       -.26158E-05    .21631E-01
   7  Prefactor     .10006E-03    224.77        .70959E-04** at limit **
   8  norm          .10000E-03    59.532        .28049E-04** at limit **
   9  Prefactor     .10006E-03    259.22        .57509E-04** at limit **
  10  norm          .10000E-03    19.156       -.11404E-04** at limit **
  11  Prefactor     1.0639        2.7030        .21314E-04   -.86365E-03
  12  norm          86.534        114.38       -.81315E-04   -.96928E-05
  13  Prefactor     .10000E-03    25.464       -.70125E-06** at limit **
  14  Prefactor     .10001E-03    267.51       -.32989E-04** at limit **
  15  Prefactor     6.9694        84.135       -.33957E-05    .11599E-04
  16  Prefactor     .10077E-03    1377.3        .25391E-04** at limit **
  17  Prefactor     9.0948        1.0015         .0000         .0000    
  18  Prefactor     4.5864        1.0061         .0000         .0000    
  19  Normalizat    1.7454        1.8888        .41376E-04    .10875E-04
  20  Prefactor     .40762        .25951       -.22443E-04    .64805E-04
  21  norm          3.4642        1.0108       -.45489E-19    .22358E-17
                               ERR DEF=  .500    
Final values: 
  norm       = 335.136
  norm       = 0.000100015
  Prefactor  = 130.095
  norm       = 0.00010011
  Prefactor  = 10.9104
  Prefactor  = 593.074
  Prefactor  = 0.000100062
  norm       = 0.0001
  Prefactor  = 0.000100064
  norm       = 0.0001
  Prefactor  = 1.0639
  norm       = 86.534
  Prefactor  = 0.000100003
  Prefactor  = 0.000100006
  Prefactor  = 6.96936
  Prefactor  = 0.000100766
  Prefactor  = 9.09478
  Prefactor  = 4.58639
  Normalizat = 1.74542
  Prefactor  = 0.407623
  norm       = 3.46418
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   592.7837     FROM HESSE     STATUS=FAILED        75 CALLS      764 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          335.14        464.32        .59414E-03   -1.2026    
   2  norm          .10002E-03    454.76        .22840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     130.10        74.706        .88333E-03   -1.3422    
   4  norm          .10011E-03    223.31        .75469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.910        26.628        .30646E-02   -1.5047    
   6  Prefactor     593.07        664.28        .42264E-03   -1.0788    
   7  Prefactor     .10006E-03    224.42        .10045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    58.690        .97483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    258.86        .10838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    19.056        .10343E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0639        1.2184        .63169E-02   -1.5502    
  12  norm          86.534        52.385        .10585E-02   -1.3845    
  13  Prefactor     .10000E-03    24.475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    267.40        .63108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9694        73.098        .39483E-02   -1.5180    
  16  Prefactor     .10077E-03    1371.2        .92950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     497.06        487.94         .0000       -1.5105    
  18  Prefactor     4.5864        1.0061         .0000       -1.5280    
  19  Normalizat    1.7454        1.0303        .41376E-04   -.71097    
  20  Prefactor     .40762        .73925       -.22443E-04   -1.1642    
  21  norm          3.4642        1.0108       -.45489E-19   -1.5336    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10231e-09
Minuit parameter uncertainties:
  1  469.629
  2  0.00527512
  3  74.7605
  4  0.00994772
  5  26.6571
  6  673.364
  7  0.00751389
  8  0.000189079
  9  0.00819375
  10  9.75064e-06
  11  1.2184
  12  52.4131
  13  0.000570698
  14  0.00248022
  15  45.2125
  16  0.0663824
  17  1.00152
  18  1.00607
  19  1.04348
  20  0.757657
  21  1.01081
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 592.783672728

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.064e+00  1.218e+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:  4.076e-01  7.577e-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.745e+00  1.043e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606554/likelihoodResults_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.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) = 592.622373192
delta logL = 0.161299535816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 592.612670242
delta logL = 0.171002485941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8176       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3773       1.0000          .0000       10.000    
     3 'Normalizat'    1.8870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39462       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=   592.6127     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      257 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8212        93.484        .73222E-02   -.10788E-02
   2  Index1        1.3788        7.9365        .11106       -.95033E-04
   3  Normalizat    1.8843        1.6395        .13927       -.58496E-04
   4  Prefactor     .39471        .17287        .38175E-01   -.22142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82117
  Index1     = 1.37877
  Normalizat = 1.88431
  Prefactor  = 0.394711
 **********
 **   18 **HESSE 
 **********

 FCN=   592.6127     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8212        2.0209        .32584E-04   -1.5438    
   2  Index1        1.3788        .77855        .46801E-02   -.80994    
   3  Normalizat    1.8843        1.7694        .61819E-03   -.67483    
   4  Prefactor     .39471        .24706        .16607E-03   -1.1708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4661e-10
Minuit parameter uncertainties:
  1  2.02096
  2  0.785318
  3  1.83654
  4  0.24773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606554': 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) = 592.612663379
delta logL = 0.171009348526

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.821e+00  2.021e+00  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.379e+00  7.853e-01  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:  3.947e-01  2.477e-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.884e+00  1.837e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 83.637 22.015
Photon Index (Free Index): 1.38 +/- 0.79
Photon Flux (Free Index): 1.25e-06 +/- 1.55e-06
Energy Flux (Free Index): 1.01e-03 +/- 1.21e-03

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/606554/cmap_HighResolution_599875201_600134401_4FGL_J0534.5+2200_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-03', comment='SUCCESS', energy_flux2='1.01e-03', dlogl='1.71e-01', photon_flux2='1.25e-06', job_status='DONE', time_completed='2021-08-23 09:14:40.694250', photon_index_error2='0.79', photon_index2='1.38', ts='0.76', fit_tolerance='1e-08', GAL='0.41', photon_index_error='0.00', photon_flux_upper_limit='6.11e-06', energy_flux_error2='1.21e-03', EG='1.75', time_epoch_completed='1629735280.69', return_code='101', job_id='606554', GAL2='0.39', EG2='1.88', return_code2='0', photon_flux_error2='1.55e-06', ts2='1.30', photon_index='1.88' WHERE bin_id='1391' AND source_name='4FGL J0534.5+2200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 09:14:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 606554: <4FGL_J0534.5+2200_daily_bin1391> in cluster <slac> Done

Job <4FGL_J0534.5+2200_daily_bin1391> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 09:05:31 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 09:05:32 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:32 2021
Terminated at Mon Aug 23 09:14:42 2021
Results reported at Mon Aug 23 09:14:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_daily_bin1391 83.6367 22.0149 599875201 600134401 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 :                                   464.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

