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


Performing analysis on: 4FGL_J0534.5+2201s_daily_bin1396
RA = 83.6331, Dec = 22.0199
tmin = 601171201, tmax = 601430401
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='621162', job_status='RUN', time_executed='2021-08-23 09:57:11.002677', time_epoch_executed='1629737831.0' WHERE source_name='4FGL J0534.5+2201s' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621162

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621162/ft1_4FGL_J0534.5+2201s_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621162/ft1_4FGL_J0534.5+2201s_daily_bin1396.fits outfile=/scratch/kocevski/621162/ft1_filteredMKT_4FGL_J0534.5+2201s_daily_bin1396.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=601171201.0 tmax=601430401.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.73
user 3.46
sys 4.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.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/621162/ft1_filteredMKT_4FGL_J0534.5+2201s_daily_bin1396.fits evtable="EVENTS" outfile="/scratch/kocevski/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.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.54
user 0.33
sys 4.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/621162/ltcube_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.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/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits
.....................!
real 16.44
user 11.60
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/621162/ltcube_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits outfile=/scratch/kocevski/621162/expmap_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.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/621162/ltcube_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits
.....................!
real 198.08
user 186.85
sys 10.87

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/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits scfile=/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits outfile=/scratch/kocevski/621162/cmap_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.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 4.43
user 0.39
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits scfile=/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits outfile=/scratch/kocevski/621162/cmap_HighResolution_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.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 4.51
user 0.40
sys 4.09

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits', '/scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits', expMap='/scratch/kocevski/621162/expmap_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits', expCube='/scratch/kocevski/621162/ltcube_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621162/Model_4FGL_J0534.5+2201s_daily_bin1396.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/621162/ft1_filtered_4FGL_J0534.5+2201s_daily_bin1396.fits
Spacecraft file(s): /scratch/kocevski/621162/ft2_4FGL_J0534.5+2201s_daily_bin1396.fits
Exposure map: /scratch/kocevski/621162/expmap_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits
Exposure cube: /scratch/kocevski/621162/ltcube_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621162/Model_4FGL_J0534.5+2201s_daily_bin1396.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) = 28008.026589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.476       1.0000         .10000E-03   10000.    
     2 'norm      '    .40383E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93718E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2498       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1340       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2746       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87897       1.0000          .0000       10.000    
    21 'norm      '    3.4681       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=   28008.00     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2291 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.418        44.479       -.87731E-06   -.23672E-04
   2  norm          .10000E-03    96.778       -.23187E-05** at limit **
   3  Prefactor     .13115        5.8126        .16583E-05   -.82059E-03
   4  norm          3.4021        3.3601        .17039E-07   -.42705E-04
   5  Prefactor     1.8366        1.9622       -.24333E-07   -.95939E-04
   6  Prefactor     .10000E-03    25.216       -.11744E-06** at limit **
   7  Prefactor     .10000E-03    15.067       -.11789E-07** at limit **
   8  norm          4.5492        2.4461        .19497E-08   -.31126E-04
   9  Prefactor     .10000E-03    36.854        .75807E-07** at limit **
  10  norm          15.054        7.6383       -.11040E-06   -.19070E-05
  11  Prefactor     1.2498        .14821       -.97637E-08   -.13084E-02
  12  norm          6.1346        3.5836        .98791E-07    .89500E-05
  13  Prefactor     2.2344        1.0514        .13197E-07   -.22772E-03
  14  Prefactor     .10000E-03    7.2162        .11864E-06** at limit **
  15  Prefactor     4.5824        5.3046        .88468E-06    .44562E-03
  16  Prefactor     2.4053        9.8663        .10774E-07   -.24648E-05
  17  Prefactor     2.8439        410.29        .18219E-04    .18374E-04
  18  Prefactor     .10006E-03    443.11       -.21807E-04** at limit **
  19  Normalizat    1.2740        .38445        .26863E-06   -.32460E-04
  20  Prefactor     .87904        .40209E-01   -.60096E-07   -.69322E-04
  21  norm          3.4680        .61675       -.41977E-08    .19285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.4176
  norm       = 0.0001
  Prefactor  = 0.131153
  norm       = 3.40209
  Prefactor  = 1.83661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5492
  Prefactor  = 0.0001
  norm       = 15.0539
  Prefactor  = 1.24979
  norm       = 6.13457
  Prefactor  = 2.23441
  Prefactor  = 0.0001
  Prefactor  = 4.58242
  Prefactor  = 2.40533
  Prefactor  = 2.84391
  Prefactor  = 0.000100059
  Normalizat = 1.27397
  Prefactor  = 0.87904
  norm       = 3.46797
 **********
 **   18 **HESSE 
 **********

 FCN=   28008.00     FROM HESSE     STATUS=OK           333 CALLS     2624 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.418        44.425        .75077E-04   -1.4641    
   2  norm          .10000E-03    99.208        .42519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13115        4.2472        .10716       -1.5636    
   4  norm          3.4021        3.3495        .21934E-03   -1.5339    
   5  Prefactor     1.8366        1.9684        .23610E-03   -1.5437    
   6  Prefactor     .10000E-03    25.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5492        2.4454        .18580E-03   -1.5281    
   9  Prefactor     .10000E-03    37.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.054        7.6167        .10323E-03   -1.4932    
  11  Prefactor     1.2498        .16217        .14205E-04   -1.5484    
  12  norm          6.1346        3.8378        .16210E-03   -1.5213    
  13  Prefactor     2.2344        1.0879        .81828E-04   -1.5409    
  14  Prefactor     .10000E-03    7.2240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5824        5.3180        .94026E-03   -1.5280    
  16  Prefactor     2.4053        9.8477        .26403E-03   -1.5398    
  17  Prefactor     2.8439        415.86        .22264E-02   -1.5371    
  18  Prefactor     .10006E-03    449.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2740        .37924        .10316E-02   -.84347    
  20  Prefactor     .87904        .40950E-01    .13586E-03   -.96877    
  21  norm          3.4680        .61556        .53295E-04   -1.5335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13048e-10
