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


Performing analysis on: 4FGL_J0534.5+2200_monthly_bin125
RA = 83.6367, Dec = 22.0149
tmin = 560995201, tmax = 563587201
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='584262', job_status='RUN', time_executed='2021-10-14 21:45:34.466394', time_epoch_executed='1634273134.47' WHERE source_name='4FGL J0534.5+2200' and cadence='monthly' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584262

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584262/ft1_4FGL_J0534.5+2200_monthly_bin125.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584262/ft1_4FGL_J0534.5+2200_monthly_bin125.fits outfile=/scratch/kocevski/584262/ft1_filteredMKT_4FGL_J0534.5+2200_monthly_bin125.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=560995201.0 tmax=563587201.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 30.97
user 30.07
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.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/584262/ft1_filteredMKT_4FGL_J0534.5+2200_monthly_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.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.87
user 0.67
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/584262/ltcube_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.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/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits
.....................!
real 110.04
user 108.84
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/584262/ltcube_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits outfile=/scratch/kocevski/584262/expmap_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.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/584262/ltcube_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits
.....................!
real 193.92
user 188.38
sys 5.08

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/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits scfile=/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits outfile=/scratch/kocevski/584262/cmap_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.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 0.82
user 0.65
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits scfile=/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits outfile=/scratch/kocevski/584262/cmap_HighResolution_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.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 0.82
user 0.66
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits', '/scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits', expMap='/scratch/kocevski/584262/expmap_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits', expCube='/scratch/kocevski/584262/ltcube_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/584262/Model_4FGL_J0534.5+2200_monthly_bin125.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/584262/ft1_filtered_4FGL_J0534.5+2200_monthly_bin125.fits
Spacecraft file(s): /scratch/kocevski/584262/ft2_4FGL_J0534.5+2200_monthly_bin125.fits
Exposure map: /scratch/kocevski/584262/expmap_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits
Exposure cube: /scratch/kocevski/584262/ltcube_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/584262/Model_4FGL_J0534.5+2200_monthly_bin125.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) = 262401.292443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93458       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1669       1.0000         .10000E-03   10000.    
     4 'norm      '    .94224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1440       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4540       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1908       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1239       1.0000         .10000E-03   10000.    
    12 'norm      '    .11188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3367       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97633       1.0000          .0000       10.000    
    21 'norm      '    2.9239       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   262401.2     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2000 TOTAL
                     EDM=   .36E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.341         .0000    ** at limit **
   2  norm          .92814        2.3699         .0000        .48517E-02
   3  Prefactor     1.1671        2.4030         .0000        .17683    
   4  norm          .94427        .81741         .0000        .12163E-01
   5  Prefactor     2.9863        1.2601         .0000        .47434E-02
   6  Prefactor     6.9090        10.244         .0000        .14857E-03
   7  Prefactor     6.1436        6.6792         .0000       -.73045E-03
   8  norm          4.4540        .98697         .0000        .40041E-02
   9  Prefactor     1.1912        6.0562         .0000        .36178E-01
  10  norm          1.0943        1.6177         .0000        .46853    
  11  Prefactor     2.1239        .62447E-01     .0000        .59420E-02
  12  norm          .11182        .23190         .0000        .31841E-01
  13  Prefactor     15.448        .51865         .0000        .54941E-02
  14  Prefactor     .10000E-03    2.1236         .0000    ** at limit **
  15  Prefactor     3.2259        1.4514         .0000        .63129E-02
  16  Prefactor     5.3369        2.4578         .0000        .36694E-01
  17  Prefactor     17.011        17.644         .0000        .85061E-03
  18  Prefactor     .10000E-03    22.107         .0000    ** at limit **
  19  Normalizat    1.2342        .14729         .0000        .11336E-02
  20  Prefactor     .97633        .15394E-01     .0000       -.30848E-03
  21  norm          2.9239        .20794         .0000        .90490E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.928144
  Prefactor  = 1.16712
  norm       = 0.944274
  Prefactor  = 2.98634
  Prefactor  = 6.90899
  Prefactor  = 6.14357
  norm       = 4.45401
  Prefactor  = 1.19121
  norm       = 1.09433
  Prefactor  = 2.12393
  norm       = 0.111816
  Prefactor  = 15.4481
  Prefactor  = 0.0001
  Prefactor  = 3.22586
  Prefactor  = 5.33695
  Prefactor  = 17.011
  Prefactor  = 0.0001
  Normalizat = 1.23419
  Prefactor  = 0.976332
  norm       = 2.92393
 **********
 **   18 **HESSE 
 **********

 FCN=   262401.2     FROM HESSE     STATUS=OK           339 CALLS     2339 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .92814        2.3870        .20910       -1.5515    
   3  Prefactor     1.1671        2.3952        .21272E-02   -1.5492    
   4  norm          .94427        .79681        .41805E-03   -1.5514    
   5  Prefactor     2.9863        1.2555        .23491E-03   -1.5362    
   6  Prefactor     6.9090        10.235        .15261E-03   -1.5182    
   7  Prefactor     6.1436        6.6769        .80983E-03   -1.5212    
   8  norm          4.4540        .98529        .19080E-03   -1.5286    
   9  Prefactor     1.1912        6.1118        .20870E-02   -1.5490    
  10  norm          1.0943        1.6161        .23027E-02   -1.5499    
  11  Prefactor     2.1239        .63044E-01    .15507E-04   -1.5416    
  12  norm          .11182        .57342        .31919E-02   -1.5641    
  13  Prefactor     15.448        .53136        .48820E-04   -1.4922    
  14  Prefactor     .10000E-03    2.1416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2259        1.4369        .22550E-03   -1.5349    
  16  Prefactor     5.3369        2.4564        .86985E-03   -1.5246    
  17  Prefactor     17.011        17.633        .97103E-04   -1.4883    
  18  Prefactor     .10000E-03    22.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2342        .13866        .11961E-02   -.85553    
  20  Prefactor     .97633        .15181E-01    .14916E-03   -.93523    
  21  norm          2.9239        .20752        .60015E-04   -1.5366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75213e-06
