/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 178 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0746.4+2546_daily_bin95
RA = 116.602, Dec = 25.7678
tmin = 263952001, tmax = 264211201
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='824792', job_status='RUN', time_executed='2021-08-28 10:09:46.944950', time_epoch_executed='1630170586.94' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824792/ft1_4FGL_J0746.4+2546_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824792/ft1_4FGL_J0746.4+2546_daily_bin95.fits outfile=/scratch/kocevski/824792/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin95.fits ra=116.602 dec=25.7678 rad=12.0 tmin=263952001.0 tmax=264211201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.93
user 1.52
sys 2.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.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/824792/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.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 2.74
user 0.33
sys 2.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/824792/ltcube_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.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/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits
.....................!
real 14.74
user 11.92
sys 2.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/824792/ltcube_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits outfile=/scratch/kocevski/824792/expmap_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.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/824792/ltcube_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits
.....................!
real 193.77
user 185.22
sys 8.16

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 IC 443 in ROI with RadialGaussian spatial model.
Added 172 point sources and 1 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 J0746.4+2546 @ 116.602 25.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits outfile=/scratch/kocevski/824792/cmap_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.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=116.602 yref=25.7678 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 3.07
user 0.37
sys 2.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits outfile=/scratch/kocevski/824792/cmap_HighResolution_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.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=116.602 yref=25.7678 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 2.77
user 0.37
sys 2.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824792/Model_4FGL_J0746.4+2546_daily_bin95.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
Working on...
/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits.....................!
real 81.58
user 76.69
sys 4.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits', '/scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits', expMap='/scratch/kocevski/824792/expmap_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits', expCube='/scratch/kocevski/824792/ltcube_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/824792/Model_4FGL_J0746.4+2546_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.4+2546'

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.783e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/824792/ft1_filtered_4FGL_J0746.4+2546_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/824792/ft2_4FGL_J0746.4+2546_daily_bin95.fits
Exposure map: /scratch/kocevski/824792/expmap_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits
Exposure cube: /scratch/kocevski/824792/ltcube_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/824792/Model_4FGL_J0746.4+2546_daily_bin95.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) = 7271.72717528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0612       1.0000         .10000E-03   10000.    
     2 'norm      '    .53720       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.758       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8844       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.003       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8203       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85360       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7271.722     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2191 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0681        16.667       -.58224E-05   -.19383E-03
   2  norm          .36583        6.4313       -.65914E-06    .11444E-04
   3  norm          1.1324        .75932       -.62738E-07   -.20340E-03
   4  Prefactor     33.532        10.010       -.20097E-06    .65874E-04
   5  Prefactor     .10000E-03    30.826       -.59327E-06** at limit **
   6  norm          2.8711        1.4841       -.22894E-06   -.10269E-06
   7  Prefactor     .10000E-03    6.9072       -.30895E-06** at limit **
   8  norm          2.4572        4.0523        .65771E-06   -.50479E-03
   9  Prefactor     7.2723        38.486       -.18060E-04   -.12893E-04
  10  Prefactor     .10000E-03    16.430       -.22120E-05** at limit **
  11  Prefactor     32.303        40.874        .10694E-04    .16693E-04
  12  Prefactor     19.759        23.309        .47092E-06    .23222E-04
  13  norm          3.8751        14.785       -.22853E-05   -.77848E-04
  14  norm          .10000E-03    19.887       -.49515E-05** at limit **
  15  Prefactor     21.997        28.401       -.54964E-05    .64738E-06
  16  Prefactor     51.951        44.553       -.90847E-05   -.44217E-05
  17  Prefactor     83.637        38.459       -.76450E-05    .84346E-05
  18  Prefactor     .10000E-03    18.126        .66040E-05** at limit **
  19  norm          4.8199        1.6444       -.16909E-07   -.32582E-03
  20  Normalizat    .85343        .22275        .35646E-05    .54413E-04
  21  Prefactor     1.2668        .14837        .33990E-06    .25388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06813
  norm       = 0.365827
  norm       = 1.13241
  Prefactor  = 33.5323
  Prefactor  = 0.0001
  norm       = 2.87107
  Prefactor  = 0.0001
  norm       = 2.45722
  Prefactor  = 7.27231
  Prefactor  = 0.0001
  Prefactor  = 32.3032
  Prefactor  = 19.7585
  norm       = 3.87515
  norm       = 0.0001
  Prefactor  = 21.9973
  Prefactor  = 51.9509
  Prefactor  = 83.6365
  Prefactor  = 0.0001
  norm       = 4.81994
  Normalizat = 0.853429
  Prefactor  = 1.26683
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.722     FROM HESSE     STATUS=OK           323 CALLS     2514 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0681        16.865        .28783E-03   -1.5420    
   2  norm          .36583        90.036        .40479E-02   -1.5587    
   3  norm          1.1324        .76308        .58540E-04   -1.5495    
   4  Prefactor     33.532        10.019        .69197E-04   -1.4549    
   5  Prefactor     .10000E-03    31.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8711        1.4812        .71990E-04   -1.5369    
   7  Prefactor     .10000E-03    6.9923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4572        3.9887        .19709E-03   -1.5394    
   9  Prefactor     7.2723        37.613        .14866E-03   -1.5169    
  10  Prefactor     .10000E-03    16.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.303        40.882        .70513E-04   -1.4571    
  12  Prefactor     19.759        23.287        .90106E-04   -1.4819    
  13  norm          3.8751        14.799        .20473E-03   -1.5314    
  14  norm          .10000E-03    19.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.997        28.388        .85390E-04   -1.4770    
  16  Prefactor     51.951        44.586        .55639E-04   -1.4265    
  17  Prefactor     83.637        38.453        .43921E-04   -1.3876    
  18  Prefactor     .10000E-03    18.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8199        1.6455        .61100E-04   -1.5269    
  20  Normalizat    .85343        .24763        .35668E-03   -.98116    
  21  Prefactor     1.2668        .16698        .20833E-03   -.84299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72417e-10
