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


Performing analysis on: 4FGL_J0522.9-3628_daily_bin1071
RA = 80.737, Dec = -36.4686
tmin = 516931201, tmax = 517190401
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='253447', job_status='RUN', time_executed='2021-08-22 12:56:01.285135', time_epoch_executed='1629662161.29' WHERE source_name='4FGL J0522.9-3628' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253447/ft1_4FGL_J0522.9-3628_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253447/ft1_4FGL_J0522.9-3628_daily_bin1071.fits outfile=/scratch/kocevski/253447/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin1071.fits ra=80.737 dec=-36.4686 rad=12.0 tmin=516931201.0 tmax=517190401.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.78
user 3.69
sys 1.01

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.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/253447/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.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.32
user 0.33
sys 0.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/253447/ltcube_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.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/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits
.....................!
real 12.66
user 11.38
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/253447/ltcube_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits outfile=/scratch/kocevski/253447/expmap_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.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/253447/ltcube_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits
.....................!
real 191.24
user 185.51
sys 5.26

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
Added 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J0522.9-3628 @ 80.737 -36.4686

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits outfile=/scratch/kocevski/253447/cmap_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.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=80.737 yref=-36.4686 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.34
user 0.41
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits outfile=/scratch/kocevski/253447/cmap_HighResolution_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.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=80.737 yref=-36.4686 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.34
user 0.40
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253447/Model_4FGL_J0522.9-3628_daily_bin1071.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
Working on...
/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits.....................!
real 56.79
user 54.34
sys 2.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits', '/scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits', expMap='/scratch/kocevski/253447/expmap_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits', expCube='/scratch/kocevski/253447/ltcube_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253447/Model_4FGL_J0522.9-3628_daily_bin1071.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0522.9-3628'

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  6.364e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.372e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253447/ft1_filtered_4FGL_J0522.9-3628_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/253447/ft2_4FGL_J0522.9-3628_daily_bin1071.fits
Exposure map: /scratch/kocevski/253447/expmap_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits
Exposure cube: /scratch/kocevski/253447/ltcube_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253447/Model_4FGL_J0522.9-3628_daily_bin1071.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) = 4887.42704332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2952       1.0000         .10000E-03   10000.    
     3 'norm      '    9.0533       1.0000         .10000E-03   10000.    
     4 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1693       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.769       1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4797       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7377       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9036       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22279       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
    20 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.547       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5705       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8236       1.0000         .10000E-03   10000.    
    24 'norm      '    16.499       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3739       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.047       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5860       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0808       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4887.387     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3775 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.557        .23543E-07** at limit **
   2  norm          3.2949        .97176        .24482E-08   -.11414E-04
   3  norm          9.0532        10.556        .31832E-07    .38529E-05
   4  norm          .10000E-03    75.942       -.37212E-06** at limit **
   5  norm          5.9008        3.1465        .13385E-07   -.55261E-05
   6  Prefactor     9.1698        5.5026       -.27038E-07   -.28174E-05
   7  Prefactor     20.775        20.082       -.11995E-07   -.57255E-07
   8  norm          .10000E-03    2.1168       -.43075E-08** at limit **
   9  norm          .10000E-03    2.6036        .27705E-08** at limit **
  10  Prefactor     .10000E-03    44.511       -.21832E-08** at limit **
  11  Prefactor     .10000E-03    7.0497       -.92333E-08** at limit **
  12  Prefactor     .10000E-03    67.326        .33085E-06** at limit **
  13  Prefactor     1.0145        2.1036        .57257E-07    .27237E-05
  14  Prefactor     5.4894        6.8833        .68461E-06   -.83069E-04
  15  norm          5.7462        3.6582       -.30019E-06    .45476E-03
  16  Prefactor     29.896        51.171       -.10281E-05   -.14388E-03
  17  Prefactor     3.9231        10.355        .29690E-05   -.65686E-04
  18  Prefactor     .13328E-03    20.792       -.16131E-05** at limit **
  19  Prefactor     13.062        12.308        .60826E-08    .39231E-04
  20  norm          .10000E-03    9.8963        .41896E-07** at limit **
  21  Prefactor     47.596        43.145       -.10780E-05    .31765E-03
  22  norm          1.5703        1.3424       -.37585E-07   -.69980E-04
  23  norm          1.8244        3.1125        .66008E-07    .50161E-04
  24  norm          16.499        15.587        .41430E-07   -.71780E-06
  25  Prefactor     6.3688        78.872        .66047E-06    .95155E-05
  26  Prefactor     15.011        42.316        .52114E-05    .86889E-04
  27  Prefactor     1.5900        194.74       -.12295E-04   -.27922E-04
  28  Normalizat    1.0805        .26455        .21086E-06    .86293E-04
  29  Prefactor     .96107        .21164       -.76689E-06    .15636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.29493
  norm       = 9.0532
  norm       = 0.0001
  norm       = 5.9008
  Prefactor  = 9.16981
  Prefactor  = 20.7745
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0145
  Prefactor  = 5.48942
  norm       = 5.74619
  Prefactor  = 29.8958
  Prefactor  = 3.92307
  Prefactor  = 0.000133277
  Prefactor  = 13.0624
  norm       = 0.0001
  Prefactor  = 47.5958
  norm       = 1.57027
  norm       = 1.82441
  norm       = 16.4987
  Prefactor  = 6.36876
  Prefactor  = 15.0111
  Prefactor  = 1.58999
  Normalizat = 1.08052
  Prefactor  = 0.961074
 **********
 **   18 **HESSE 
 **********

 FCN=   4887.387     FROM HESSE     STATUS=OK           569 CALLS     4344 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2949        .97186        .36247E-04   -1.5345    
   3  norm          9.0532        10.546        .13321E-03   -1.5106    
   4  norm          .10000E-03    76.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9008        3.1818        .75864E-04   -1.5222    
   6  Prefactor     9.1698        5.5826        .10217E-03   -1.5102    
   7  Prefactor     20.775        20.080        .87889E-04   -1.4796    
   8  norm          .10000E-03    2.1454        .99299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6104        .11011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1963        .18115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0145        1.7810        .13964E-02   -1.5507    
  14  Prefactor     5.4894        6.8485        .85823E-03   -1.5239    
  15  norm          5.7462        3.6230        .94138E-04   -1.5228    
  16  Prefactor     29.896        52.324        .73380E-04   -1.4614    
  17  Prefactor     3.9231        10.609        .10210E-02   -1.5312    
  18  Prefactor     .13328E-03    27.098        .83639E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.062        12.267        .11083E-03   -1.4985    
  20  norm          .10000E-03    10.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.596        44.490        .58151E-04   -1.4327    
  22  norm          1.5703        1.3254        .70499E-04   -1.5457    
  23  norm          1.8244        3.0902        .14707E-03   -1.5438    
  24  norm          16.499        15.593        .98603E-04   -1.4895    
  25  Prefactor     6.3688        78.778        .15898E-03   -1.5203    
  26  Prefactor     15.011        43.697        .10325E-03   -1.4933    
  27  Prefactor     1.5900        209.12        .33708E-03   -1.5456    
  28  Normalizat    1.0805        .31396        .30382E-03   -.90380    
  29  Prefactor     .96107        .24912        .26464E-03   -.94039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07608e-09