Minuit parameter uncertainties:
  1  8.31182e-06
  2  2.38722
  3  2.39536
  4  0.79682
  5  1.25555
  6  10.2377
  7  6.67771
  8  0.985299
  9  5.39709
  10  1.61612
  11  0.0630444
  12  0.50621
  13  0.531358
  14  7.01069e-07
  15  1.43689
  16  2.45647
  17  17.6389
  18  4.37559e-05
  19  0.1387
  20  0.0151809
  21  0.207517
Done.

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

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  2.124e+00  6.304e-02  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:  9.763e-01  1.518e-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.234e+00  1.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4382.66
Ra Dec: 83.637 22.015
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.39e-06 +/- 1.01e-07
Energy Flux (Fixed Index): 1.34e-03 +/- 3.97e-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) = 262375.115505
delta logL = 26.0451174958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 262375.115494
delta logL = 26.0451280575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7506       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0433       1.0000          .0000       10.000    
     3 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98459       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   262375.1     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      262 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7506        .63657E-01    .13583E-04   -.10713E-03
   2  Index1        2.0433        .22360E-01    .15281E-03    .30664E-03
   3  Normalizat    1.0689        .13066        .12659E-02    .51844E-04
   4  Prefactor     .98459        .14757E-01    .14830E-03   -.98122E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75064
  Index1     = 2.04334
  Normalizat = 1.06885
  Prefactor  = 0.984591
 **********
 **   18 **HESSE 
 **********

 FCN=   262375.1     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .40E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7506        .63413E-01    .54332E-06   -1.5443    
   2  Index1        2.0433        .22273E-01    .30562E-04   -.63271    
   3  Normalizat    1.0689        .13062        .25318E-03   -.90758    
   4  Prefactor     .98459        .14753E-01    .59322E-05   -.93245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02789e-14
Minuit parameter uncertainties:
  1  0.0634126
  2  0.0222734
  3  0.130656
  4  0.0147534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584262': 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) = 262375.115494
delta logL = 26.0451281027

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.751e+00  6.341e-02  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  2.043e+00  2.227e-02  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:  9.846e-01  1.475e-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.069e+00  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5307.70
Ra Dec: 83.637 22.015
Photon Index (Free Index): 2.04 +/- 0.02
Photon Flux (Free Index): 3.79e-06 +/- 9.60e-08
Energy Flux (Free Index): 1.26e-03 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/584262/cmap_HighResolution_560995201_563587201_4FGL_J0534.5+2200_monthly_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-06', energy_flux2='1.26e-03', photon_flux_error='1.01e-07', dlogl='2.60e+01', energy_flux='1.34e-03', photon_flux2='3.79e-06', job_status='DONE', time_completed='2021-10-15 02:25:45.151525', photon_index_error2='0.02', photon_index2='2.04', ts='4382.66', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.23', time_epoch_completed='1634289945.15', return_code='0', job_id='584262', GAL2='0.98', EG2='1.07', return_code2='0', energy_flux_error='3.97e-05', photon_flux_error2='9.60e-08', ts2='5307.70', photon_index='1.88' WHERE bin_id='125' AND source_name='4FGL J0534.5+2200' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 15 02:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 584262: <4FGL_J0534.5+2200_monthly_bin125> in cluster <slac> Done

Job <4FGL_J0534.5+2200_monthly_bin125> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 14 21:45:14 2021
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 14 21:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 14 21:45:16 2021
Terminated at Fri Oct 15 02:25:46 2021
Results reported at Fri Oct 15 02:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_monthly_bin125 83.6367 22.0149 560995201 563587201 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 :                                   16662.23 sec.
    Max Memory :                                 1284 MB
    Average Memory :                             679.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   16830 sec.
    Turnaround time :                            16832 sec.

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