Minuit parameter uncertainties:
  1  11.8159
  2  11.4942
  3  0.76309
  4  10.0194
  5  7.91043e-05
  6  1.48123
  7  0.000104753
  8  3.9891
  9  33.1105
  10  4.33634e-05
  11  40.9173
  12  23.2972
  13  14.813
  14  6.0269e-06
  15  28.4051
  16  44.6143
  17  38.4646
  18  3.13467e-05
  19  1.64547
  20  0.247958
  21  0.167049
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  2.457e+00  3.989e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.267e+00  1.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.534e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824792/likelihoodResults_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.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) = 7271.38328649
delta logL = 0.338374795763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7271.36448038
delta logL = 0.357180906271

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7271.364     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8808        2.2813        .75807E-02    .37044E-03
   2  alpha         1.4785        .76621        .46626       -.49892E-04
   3  Normalizat    .87472        .20659        .79654E-01   -.18887E-04
   4  Prefactor     1.2557        .14445        .33430E-01   -.10487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88085
  alpha      = 1.47845
  Normalizat = 0.874722
  Prefactor  = 1.25568
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.364     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8808        2.9694        .13575E-03   -1.5434    
   2  alpha         1.4785        1.0765        .28044E-01   -.42094    
   3  Normalizat    .87472        .23019        .35260E-03   -.97354    
   4  Prefactor     1.2557        .16115        .20900E-03   -.84635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78593e-11
Minuit parameter uncertainties:
  1  2.96965
  2  1.12109
  3  0.230444
  4  0.161209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824792': 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) = 7271.36447827
delta logL = 0.357183018398

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.881e+00  2.970e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  1.478e+00  1.121e+00  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.256e+00  1.612e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.747e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 116.602 25.768
Photon Index (Free Index): 1.48 +/- 1.12
Photon Flux (Free Index): 1.42e-08 +/- 2.18e-08
Energy Flux (Free Index): 7.68e-06 +/- 9.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/824792/cmap_HighResolution_263952001_264211201_4FGL_J0746.4+2546_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', comment='SUCCESS', energy_flux2='7.68e-06', dlogl='3.57e-01', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-08-28 10:21:40.188120', photon_index_error2='1.12', photon_index2='1.48', ts='0.52', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.36e-06', EG='0.85', time_epoch_completed='1630171300.19', return_code='0', job_id='824792', GAL2='1.26', EG2='0.87', return_code2='0', photon_flux_error2='2.18e-08', ts2='1.23', photon_index='2.62' WHERE bin_id='95' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:21:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 824792: <4FGL_J0746.4+2546_daily_bin95> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin95> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 28 10:05:55 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:05:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 10:05:58 2021
Terminated at Sat Aug 28 10:21:41 2021
Results reported at Sat Aug 28 10:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin95 116.602 25.7678 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.4+2546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            946 sec.

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

