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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin10
RA = 119.286, Dec = 9.9491
tmin = 241920001, tmax = 242179201
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='19869', job_status='RUN', time_executed='2021-08-28 20:11:21.454423', time_epoch_executed='1630206681.45' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19869

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19869/ft1_4FGL_J0757.1+0956_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19869/ft1_4FGL_J0757.1+0956_daily_bin10.fits outfile=/scratch/kocevski/19869/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin10.fits ra=119.286 dec=9.9491 rad=12.0 tmin=241920001.0 tmax=242179201.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 1.62
user 1.23
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.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/19869/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin10.fits evtable="EVENTS" outfile="/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.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.76
user 0.31
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/19869/ltcube_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.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/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits
.....................!
real 12.69
user 12.06
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/19869/ltcube_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits outfile=/scratch/kocevski/19869/expmap_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.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/19869/ltcube_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits
.....................!
real 191.92
user 187.12
sys 4.44

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 169 point sources and 2 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 J0757.1+0956 @ 119.286 9.9491

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits outfile=/scratch/kocevski/19869/cmap_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.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=119.286 yref=9.9491 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.78
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits outfile=/scratch/kocevski/19869/cmap_HighResolution_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.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=119.286 yref=9.9491 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.77
user 0.39
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19869/Model_4FGL_J0757.1+0956_daily_bin10.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits.....................!
real 116.46
user 114.74
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits', '/scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits', expMap='/scratch/kocevski/19869/expmap_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits', expCube='/scratch/kocevski/19869/ltcube_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19869/Model_4FGL_J0757.1+0956_daily_bin10.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0757.1+0956'

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  8.647e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19869/ft1_filtered_4FGL_J0757.1+0956_daily_bin10.fits
Spacecraft file(s): /scratch/kocevski/19869/ft2_4FGL_J0757.1+0956_daily_bin10.fits
Exposure map: /scratch/kocevski/19869/expmap_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits
Exposure cube: /scratch/kocevski/19869/ltcube_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19869/Model_4FGL_J0757.1+0956_daily_bin10.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) = 9153.39234869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3644       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.093       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0904       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5588       1.0000         .10000E-03   10000.    
    10 'norm      '    13.437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12853E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6787       1.0000         .10000E-03   10000.    
    16 'norm      '    18.351       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .31464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0313       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9153.375     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2563 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3635        2.4826        .40454E-06   -.90463E-03
   2  norm          .10000E-03    .49720        .10429E-06** at limit **
   3  Prefactor     10.871        40.267       -.66925E-06   -.94016E-05
   4  Prefactor     28.094        25.721       -.14913E-06    .35973E-04
   5  norm          .10000E-03    .67378       -.12915E-07** at limit **
   6  norm          2.0899        1.4882        .68413E-07   -.11850E-03
   7  Prefactor     16.455        10.439        .57783E-07   -.30274E-04
   8  Prefactor     26.449        46.137        .19977E-06    .42265E-05
   9  Prefactor     5.5611        3.0667        .53739E-07    .17554E-04
  10  norm          13.442        18.809       -.72844E-07   -.65342E-04
  11  Prefactor     .10000E-03    19.234       -.19164E-05** at limit **
  12  Prefactor     .10000E-03    32.254        .29287E-06** at limit **
  13  norm          .10000E-03    31.104       -.29279E-06** at limit **
  14  Prefactor     .10000E-03    7.7822       -.17468E-06** at limit **
  15  norm          7.6788        6.2868        .26112E-07   -.26576E-04
  16  norm          18.352        18.168       -.83722E-07   -.88701E-04
  17  norm          .10000E-03    .95590       -.18239E-07** at limit **
  18  Prefactor     68.428        41.268        .24118E-07   -.89251E-05
  19  Prefactor     .10000E-03    7.8009        .10645E-06** at limit **
  20  norm          .31541        .52043        .32278E-06    .12755E-02
  21  Prefactor     .10000E-03    20.135        .18998E-06** at limit **
  22  Normalizat    1.0304        .17671       -.24174E-06   -.56959E-04
  23  Prefactor     1.0090        .11540       -.30708E-06   -.42675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.36346
  norm       = 0.0001
  Prefactor  = 10.8712
  Prefactor  = 28.0944
  norm       = 0.0001
  norm       = 2.08992
  Prefactor  = 16.455
  Prefactor  = 26.4493
  Prefactor  = 5.56112
  norm       = 13.442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.67881
  norm       = 18.3522
  norm       = 0.0001
  Prefactor  = 68.4279
  Prefactor  = 0.0001
  norm       = 0.315415
  Prefactor  = 0.0001
  Normalizat = 1.03037
  Prefactor  = 1.00903
 **********
 **   18 **HESSE 
 **********

 FCN=   9153.375     FROM HESSE     STATUS=OK           376 CALLS     2939 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3635        2.3985        .39343E-03   -1.5165    
   2  norm          .10000E-03    .78949        .12976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.871        40.412        .12035E-03   -1.5048    
   4  Prefactor     28.094        25.714        .75585E-04   -1.4647    
   5  norm          .10000E-03    .67845        .76058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0899        1.4781        .93810E-04   -1.5419    
   7  Prefactor     16.455        10.350        .98743E-04   -1.4896    
   8  Prefactor     26.449        46.162        .77899E-04   -1.4679    
   9  Prefactor     5.5611        3.0748        .11731E-03   -1.5236    
  10  norm          13.442        18.754        .10927E-03   -1.4975    
  11  Prefactor     .10000E-03    18.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    31.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6788        6.2856        .14471E-03   -1.5154    
  16  norm          18.352        18.177        .93495E-04   -1.4851    
  17  norm          .10000E-03    .96637        .91326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.428        41.629        .48533E-04   -1.4052    
  19  Prefactor     .10000E-03    7.8374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .31541        .47624        .98312E-03   -1.5596    
  21  Prefactor     .10000E-03    20.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0304        .20528        .30526E-03   -.92020    
  23  Prefactor     1.0090        .13347        .20842E-03   -.92429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0282e-10
