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


Performing analysis on: 4FGL_J2032.6+4053_daily_bin974
RA = 308.153, Dec = 40.8939
tmin = 491788801, tmax = 492048001
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='15787', job_status='RUN', time_executed='2021-09-25 10:21:04.122078', time_epoch_executed='1632590464.12' WHERE source_name='4FGL J2032.6+4053' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15787/ft1_4FGL_J2032.6+4053_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15787/ft1_4FGL_J2032.6+4053_daily_bin974.fits outfile=/scratch/kocevski/15787/ft1_filteredMKT_4FGL_J2032.6+4053_daily_bin974.fits ra=308.153 dec=40.8939 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.31
user 3.98
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.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/15787/ft1_filteredMKT_4FGL_J2032.6+4053_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/15787/ltcube_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.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/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits
.....................!
real 13.36
user 12.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/15787/ltcube_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits outfile=/scratch/kocevski/15787/expmap_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.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/15787/ltcube_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits
.....................!
real 192.61
user 185.75
sys 5.72

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 185 point sources and 5 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 J2032.6+4053 @ 308.153 40.8939

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits outfile=/scratch/kocevski/15787/cmap_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.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=308.153 yref=40.8939 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits outfile=/scratch/kocevski/15787/cmap_HighResolution_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.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=308.153 yref=40.8939 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15787/Model_4FGL_J2032.6+4053_daily_bin974.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits.....................!
real 90.75
user 89.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits', '/scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits', expMap='/scratch/kocevski/15787/expmap_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits', expCube='/scratch/kocevski/15787/ltcube_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15787/Model_4FGL_J2032.6+4053_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2032.6+4053'

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  3.020e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/15787/ft1_filtered_4FGL_J2032.6+4053_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/15787/ft2_4FGL_J2032.6+4053_daily_bin974.fits
Exposure map: /scratch/kocevski/15787/expmap_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits
Exposure cube: /scratch/kocevski/15787/ltcube_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15787/Model_4FGL_J2032.6+4053_daily_bin974.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) = 3279.31237095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.837       1.0000         .10000E-03   10000.    
     5 'norm      '    .13014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    156.63       1.0000         .10000E-03   10000.    
     7 'norm      '    4.9070       1.0000         .10000E-03   10000.    
     8 'norm      '    .11343E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11343E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10820E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    55.782       1.0000         .10000E-03   10000.    
    14 'norm      '    9.5351       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.417       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.5698       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3279.267     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2018 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.794        .16966E-07** at limit **
   2  norm          .10000E-03    61.947       -.36685E-06** at limit **
   3  norm          9.6443        32.758        .23546E-06   -.12094E-05
   4  Prefactor     85.762        89.322        .34058E-07   -.35283E-04
   5  norm          .10000E-03    108.05       -.39013E-06** at limit **
   6  Prefactor     156.40        144.30       -.66201E-06   -.56144E-04
   7  norm          4.9023        14.210        .73722E-05   -.25316E-04
   8  norm          .10000E-03    12.551       -.12153E-05** at limit **
   9  Prefactor     1.6938        .91943       -.57983E-07    .19074E-04
  10  Prefactor     .10000E-03    188.57       -.58029E-06** at limit **
  11  norm          .10000E-03    12.949       -.40321E-06** at limit **
  12  norm          .10000E-03    24.124        .24366E-06** at limit **
  13  norm          55.792        28.196        .70130E-07    .57020E-05
  14  norm          9.5349        25.170        .74297E-07   -.65862E-06
  15  Prefactor     .10000E-03    34.380        .32670E-07** at limit **
  16  Prefactor     .10000E-03    114.38        .59232E-06** at limit **
  17  norm          11.416        11.293        .29522E-07   -.56500E-05
  18  norm          .10000E-03    45.599        .60214E-07** at limit **
  19  Normalizat    2.5723        1.3402       -.92810E-05   -.10135E-05
  20  Prefactor     .97924        .10488        .34558E-06   -.48306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.64434
  Prefactor  = 85.7622
  norm       = 0.0001
  Prefactor  = 156.401
  norm       = 4.90233
  norm       = 0.0001
  Prefactor  = 1.69382
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 55.7915
  norm       = 9.53492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4157
  norm       = 0.0001
  Normalizat = 2.57232
  Prefactor  = 0.979237
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.267     FROM HESSE     STATUS=OK           289 CALLS     2307 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    61.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.6443        32.732        .12883E-03   -1.5087    
   4  Prefactor     85.762        89.362        .21681E-03   -1.3853    
   5  norm          .10000E-03    108.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     156.40        144.36        .16107E-03   -1.3200    
   7  norm          4.9023        14.228        .90786E-03   -1.5265    
   8  norm          .10000E-03    12.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6938        .90963        .37649E-04   -1.5448    
  10  Prefactor     .10000E-03    188.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    24.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          55.792        28.203        .53709E-04   -1.4213    
  14  norm          9.5349        25.173        .12978E-03   -1.5090    
  15  Prefactor     .10000E-03    34.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    114.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.416        11.300        .11856E-03   -1.5032    
  18  norm          .10000E-03    45.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    2.5723        1.3805        .12251E-02   -.50868    
  20  Prefactor     .97924        .11015        .13719E-03   -.93425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52213e-11
