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


Performing analysis on: 4FGL_J0534.5+2200_daily_bin1388
RA = 83.6367, Dec = 22.0149
tmin = 599097601, tmax = 599356801
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='606549', job_status='RUN', time_executed='2021-08-23 09:08:59.746198', time_epoch_executed='1629734939.75' WHERE source_name='4FGL J0534.5+2200' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606549/ft1_4FGL_J0534.5+2200_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606549/ft1_4FGL_J0534.5+2200_daily_bin1388.fits outfile=/scratch/kocevski/606549/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1388.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=599097601.0 tmax=599356801.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 3.55
user 2.63
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.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/606549/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/606549/ft1_filtered_4FGL_J0534.5+2200_daily_bin1388.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 1.21
user 0.31
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606549/ft1_filtered_4FGL_J0534.5+2200_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/606549/ltcube_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.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/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits
.....................!
real 13.22
user 12.07
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606549/ft1_filtered_4FGL_J0534.5+2200_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/606549/ltcube_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.fits outfile=/scratch/kocevski/606549/expmap_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.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/606549/ltcube_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.fits
.....................!
real 191.44
user 185.24
sys 5.57

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/606549/ft1_filtered_4FGL_J0534.5+2200_daily_bin1388.fits scfile=/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits outfile=/scratch/kocevski/606549/cmap_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.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 1.22
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606549/ft1_filtered_4FGL_J0534.5+2200_daily_bin1388.fits scfile=/scratch/kocevski/606549/ft2_4FGL_J0534.5+2200_daily_bin1388.fits outfile=/scratch/kocevski/606549/cmap_HighResolution_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.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 1.22
user 0.38
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.114       1.0000         .10000E-03   10000.    
     2 'norm      '    375.52       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.274       1.0000         .10000E-03   10000.    
     4 'norm      '    .62058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27135E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    28.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12684E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .21638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14595E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7669       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'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93213       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=   586.2865     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      593 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.127        88.973        .26444E-04   -.36154E-02
   2  norm          384.00        227.52        .17904E-04    .47071E-02
   3  Prefactor     28.815        86.837        .70354E-04    .18163E-03
   4  norm          .10000E-03    15.084        .28726E-05** at limit **
   5  Prefactor     .10001E-03    27.843        .17410E-05** at limit **
   6  Prefactor     424.08        718.34       -.30943E-04   -.23311E-03
   7  Prefactor     .10001E-03    380.62        .12485E-04** at limit **
   8  norm          28.168        34.326        .28557E-05   -.91350E-05
   9  Prefactor     .10000E-03    413.55       -.37223E-04** at limit **
  10  norm          .10001E-03    125.40       -.23164E-04** at limit **
  11  Prefactor     .10000E-03    .63907       -.24397E-07** at limit **
  12  norm          .10000E-03    28.286       -.44086E-05** at limit **
  13  Prefactor     .10000E-03    9.1990        .93130E-07** at limit **
  14  Prefactor     .10081E-03    2276.4       -.10476E-03** at limit **
  15  Prefactor     .10000E-03    432.52       -.18377E-05** at limit **
  16  Prefactor     1.7669        1.0470         .0000         .0000    
  17  Prefactor     9.0948        1.0015         .0000         .0000    
  18  Prefactor     4.5864        1.0061         .0000         .0000    
  19  Normalizat    .10000E-01    7.5601        .73949E-03** at limit **
  20  Prefactor     .87426        .23208        .61525E-05    .70712E-04
  21  norm          3.4642        1.0108       -.14726-187    .24985-185
                               ERR DEF=  .500    
