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


Performing analysis on: 4FGL_J0534.5+2200_monthly_bin118
RA = 83.6367, Dec = 22.0149
tmin = 542851201, tmax = 545443201
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='583091', job_status='RUN', time_executed='2021-10-14 21:42:27.335836', time_epoch_executed='1634272947.34' WHERE source_name='4FGL J0534.5+2200' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583091

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583091/ft1_4FGL_J0534.5+2200_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583091/ft1_4FGL_J0534.5+2200_monthly_bin118.fits outfile=/scratch/kocevski/583091/ft1_filteredMKT_4FGL_J0534.5+2200_monthly_bin118.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.36
user 17.80
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.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/583091/ft1_filteredMKT_4FGL_J0534.5+2200_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/583091/ft1_filtered_4FGL_J0534.5+2200_monthly_bin118.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.59
user 0.41
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583091/ft1_filtered_4FGL_J0534.5+2200_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/583091/ltcube_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.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/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits
.....................!
real 40.47
user 40.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583091/ft1_filtered_4FGL_J0534.5+2200_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/583091/ltcube_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.fits outfile=/scratch/kocevski/583091/expmap_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.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/583091/ltcube_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.fits
.....................!
real 191.19
user 185.50
sys 5.18

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/583091/ft1_filtered_4FGL_J0534.5+2200_monthly_bin118.fits scfile=/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits outfile=/scratch/kocevski/583091/cmap_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.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.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583091/ft1_filtered_4FGL_J0534.5+2200_monthly_bin118.fits scfile=/scratch/kocevski/583091/ft2_4FGL_J0534.5+2200_monthly_bin118.fits outfile=/scratch/kocevski/583091/cmap_HighResolution_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.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.61
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12483E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .13279E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    148.50       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.451       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8941       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95320E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23869E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2075       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89431       1.0000          .0000       10.000    
    21 'norm      '    4.7596       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=   4898.487     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2174 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    306.05       -.24631E-03** at limit **
   2  norm          .10000E-03    90.543        .89060E-04** at limit **
   3  Prefactor     .10000E-03    22.350        .94924E-06** at limit **
   4  norm          .10000E-03    4.4090        .14886E-05** at limit **
   5  Prefactor     .10000E-03    4.2260       -.67781E-06** at limit **
   6  Prefactor     .10000E-03    48.147       -.21194E-04** at limit **
   7  Prefactor     148.46        130.37       -.32308E-04   -.12247E-05
   8  norm          .10000E-03    3.1273        .42089E-07** at limit **
   9  Prefactor     31.436        52.647       -.19305E-04    .27561E-05
  10  norm          3.9125        15.198       -.21076E-05   -.86616E-04
  11  Prefactor     1.8941        .31998        .42782E-07    .94127E-03
  12  norm          .10000E-03    4.5452       -.87449E-06** at limit **
  13  Prefactor     2.2630        2.1135        .12957E-06    .21985E-04
  14  Prefactor     5.5760        115.13        .28510E-05   -.74747E-05
  15  Prefactor     .10000E-03    3.5898        .42820E-07** at limit **
  16  Prefactor     16.774        21.220       -.33322E-06    .18511E-03
  17  Prefactor     .10025E-03    1113.4       -.16122E-02** at limit **
  18  Prefactor     .10000E-03    484.14       -.54971E-03** at limit **
  19  Normalizat    1.2086        .82556        .17249E-04    .36222E-03
  20  Prefactor     .89429        .96277E-01   -.71424E-07    .23037E-02
  21  norm          4.7602        1.6344        .37418E-07    .16773E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 148.461
  norm       = 0.0001
  Prefactor  = 31.4358
  norm       = 3.9125
  Prefactor  = 1.89414
  norm       = 0.0001
  Prefactor  = 2.26303
  Prefactor  = 5.57597
  Prefactor  = 0.0001
  Prefactor  = 16.7737
  Prefactor  = 0.000100253
  Prefactor  = 0.0001
  Normalizat = 1.20861
  Prefactor  = 0.894287
  norm       = 4.76015
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.487     FROM HESSE     STATUS=OK           309 CALLS     2483 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    306.84        .20609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    90.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4154        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2280        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     148.46        130.31        .16535E-03   -1.3265    
   8  norm          .10000E-03    3.1372        .12086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.436        52.638        .71446E-04   -1.4586    
  10  norm          3.9125        15.116        .20370E-03   -1.5312    
  11  Prefactor     1.8941        .32767        .12119E-04   -1.5433    
  12  norm          .10000E-03    4.5605        .14552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2630        2.1346        .70797E-04   -1.5407    
  14  Prefactor     5.5760        115.04        .17015E-03   -1.5236    
  15  Prefactor     .10000E-03    3.5955        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.774        21.216        .97789E-04   -1.4889    
  17  Prefactor     .10025E-03    1115.0        .18163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    484.45        .20063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2086        .81582        .96786E-03   -.86337    
  20  Prefactor     .89429        .97871E-01    .13356E-03   -.96341    
  21  norm          4.7602        1.6341        .50577E-04   -1.5272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53082e-09
