/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: Dan/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 27 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 = 17379
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0712.7+5033_weekly_bin707
RA = 108.188, Dec = 50.5506
tmin = 666576001, tmax = 667180801
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='903796', job_status='RUN', time_executed='2022-02-22 08:28:05.063420', time_epoch_executed='1645547285.06' WHERE source_name='4FGL J0712.7+5033' and cadence='weekly' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903796

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903796/ft1_4FGL_J0712.7+5033_weekly_bin707.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903796/ft1_4FGL_J0712.7+5033_weekly_bin707.fits outfile=/scratch/kocevski/903796/ft1_filteredMKT_4FGL_J0712.7+5033_weekly_bin707.fits ra=108.188 dec=50.5506 rad=12.0 tmin=666576001.0 tmax=667180801.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.73
user 6.30
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.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/903796/ft1_filteredMKT_4FGL_J0712.7+5033_weekly_bin707.fits evtable="EVENTS" outfile="/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.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.69
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/903796/ltcube_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.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/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits
.....................!
real 37.14
user 36.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/903796/ltcube_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits outfile=/scratch/kocevski/903796/expmap_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.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/903796/ltcube_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits
.....................!
real 196.19
user 190.32
sys 5.34

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

Setting source of interest to:
4FGL J0712.7+5033 @ 108.188 50.5506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits outfile=/scratch/kocevski/903796/cmap_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.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=108.188 yref=50.5506 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.74
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits outfile=/scratch/kocevski/903796/cmap_HighResolution_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.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=108.188 yref=50.5506 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.60
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903796/Model_4FGL_J0712.7+5033_weekly_bin707.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/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits.....................!
real 180.77
user 177.72
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits', '/scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits', expMap='/scratch/kocevski/903796/expmap_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits', expCube='/scratch/kocevski/903796/ltcube_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903796/Model_4FGL_J0712.7+5033_weekly_bin707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0712.7+5033'

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  9.082e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/903796/ft1_filtered_4FGL_J0712.7+5033_weekly_bin707.fits
Spacecraft file(s): /scratch/kocevski/903796/ft2_4FGL_J0712.7+5033_weekly_bin707.fits
Exposure map: /scratch/kocevski/903796/expmap_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits
Exposure cube: /scratch/kocevski/903796/ltcube_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903796/Model_4FGL_J0712.7+5033_weekly_bin707.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) = 18156.1768337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.741       1.0000         .10000E-03   10000.    
     2 'norm      '    .88117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14346E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24302E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0452       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5355       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2667       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.833       1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3761       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4175       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.803       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1063       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18156.18     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3968 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.742        22.353       -.56269E-06   -.60243E-05
   2  norm          .88311        1.2390       -.31091E-07   -.57610E-03
   3  Prefactor     18.687        6.3216       -.26391E-06    .10310E-04
   4  Prefactor     .10000E-03    1.1095       -.18769E-07** at limit **
   5  Prefactor     .10000E-03    46.799       -.20398E-06** at limit **
   6  Prefactor     .10004E-03    9.0862       -.20873E-06** at limit **
   7  norm          2.0449        2.2507       -.22355E-06   -.21328E-03
   8  norm          1.5341        2.1267       -.30259E-06   -.40228E-03
   9  Prefactor     1.2657        2.4487        .12800E-05   -.23006E-02
  10  norm          .10000E-03    .58428       -.30457E-07** at limit **
  11  Prefactor     .10000E-03    1.6346       -.86360E-08** at limit **
  12  Prefactor     9.2051        4.3794        .10586E-05    .19418E-03
  13  Prefactor     .10000E-03    6.9665       -.19852E-05** at limit **
  14  Prefactor     .10000E-03    3.2097        .69694E-07** at limit **
  15  norm          .10000E-03    2.1673       -.66286E-07** at limit **
  16  Prefactor     7.4906        18.116       -.22026E-05   -.60236E-05
  17  Prefactor     13.814        26.118       -.64502E-05   -.22899E-04
  18  norm          .10000E-03    .18456        .52300E-07** at limit **
  19  Prefactor     .10000E-03    7.5441        .15650E-05** at limit **
  20  Prefactor     .10000E-03    6.0755        .98542E-07** at limit **
  21  norm          1.3758        1.7173        .29999E-06    .14399E-03
  22  Prefactor     .10000E-03    6.2688        .15533E-05** at limit **
  23  Prefactor     26.715        45.877       -.33240E-04   -.88228E-04
  24  Prefactor     .10000E-03    11.178       -.11405E-06** at limit **
  25  norm          .10000E-03    1.3072        .40683E-07** at limit **
  26  norm          3.4165        1.8220        .77120E-07    .16143E-04
  27  Prefactor     .10000E-03    3.1185       -.25644E-07** at limit **
  28  Prefactor     34.796        12.468       -.16520E-05   -.50226E-04
  29  Normalizat    1.1064        .13876        .28376E-05   -.20373E-03
  30  Prefactor     .93691        .64208E-01   -.43677E-06    .42032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7422
  norm       = 0.88311
  Prefactor  = 18.6874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  norm       = 2.04493
  norm       = 1.53413
  Prefactor  = 1.26565
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.49064
  Prefactor  = 13.814
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37577
  Prefactor  = 0.000100002
  Prefactor  = 26.7152
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.41653
  Prefactor  = 0.0001
  Prefactor  = 34.7958
  Normalizat = 1.10643
  Prefactor  = 0.93691
 **********
 **   18 **HESSE 
 **********

 FCN=   18156.18     FROM HESSE     STATUS=OK           596 CALLS     4564 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.742        22.430        .83995E-04   -1.4754    
   2  norm          .88311        .98554        .17000E-02   -1.5520    
   3  Prefactor     18.687        6.3214        .92666E-04   -1.4843    
   4  Prefactor     .10000E-03    1.1161        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    9.6306        .12588       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0449        2.2368        .20384E-03   -1.5422    
   8  norm          1.5341        2.1101        .22188E-03   -1.5460    
   9  Prefactor     1.2657        9.0132        .19784E-02   -1.5483    
  10  norm          .10000E-03    .58593        .10055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6350        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2051        4.3911        .13211E-03   -1.5101    
  13  Prefactor     .10000E-03    7.1050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4906        18.136        .14655E-03   -1.5161    
  17  Prefactor     13.814        26.170        .10769E-03   -1.4964    
  18  norm          .10000E-03    .29384        .11098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3758        1.6992        .19114E-03   -1.5473    
  22  Prefactor     .10000E-03    6.4103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.715        45.936        .77460E-04   -1.4674    
  24  Prefactor     .10000E-03    11.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.3151        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4165        1.8198        .12827E-03   -1.5338    
  27  Prefactor     .10000E-03    3.1247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     34.796        12.493        .67929E-04   -1.4528    
  29  Normalizat    1.1064        .16107        .32956E-03   -.89546    
  30  Prefactor     .93691        .74617E-01    .17503E-03   -.94863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96989e-08
