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


Performing analysis on: 4FGL_J2032.0+1219_daily_bin1056
RA = 308.004, Dec = 12.3279
tmin = 513043201, tmax = 513302401
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='1613', job_status='RUN', time_executed='2021-09-25 09:32:20.419832', time_epoch_executed='1632587540.42' WHERE source_name='4FGL J2032.0+1219' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1613/ft1_4FGL_J2032.0+1219_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1613/ft1_4FGL_J2032.0+1219_daily_bin1056.fits outfile=/scratch/kocevski/1613/ft1_filteredMKT_4FGL_J2032.0+1219_daily_bin1056.fits ra=308.004 dec=12.3279 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.51
user 6.20
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.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/1613/ft1_filteredMKT_4FGL_J2032.0+1219_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.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.43
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/1613/ltcube_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.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/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits
.....................!
real 17.93
user 17.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/1613/ltcube_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits outfile=/scratch/kocevski/1613/expmap_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.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/1613/ltcube_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits
.....................!
real 196.00
user 190.72
sys 4.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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 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.
Added 233 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 J2032.0+1219 @ 308.004 12.3279

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits outfile=/scratch/kocevski/1613/cmap_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.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.004 yref=12.3279 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.64
user 0.44
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits outfile=/scratch/kocevski/1613/cmap_HighResolution_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.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.004 yref=12.3279 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1613/Model_4FGL_J2032.0+1219_daily_bin1056.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 Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits.....................!
real 159.52
user 157.73
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits', '/scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits', expMap='/scratch/kocevski/1613/expmap_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits', expCube='/scratch/kocevski/1613/ltcube_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1613/Model_4FGL_J2032.0+1219_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2032.0+1219'

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  2.905e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1613/ft1_filtered_4FGL_J2032.0+1219_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/1613/ft2_4FGL_J2032.0+1219_daily_bin1056.fits
Exposure map: /scratch/kocevski/1613/expmap_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits
Exposure cube: /scratch/kocevski/1613/ltcube_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1613/Model_4FGL_J2032.0+1219_daily_bin1056.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) = 6429.22590553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.594       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12387E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9055       1.0000         .10000E-03   10000.    
    11 'norm      '    73.041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.652       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .55373       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0687       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6429.217     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1846 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.742        52.108        .68630E-06    .26467E-04
   2  Prefactor     .10000E-03    22.587        .16720E-06** at limit **
   3  norm          .10000E-03    4.2781        .69260E-07** at limit **
   4  Prefactor     21.571        21.630        .14536E-05    .35509E-04
   5  norm          .10000E-03    7.9509        .16099E-06** at limit **
   6  Prefactor     15.795        20.603        .27365E-05    .18859E-03
   7  Prefactor     .10000E-03    20.569       -.16859E-05** at limit **
   8  norm          .10000E-03    .39922       -.35366E-06** at limit **
   9  Prefactor     .10000E-03    56.066        .41586E-06** at limit **
  10  norm          4.8858        13.384        .33670E-05    .10529E-03
  11  norm          73.024        95.334        .43025E-06    .34027E-05
  12  Prefactor     9.3479        22.559        .18778E-05    .24180E-04
  13  Prefactor     28.332        33.127        .22083E-05   -.44002E-04
  14  Prefactor     .10000E-03    20.549       -.98194E-07** at limit **
  15  Prefactor     .10000E-03    13.523        .56892E-06** at limit **
  16  Prefactor     .10000E-03    12.385        .15089E-06** at limit **
  17  Prefactor     59.609        49.194        .15626E-05   -.41756E-04
  18  Normalizat    .55521        .40232       -.20717E-04    .20738E-04
  19  Prefactor     1.0684        .97739E-01    .30379E-05    .12889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.7419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5709
  norm       = 0.0001
  Prefactor  = 15.7955
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88583
  norm       = 73.0239
  Prefactor  = 9.34795
  Prefactor  = 28.3321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6094
  Normalizat = 0.555212
  Prefactor  = 1.06843
 **********
 **   18 **HESSE 
 **********

 FCN=   6429.217     FROM HESSE     STATUS=OK           266 CALLS     2112 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.742        52.326        .62793E-04   -1.4431    
   2  Prefactor     .10000E-03    22.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3339        .16188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.571        21.678        .86195E-04   -1.4779    
   5  norm          .10000E-03    7.9675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.795        20.629        .10063E-03   -1.4913    
   7  Prefactor     .10000E-03    20.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55204        .95103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8858        13.425        .18160E-03   -1.5266    
  11  norm          73.024        95.276        .46976E-04   -1.3997    
  12  Prefactor     9.3479        22.518        .13095E-03   -1.5096    
  13  Prefactor     28.332        32.913        .75201E-04   -1.4643    
  14  Prefactor     .10000E-03    20.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.609        48.961        .25974E-03   -1.4162    
  18  Normalizat    .55521        .39911        .68805E-03   -1.0992    
  19  Prefactor     1.0684        .98377E-01    .13548E-03   -.90482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26985e-10