Minuit parameter uncertainties:
  1  2.39856
  2  3.02629e-06
  3  40.5138
  4  25.7242
  5  4.09155e-07
  6  1.47816
  7  10.3507
  8  46.2245
  9  3.07494
  10  18.7626
  11  0.00013997
  12  0.000164615
  13  0.000175539
  14  8.22479e-06
  15  6.28617
  16  18.1829
  17  6.33776e-07
  18  41.647
  19  1.79317e-06
  20  0.476249
  21  3.45445e-05
  22  0.20544
  23  0.133514
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.400e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.009e+00  1.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.030e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19869/likelihoodResults_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.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): 102
logL (Free Index) = 9153.37557876
delta logL = -0.000252441950579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9153.37532566
delta logL = 6.56438714941e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2732       1.0000          .0000       10.000    
     3 'Normalizat'    1.0306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9151.656     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71238E-01    .46042        .31985E-02   -.52041E-02
   2  Index         5.0364        1.6450        .96221E-01   -.44929E-04
   3  Normalizat    .88928        .42868E-01    .73468E-01    .22207E-04
   4  Prefactor     1.0680        .29155E-01    .43494E-01    .21423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0712384
  Index      = 5.03643
  Normalizat = 0.889281
  Prefactor  = 1.06795
 **********
 **   18 **HESSE 
 **********

 FCN=   9151.656     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71238E-01    1.1704        .14438E-04   -1.5655    
   2  Index         5.0364        3.0632        .35662E-02    .72869E-02
   3  Normalizat    .88928        .17076        .32514E-03   -.96838    
   4  Prefactor     1.0680        .11225        .20319E-03   -.90497    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19535e-09
Minuit parameter uncertainties:
  1  0.57711
  2  3.29705
  3  0.170864
  4  0.112274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19869': 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): 102
logL (Free Index) = 9151.65598372
delta logL = 1.71934260435

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  7.124e-02  5.771e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  5.036e+00  3.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.068e+00  1.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.893e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 119.286 9.949
Photon Index (Free Index): 5.04 +/- 3.30
Photon Flux (Free Index): 1.14e-07 +/- 6.86e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.08e-05

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/19869/cmap_HighResolution_241920001_242179201_4FGL_J0757.1+0956_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.72e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-08-28 20:25:27.076977', photon_index_error2='3.30', photon_index2='5.04', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.60e-08', energy_flux_error2='1.08e-05', EG='1.03', time_epoch_completed='1630207527.08', return_code='0', job_id='19869', GAL2='1.07', EG2='0.89', return_code2='102', photon_flux_error2='6.86e-08', ts2='3.92', photon_index='2.15' WHERE bin_id='10' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:25:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 19869: <4FGL_J0757.1+0956_daily_bin10> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin10> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 20:10:36 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:10:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 20:10:38 2021
Terminated at Sat Aug 28 20:25:27 2021
Results reported at Sat Aug 28 20:25:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin10 119.286 9.9491 241920001 242179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0757.1+0956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   846.06 sec.
    Max Memory :                                 1132 MB
    Average Memory :                             316.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

