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


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin682
RA = 83.6331, Dec = 22.0199
tmin = 651456001, tmax = 652060801
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='463695', job_status='RUN', time_executed='2021-12-08 07:13:48.657464', time_epoch_executed='1638976428.66' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463695

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463695/ft1_4FGL_J0534.5+2201s_weekly_bin682.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463695/ft1_4FGL_J0534.5+2201s_weekly_bin682.fits outfile=/scratch/kocevski/463695/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin682.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=651456001.0 tmax=652060801.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 7.54
user 7.25
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.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/463695/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.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.55
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/463695/ltcube_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.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/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits
.....................!
real 29.46
user 29.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/463695/ltcube_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits outfile=/scratch/kocevski/463695/expmap_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.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/463695/ltcube_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits
.....................!
real 191.01
user 185.85
sys 4.66

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+2201s @ 83.6331 22.0199

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits outfile=/scratch/kocevski/463695/cmap_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.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.6331 yref=22.0199 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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits outfile=/scratch/kocevski/463695/cmap_HighResolution_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.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.6331 yref=22.0199 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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463695/Model_4FGL_J0534.5+2201s_weekly_bin682.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/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits.....................!
real 1765.58
user 1759.40
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits', '/scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits', expMap='/scratch/kocevski/463695/expmap_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits', expCube='/scratch/kocevski/463695/ltcube_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463695/Model_4FGL_J0534.5+2201s_weekly_bin682.xml', optimizer='MINUIT')

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

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/463695/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin682.fits
Spacecraft file(s): /scratch/kocevski/463695/ft2_4FGL_J0534.5+2201s_weekly_bin682.fits
Exposure map: /scratch/kocevski/463695/expmap_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits
Exposure cube: /scratch/kocevski/463695/ltcube_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463695/Model_4FGL_J0534.5+2201s_weekly_bin682.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) = 81001.7337151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.4758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0785       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .92015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1859       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8459       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3326       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99162       1.0000          .0000       10.000    
    21 'norm      '    3.0494       1.0000         .10000E-03   10000.    
 **********
 **   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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   81001.70     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2272 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    84.733       -.76068E-06** at limit **
   2  norm          7.4748        11.881        .16012E-06    .31323E-05
   3  Prefactor     .10000E-03    2.6287       -.23793E-07** at limit **
   4  norm          1.6721        1.7299        .15619E-06   -.11036E-04
   5  Prefactor     .60485        1.0541        .38868E-06   -.27305E-03
   6  Prefactor     .10000E-03    17.796       -.77957E-07** at limit **
   7  Prefactor     .10000E-03    6.5659       -.61813E-08** at limit **
   8  norm          3.0782        1.4301        .54778E-07   -.39413E-05
   9  Prefactor     .10000E-03    14.523        .18018E-07** at limit **
  10  norm          .91983        1.8956        .24268E-06   -.59525E-03
  11  Prefactor     1.1859        .89585E-01   -.84525E-08   -.84584E-03
  12  norm          8.1498        2.3549        .81326E-07   -.42918E-04
  13  Prefactor     1.8456        .59087        .41722E-07   -.37407E-03
  14  Prefactor     6.5120        8.6641        .57263E-06    .14600E-04
  15  Prefactor     2.3706        2.9029        .12281E-06   -.15409E-03
  16  Prefactor     7.0289        5.3519        .81103E-06    .10073E-03
  17  Prefactor     24.716        41.873        .50232E-05    .33361E-04
  18  Prefactor     .10000E-03    45.927        .15002E-06** at limit **
  19  Normalizat    1.3329        .23494       -.28263E-06   -.74497E-04
  20  Prefactor     .99159        .25329E-01   -.65713E-07   -.89856E-04
  21  norm          3.0494        .37216       -.64338E-08   -.17916E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.47483
  Prefactor  = 0.0001
  norm       = 1.6721
  Prefactor  = 0.604851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07816
  Prefactor  = 0.0001
  norm       = 0.919826
  Prefactor  = 1.18592
  norm       = 8.14979
  Prefactor  = 1.84556
  Prefactor  = 6.51198
  Prefactor  = 2.37057
  Prefactor  = 7.02887
  Prefactor  = 24.716
  Prefactor  = 0.0001
  Normalizat = 1.33289
  Prefactor  = 0.99159
  norm       = 3.04942
 **********
 **   18 **HESSE 
 **********

 FCN=   81001.70     FROM HESSE     STATUS=OK           327 CALLS     2599 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    86.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.4748        11.875        .14668E-03   -1.5161    
   3  Prefactor     .10000E-03    2.7015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6721        1.7108        .32596E-03   -1.5449    
   5  Prefactor     .60485        1.1612        .35823E-02   -1.5552    
   6  Prefactor     .10000E-03    17.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0782        1.4264        .22440E-03   -1.5357    
   9  Prefactor     .10000E-03    14.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91983        3.4654        .49592E-02   -1.5516    
  11  Prefactor     1.1859        .98594E-01    .14597E-04   -1.5490    
  12  norm          8.1498        2.5578        .14044E-03   -1.5137    
  13  Prefactor     1.8456        .60857        .85117E-04   -1.5436    
  14  Prefactor     6.5120        8.6580        .78631E-03   -1.5198    
  15  Prefactor     2.3706        2.8392        .26608E-03   -1.5400    
  16  Prefactor     7.0289        5.4082        .75659E-03   -1.5178    
  17  Prefactor     24.716        41.995        .80499E-04   -1.4713    
  18  Prefactor     .10000E-03    45.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3329        .22968        .10493E-02   -.82590    
  20  Prefactor     .99159        .25611E-01    .13784E-03   -.93010    
  21  norm          3.0494        .37143        .58320E-04   -1.5359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55968e-07