Minuit parameter uncertainties:
  1  44.4768
  2  0.000343739
  3  1.49224
  4  3.34969
  5  1.96842
  6  1.25257e-05
  7  3.2641e-06
  8  2.44542
  9  1.59747e-05
  10  7.61722
  11  0.162169
  12  3.83799
  13  1.08789
  14  5.24551e-06
  15  5.31859
  16  9.73643
  17  69.2744
  18  0.0103824
  19  0.380064
  20  0.0409517
  21  0.615556
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.234e+00  1.088e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.790e-01  4.095e-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.274e+00  3.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.77
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 6.01e-07 +/- 2.92e-07
Energy Flux (Fixed Index): 9.33e-05 +/- 4.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) = 28007.9979171
delta logL = 0.00686863267401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28007.947175
delta logL = 0.0576107403904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6500       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5046       1.0000          .0000       10.000    
     3 'Normalizat'    1.2832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87739       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=   28007.95     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      222 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6503        .71469        .82174E-02    .39710E-02
   2  Index         3.5047        .28670        .15240       -.48710E-03
   3  Normalizat    1.2831        .36704        .23020        .11044E-03
   4  Prefactor     .87739        .39088E-01    .30760E-01   -.29145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65032
  Index      = 3.50468
  Normalizat = 1.28311
  Prefactor  = 0.877393
 **********
 **   18 **HESSE 
 **********

 FCN=   28007.95     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6503        1.1909        .69659E-04   -1.5451    
   2  Index         3.5047        .61953        .80684E-02   -.30371    
   3  Normalizat    1.2831        .36188        .10281E-02   -.84072    
   4  Prefactor     .87739        .39641E-01    .13593E-03   -.96936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00839e-10
Minuit parameter uncertainties:
  1  1.19091
  2  0.621285
  3  0.362598
  4  0.0396427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621162': 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) = 28007.9471749
delta logL = 0.0576108005625

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.650e+00  1.191e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.505e+00  6.213e-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:  8.774e-01  3.964e-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.283e+00  3.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.19
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.50 +/- 0.62
Photon Flux (Free Index): 6.08e-07 +/- 2.17e-07
Energy Flux (Free Index): 1.01e-04 +/- 4.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/621162/cmap_HighResolution_601171201_601430401_4FGL_J0534.5+2201s_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.01e-07', energy_flux2='1.01e-04', photon_flux_error='2.92e-07', dlogl='5.76e-02', energy_flux='9.33e-05', photon_flux2='6.08e-07', job_status='DONE', time_completed='2021-08-23 10:30:30.084201', photon_index_error2='0.62', photon_index2='3.50', ts='8.77', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.15e-05', EG='1.27', time_epoch_completed='1629739830.08', return_code='0', job_id='621162', GAL2='0.88', EG2='1.28', return_code2='0', energy_flux_error='4.54e-05', photon_flux_error2='2.17e-07', ts2='10.19', photon_index='3.80' WHERE bin_id='1396' AND source_name='4FGL J0534.5+2201s' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 10:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 621162: <4FGL_J0534.5+2201s_daily_bin1396> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_daily_bin1396> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 23 09:55:53 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 09:55:54 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:55:54 2021
Terminated at Mon Aug 23 10:30:33 2021
Results reported at Mon Aug 23 10:30:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_daily_bin1396 83.6331 22.0199 601171201 601430401 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 :                                   2058.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             396.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2076 sec.
    Turnaround time :                            2080 sec.

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