Final values: 
  norm       = 33.1271
  norm       = 384.003
  Prefactor  = 28.8147
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 424.075
  Prefactor  = 0.000100005
  norm       = 28.1685
  Prefactor  = 0.000100002
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100811
  Prefactor  = 0.0001
  Prefactor  = 1.76693
  Prefactor  = 9.09478
  Prefactor  = 4.58639
  Normalizat = 0.01
  Prefactor  = 0.874262
  norm       = 3.46418
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   586.2865     FROM HESSE     STATUS=FAILED        69 CALLS      662 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.127        850.03        .15264E-02   -1.4556    
   2  norm          384.00        220.82        .52601E-03   -1.1763    
   3  Prefactor     28.815        81.275        .19920E-02   -1.4634    
   4  norm          .10000E-03    15.123        .10523E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    27.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     424.08        629.95        .19624E-02   -1.1560    
   7  Prefactor     .10001E-03    378.74        .91579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.168        33.693        .18601E-02   -1.4646    
   9  Prefactor     .10000E-03    413.49        .10299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    124.89        .10052E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .62748        .84851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    28.442        .10246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.9952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10081E-03    2240.0        .11336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    429.37        .95905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     572.94        571.01         .0000       -1.5442    
  17  Prefactor     9.0948        1.0015         .0000       -1.5105    
  18  Prefactor     4.5864        1.0061         .0000       -1.5280    
  19  Normalizat    .10000E-01    .25773        .73949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .87426        1.2391        .61525E-05   -.97046    
  21  norm          3.4642        1.0108       -.14726-187   -1.5336    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.1293e-10
Minuit parameter uncertainties:
  1  341.159
  2  221.308
  3  81.5901
  4  9.60173e-05
  5  0.000864382
  6  640.688
  7  0.00282196
  8  33.7155
  9  0.00193163
  10  0.00239815
  11  8.18451e-08
  12  0.000306863
  13  1.30181e-05
  14  0.0887886
  15  0.000647924
  16  1.04701
  17  1.00152
  18  1.00607
  19  1.27042e-05
  20  1.28274
  21  1.01081
Done.

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

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.000e-04  8.185e-08  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:  8.743e-01  1.283e+00  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  1.270e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606549/likelihoodResults_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.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): 102
logL (Free Index) = 586.287328791
delta logL = -0.000812921478996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 586.286519204
delta logL = -3.33459752255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8346       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87428       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=   586.2865     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8736        .90712E-02** at limit **
   2  Index1        .81371        6.4697        .50000        .16793E-06
   3  Normalizat    .10000E-01    .30537E-01    .50000    ** at limit **
   4  Prefactor     .87426        .21123E-01    .31540E-01    .18294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.813709
  Normalizat = 0.01
  Prefactor  = 0.874263
 **********
 **   18 **HESSE 
 **********

 FCN=   586.2865     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.82        .25015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .81371        8.5956        .50000       -.99225    
   3  Normalizat    .10000E-01    6.6282        .20620E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87426        .12757        .13938E-03   -.97046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24331e-09
Minuit parameter uncertainties:
  1  5.25649e-06
  2  1318.27
  3  7.99153e-06
  4  0.127609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606549': 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): 102
logL (Free Index) = 586.286480989
delta logL = 3.48812899347e-05

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.000e-04  5.256e-06  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  8.137e-01  1.318e+03  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:  8.743e-01  1.276e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.000e-02  7.992e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.637 22.015

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/606549/cmap_HighResolution_599097601_599356801_4FGL_J0534.5+2200_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', job_status='DONE', photon_flux_upper_limit='5.82e-06', time_completed='2021-08-23 09:14:50.794555', job_id='606549', GAL2='0.87', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629735290.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.87', dlogl='3.49e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1388' AND source_name='4FGL J0534.5+2200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 09:14:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 606549: <4FGL_J0534.5+2200_daily_bin1388> in cluster <slac> Done

Job <4FGL_J0534.5+2200_daily_bin1388> 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) <bullet0034>, 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:51 2021
Results reported at Mon Aug 23 09:14:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_daily_bin1388 83.6367 22.0149 599097601 599356801 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 :                                   356.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            560 sec.

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