Minuit parameter uncertainties:
  1  0.000122185
  2  0.000186024
  3  32.7929
  4  89.5023
  5  0.000167089
  6  144.687
  7  14.2375
  8  1.16662e-05
  9  0.909639
  10  0.000354291
  11  1.85243e-05
  12  1.06915e-05
  13  28.2098
  14  25.2009
  15  3.56615e-05
  16  0.000280546
  17  11.3018
  18  2.72981e-05
  19  1.40466
  20  0.110178
Done.

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

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  5.579e+01  2.821e+01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.963e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  9.792e-01  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  2.572e+00  1.405e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 308.153 40.894
Photon Index (Fixed Index): 2.96 +/- 0.00
Photon Flux (Fixed Index): 1.35e-06 +/- 6.83e-07
Energy Flux (Fixed Index): 4.00e-04 +/- 2.02e-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) = 3279.26656895
delta logL = 0.000445103478341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3279.26537029
delta logL = 0.00164375524446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.267       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9293       1.0000          .0000       5.0000    
     3 'Normalizat'    2.5808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3279.265     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      256 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          58.283        57.072        .52558E-04   -.12984E-02
   2  alpha         2.9289        .63964        .66953E-02   -.39234E-03
   3  Normalizat    2.5817        1.3522        .12240E-02    .56817E-04
   4  Prefactor     .97897        .10798        .13721E-03    .14376E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 58.283
  alpha      = 2.92888
  Normalizat = 2.5817
  Prefactor  = 0.978971
 **********
 **   18 **HESSE 
 **********

 FCN=   3279.265     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          58.283        52.296        .10512E-04   -1.4180    
   2  alpha         2.9289        .58680        .26781E-03    .17240    
   3  Normalizat    2.5817        1.3498        .48959E-04   -.50653    
   4  Prefactor     .97897        .10793        .27442E-04   -.93434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7357e-09
Minuit parameter uncertainties:
  1  52.3369
  2  0.592498
  3  1.37231
  4  0.107951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15787': 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) = 3279.26536953
delta logL = 0.00164452043964

Extracting fit parameters...

4FGL J2032.6+4053
   Spectrum: LogParabola
360         norm:  5.828e+01  5.234e+01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.929e+00  5.925e-01  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  1.188e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  9.790e-01  1.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  2.582e+00  1.372e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 308.153 40.894
Photon Index (Free Index): 2.93 +/- 0.59
Photon Flux (Free Index): 1.33e-06 +/- 7.30e-07
Energy Flux (Free Index): 4.03e-04 +/- 2.09e-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/15787/cmap_HighResolution_491788801_492048001_4FGL_J2032.6+4053_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-06', energy_flux2='4.03e-04', photon_flux_error='6.83e-07', dlogl='1.64e-03', energy_flux='4.00e-04', photon_flux2='1.33e-06', job_status='DONE', time_completed='2021-09-25 10:30:12.812721', photon_index_error2='0.59', photon_index2='2.93', ts='5.82', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.09e-04', EG='2.57', time_epoch_completed='1632591012.81', return_code='0', job_id='15787', GAL2='0.98', EG2='2.58', return_code2='0', energy_flux_error='2.02e-04', photon_flux_error2='7.30e-07', ts2='5.88', photon_index='2.96' WHERE bin_id='974' AND source_name='4FGL J2032.6+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 10:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 15787: <4FGL_J2032.6+4053_daily_bin974> in cluster <slac> Done

Job <4FGL_J2032.6+4053_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 10:15:30 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 10:17:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 10:17:05 2021
Terminated at Sat Sep 25 10:30:13 2021
Results reported at Sat Sep 25 10:30:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2032.6+4053_daily_bin974 308.153 40.8939 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2032.6+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   544.41 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             292.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            883 sec.

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