Minuit parameter uncertainties:
  1  2.59216e-07
  2  0.971862
  3  10.5485
  4  0.000321134
  5  3.18191
  6  5.58296
  7  20.0861
  8  1.96274e-06
  9  3.91879e-08
  10  2.63547e-05
  11  1.16676e-05
  12  0.000226128
  13  1.78114
  14  6.84944
  15  3.62312
  16  52.4045
  17  10.614
  18  0.0600848
  19  12.2693
  20  1.45904e-05
  21  44.521
  22  1.3254
  23  3.09051
  24  15.5964
  25  44.8712
  26  43.7902
  27  36.5995
  28  0.314501
  29  0.249419
Done.

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

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  5.746e+00  3.623e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.372e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.611e-01  2.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.081e+00  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.14
Ra Dec: 80.737 -36.469
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.96e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4887.25222289
delta logL = 0.134294076874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4887.24907632
delta logL = 0.137440645071

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4887.249     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9268        85.251        .41227E-02    .15243E-03
   2  alpha         2.6846        2.8623        .35535        .11123E-04
   3  Normalizat    1.0470        .22470        .69582E-01    .11183E-04
   4  Prefactor     .97818        .23457        .45992E-01   -.99214E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92678
  alpha      = 2.68463
  Normalizat = 1.04696
  Prefactor  = 0.978182
 **********
 **   18 **HESSE 
 **********

 FCN=   4887.249     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9268        3.2981        .87825E-04   -1.5221    
   2  alpha         2.6846        .59745        .14270E-01    .73919E-01
   3  Normalizat    1.0470        .29552        .30786E-03   -.91473    
   4  Prefactor     .97818        .24011        .26254E-03   -.93460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60649e-12
Minuit parameter uncertainties:
  1  3.29822
  2  0.603323
  3  0.29598
  4  0.240376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253447': 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) = 4887.24907479
delta logL = 0.137442181191

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  5.927e+00  3.298e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.685e+00  6.033e-01  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.782e-01  2.404e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.047e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.42
Ra Dec: 80.737 -36.469
Photon Index (Free Index): 2.68 +/- 0.60
Photon Flux (Free Index): 1.33e-07 +/- 8.76e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.72e-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/253447/cmap_HighResolution_516931201_517190401_4FGL_J0522.9-3628_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.13e-05', photon_flux_error='6.49e-08', dlogl='1.37e-01', energy_flux='3.10e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-08-22 13:07:19.480478', photon_index_error2='0.60', photon_index2='2.68', ts='6.14', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.08', time_epoch_completed='1629662839.48', return_code='0', job_id='253447', GAL2='0.98', EG2='1.05', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='8.76e-08', ts2='6.42', photon_index='2.37' WHERE bin_id='1071' AND source_name='4FGL J0522.9-3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 253447: <4FGL_J0522.9-3628_daily_bin1071> in cluster <slac> Done

Job <4FGL_J0522.9-3628_daily_bin1071> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 12:55:31 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 12:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 12:55:33 2021
Terminated at Sun Aug 22 13:07:20 2021
Results reported at Sun Aug 22 13:07:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0522.9-3628_daily_bin1071 80.737 -36.4686 516931201 517190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0522.9-3628 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            709 sec.

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