Minuit parameter uncertainties:
  1  1.34059e-05
  2  11.8789
  3  1.77852e-06
  4  1.71084
  5  1.16126
  6  2.65404e-06
  7  2.31303e-06
  8  1.42638
  9  9.73323e-07
  10  3.46611
  11  0.0985938
  12  2.55788
  13  0.60857
  14  8.65965
  15  2.83934
  16  5.40856
  17  42.0448
  18  5.86073e-06
  19  0.229852
  20  0.0256114
  21  0.371425
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.846e+00  6.086e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.916e-01  2.561e-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.333e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.31
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 4.96e-07 +/- 1.63e-07
Energy Flux (Fixed Index): 7.71e-05 +/- 2.54e-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) = 81001.6954459
delta logL = 5.98236510996e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 81001.6953799
delta logL = 7.19273812138e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8624       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8110       1.0000          .0000       10.000    
     3 'Normalizat'    1.3327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99163       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=   81001.70     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8624        .49159        .76331E-02    .78665E-02
   2  Index         3.8111        .17450        .20767       -.94427E-03
   3  Normalizat    1.3327        .22486        .23490        .17247E-03
   4  Prefactor     .99163        .24739E-01    .31191E-01   -.39241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86238
  Index      = 3.81106
  Normalizat = 1.33266
  Prefactor  = 0.991631
 **********
 **   18 **HESSE 
 **********

 FCN=   81001.70     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8624        .99798        .85513E-04   -1.5435    
   2  Index         3.8111        .51377        .91701E-02   -.24009    
   3  Normalizat    1.3327        .22157        .10494E-02   -.82597    
   4  Prefactor     .99163        .25035E-01    .13784E-03   -.93009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99624e-07
Minuit parameter uncertainties:
  1  0.997993
  2  0.514737
  3  0.221729
  4  0.0250354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463695': 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) = 81001.6953799
delta logL = 7.19310482964e-05

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.862e+00  9.980e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.811e+00  5.147e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.916e-01  2.504e-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.333e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.10
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.81 +/- 0.51
Photon Flux (Free Index): 4.96e-07 +/- 1.22e-07
Energy Flux (Free Index): 7.69e-05 +/- 2.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/463695/cmap_HighResolution_651456001_652060801_4FGL_J0534.5+2201s_weekly_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-07', energy_flux2='7.69e-05', photon_flux_error='1.63e-07', dlogl='7.19e-05', energy_flux='7.71e-05', photon_flux2='4.96e-07', job_status='DONE', time_completed='2021-12-08 08:39:54.500351', photon_index_error2='0.51', photon_index2='3.81', ts='19.31', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.33', time_epoch_completed='1638981594.5', return_code='0', job_id='463695', GAL2='0.99', EG2='1.33', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='1.22e-07', ts2='22.10', photon_index='3.80' WHERE bin_id='682' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:39:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 463695: <4FGL_J0534.5+2201s_weekly_bin682> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin682> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 07:10:41 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:13:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:13:39 2021
Terminated at Wed Dec  8 08:39:55 2021
Results reported at Wed Dec  8 08:39:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin682 83.6331 22.0199 651456001 652060801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2201s fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5153.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             490.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5176 sec.
    Turnaround time :                            5354 sec.

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