Minuit parameter uncertainties:
  1  52.3849
  2  2.01984e-05
  3  6.29132e-06
  4  21.6854
  5  5.8134e-07
  6  20.6384
  7  1.65929e-05
  8  9.54897e-06
  9  9.48227e-05
  10  13.4334
  11  95.4756
  12  22.5386
  13  32.9345
  14  0.0001057
  15  5.18334e-05
  16  6.44808e-06
  17  48.9938
  18  0.401193
  19  0.098394
Done.

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

Extracting fit parameters...

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  1.580e+01  2.064e+01  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
827    Prefactor:  1.068e+00  9.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
828        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
829        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  5.552e-01  4.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 308.004 12.328
Photon Flux Upper Limit: 2.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1613/likelihoodResults_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.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): 0
logL (Free Index) = 6428.86964973
delta logL = 0.347472704718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6428.82984334
delta logL = 0.387279094006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0365       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4857       1.0000          .0000       10.000    
     3 'Normalizat'    .48035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6428.830     FROM MIGRAD    STATUS=FAILED        93 CALLS      344 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0323        111.64        .11759E-03   -.19626E-04
   2  Index         3.4864        6.7261        .52025E-02    .73901E-03
   3  Normalizat    .48036        .34068        .73628E-03    .41180E-04
   4  Prefactor     1.0804        .90469E-01    .13478E-03   -.25138E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6428.830     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      430 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0323        111.64        .31550E-03   -.19626E-04
   2  Index         3.4864        6.7261        .17750E-02    .73901E-03
   3  Normalizat    .48036        .34068        .35165E-03    .41180E-04
   4  Prefactor     1.0804        .90469E-01    .49202E-04   -.25138E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6428.830     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      459 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0322        16.723        .47036E-05   -.75894E-04
   2  Index         3.4864        2.0419        .10405E-02    .90141E-05
   3  Normalizat    .48035        .37130        .29451E-04    .23470E-04
   4  Prefactor     1.0804        .97237E-01    .26956E-04   -.15959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0322
  Index      = 3.48643
  Normalizat = 0.480354
  Prefactor  = 1.0804
 **********
 **   18 **HESSE 
 **********

 FCN=   6428.830     FROM HESSE     STATUS=OK            23 CALLS      482 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0322        10.781        .94072E-06   -1.5360    
   2  Index         3.4864        1.5670        .41620E-04   -.30754    
   3  Normalizat    .48035        .37057        .58903E-05   -1.1333    
   4  Prefactor     1.0804        .96894E-01    .53913E-05   -.90095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19261e-10
Minuit parameter uncertainties:
  1  10.7883
  2  1.59671
  3  0.372488
  4  0.0969095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1613': 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) = 6428.82984322
delta logL = 0.387279210213

Extracting fit parameters...

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  3.032e+00  1.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  3.486e+00  1.597e+00  0.000e+00  1.000e+01 (-1.000e+00)
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
827    Prefactor:  1.080e+00  9.691e-02  0.000e+00  1.000e+01 ( 1.000e+00)
828        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
829        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  4.804e-01  3.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 308.004 12.328
Photon Index (Free Index): 3.49 +/- 1.60
Photon Flux (Free Index): 1.29e-07 +/- 1.20e-07
Energy Flux (Free Index): 2.15e-05 +/- 2.06e-05

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/1613/cmap_HighResolution_513043201_513302401_4FGL_J2032.0+1219_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', energy_flux2='2.15e-05', dlogl='3.87e-01', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-25 09:46:53.603285', photon_index_error2='1.60', photon_index2='3.49', ts='0.74', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.54e-07', energy_flux_error2='2.06e-05', EG='0.56', time_epoch_completed='1632588413.6', return_code='0', job_id='1613', GAL2='1.08', EG2='0.48', return_code2='0', photon_flux_error2='1.20e-07', ts2='1.62', photon_index='2.41' WHERE bin_id='1056' AND source_name='4FGL J2032.0+1219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 1613: <4FGL_J2032.0+1219_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2032.0+1219_daily_bin1056> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 09:30:24 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:32:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 09:32:01 2021
Terminated at Sat Sep 25 09:46:54 2021
Results reported at Sat Sep 25 09:46:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2032.0+1219_daily_bin1056 308.004 12.3279 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2032.0+1219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             388.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            990 sec.

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