Minuit parameter uncertainties:
  1  22.4386
  2  0.985557
  3  6.32159
  4  1.89954e-06
  5  0.000263271
  6  0.001305
  7  2.23686
  8  2.11021
  9  6.75619
  10  2.23814e-06
  11  5.53434e-07
  12  4.39125
  13  7.25201e-06
  14  1.11513e-06
  15  1.14491e-05
  16  18.149
  17  26.1914
  18  2.70237e-06
  19  5.39853e-05
  20  4.61647e-05
  21  1.69923
  22  0.000238173
  23  45.9964
  24  5.21353e-07
  25  5.11864e-06
  26  1.81986
  27  7.92875e-06
  28  12.494
  29  0.161144
  30  0.0746254
Done.

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

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  7.252e-06  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.369e-01  7.463e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.106e+00  1.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 108.188 50.551
Photon Flux Upper Limit: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903796/likelihoodResults_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.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) = 18156.1762685
delta logL = -0.000671026809869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18156.1755975
delta logL = 4.91854734719e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18156.18     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    109.04        .18142E-02** at limit **
   2  Index         2.1624        8.4843        .50000        .72277E-05
   3  Normalizat    1.1064        .13826E-01    .32956E-03    .29529E-04
   4  Prefactor     .93691        .68612E-02    .17503E-03    .66773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100269
  Index      = 2.16238
  Normalizat = 1.10643
  Prefactor  = 0.936908
 **********
 **   18 **HESSE 
 **********

 FCN=   18156.18     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    476.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1624        7.9484        .50000       -.60350    
   3  Normalizat    1.1064        .31007E-01    .13182E-04   -.89546    
   4  Prefactor     .93691        .15385E-01    .35005E-04   -.94863    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.80466e-09
Minuit parameter uncertainties:
  1  0.0228143
  2  900.133
  3  0.0310075
  4  0.0153849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903796': 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) = 18156.1755975
delta logL = 6.32353476249e-08

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.003e-04  2.281e-02  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.162e+00  9.001e+02  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.369e-01  1.538e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.106e+00  3.101e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 108.188 50.551

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/903796/cmap_HighResolution_666576001_667180801_4FGL_J0712.7+5033_weekly_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2022-02-22 09:04:52.595157', job_id='903796', GAL2='0.94', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1645549492.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='707' AND source_name='4FGL J0712.7+5033' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 22 09:04:52 PST 2022

er <slac> at Tue Feb 22 00:07:11 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 22 00:11:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 22 00:11:07 2022
Terminated at Tue Feb 22 00:49:54 2022
Results reported at Tue Feb 22 00:49:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0712.7+5033_weekly_bin707 108.188 50.5506 666576001 667180801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0712.7+5033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2217.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             328.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2326 sec.
    Turnaround time :                            2563 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 903796: <4FGL_J0712.7+5033_weekly_bin707> in cluster <slac> Done

Job <4FGL_J0712.7+5033_weekly_bin707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 22 00:07:19 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 22 00:11:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 22 00:11:31 2022
Terminated at Tue Feb 22 09:04:53 2022
Results reported at Tue Feb 22 09:04:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0712.7+5033_weekly_bin707 108.188 50.5506 666576001 667180801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0712.7+5033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2217.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             68.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   32001 sec.
    Turnaround time :                            32254 sec.

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