Minuit parameter uncertainties:
  1  9.47955e-05
  2  9.80687e-05
  3  4.85554e-05
  4  5.27556e-06
  5  1.02174e-05
  6  3.09349e-05
  7  130.563
  8  1.15737e-05
  9  52.7157
  10  15.1308
  11  0.327671
  12  8.33911e-07
  13  2.13469
  14  50.765
  15  9.25644e-07
  16  21.2252
  17  0.0342569
  18  4.6671e-06
  19  0.824663
  20  0.0978901
  21  1.63407
Done.

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

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.894e+00  3.277e-01  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.943e-01  9.789e-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.209e+00  8.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 184.70
Ra Dec: 83.637 22.015
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.02e-06 +/- 5.22e-07
Energy Flux (Fixed Index): 1.19e-03 +/- 2.06e-04

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) = 4898.38916687
delta logL = 0.0979656467398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4898.3876042
delta logL = 0.0995283111497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7363       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9449       1.0000          .0000       10.000    
     3 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89753       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=   4898.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7363        3.1629        .26020E-02   -.16765E-04
   2  Index1        1.9449        1.0368        .26116E-01    .12738E-03
   3  Normalizat    1.1541        .86365        .22092        .21516E-04
   4  Prefactor     .89749        .82402E-01    .30155E-01   -.63541E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73633
  Index1     = 1.94487
  Normalizat = 1.15411
  Prefactor  = 0.897489
 **********
 **   18 **HESSE 
 **********

 FCN=   4898.388     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .68E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7363        .41760        .11501E-04   -1.5444    
   2  Index1        1.9449        .13916        .12524E-03   -.65736    
   3  Normalizat    1.1541        .78623        .98555E-03   -.88033    
   4  Prefactor     .89749        .95952E-01    .13326E-03   -.96229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7739e-14
Minuit parameter uncertainties:
  1  0.417596
  2  0.139186
  3  0.794465
  4  0.0959702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583091': 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) = 4898.38760408
delta logL = 0.0995284357732

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.736e+00  4.176e-01  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.945e+00  1.392e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.975e-01  9.597e-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.154e+00  7.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 196.18
Ra Dec: 83.637 22.015
Photon Index (Free Index): 1.94 +/- 0.14
Photon Flux (Free Index): 3.11e-06 +/- 4.50e-07
Energy Flux (Free Index): 1.15e-03 +/- 1.80e-04

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/583091/cmap_HighResolution_542851201_545443201_4FGL_J0534.5+2200_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-06', energy_flux2='1.15e-03', photon_flux_error='5.22e-07', dlogl='9.95e-02', energy_flux='1.19e-03', photon_flux2='3.11e-06', job_status='DONE', time_completed='2021-10-14 21:55:36.142675', photon_index_error2='0.14', photon_index2='1.94', ts='184.70', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.80e-04', EG='1.21', time_epoch_completed='1634273736.14', return_code='0', job_id='583091', GAL2='0.90', EG2='1.15', return_code2='0', energy_flux_error='2.06e-04', photon_flux_error2='4.50e-07', ts2='196.18', photon_index='1.88' WHERE bin_id='118' AND source_name='4FGL J0534.5+2200' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 14 21:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 583091: <4FGL_J0534.5+2200_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0534.5+2200_monthly_bin118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Oct 14 21:40:14 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 14 21:40:15 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:40:15 2021
Terminated at Thu Oct 14 21:55:36 2021
Results reported at Thu Oct 14 21:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_monthly_bin118 83.6367 22.0149 542851201 545443201 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 :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

