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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1390
RA = 106.207, Dec = 49.1318
tmin = 599616001, tmax = 599875201
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='101450', job_status='RUN', time_executed='2021-08-26 17:43:13.315303', time_epoch_executed='1630024993.32' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101450/ft1_4FGL_J0704.8+4907_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101450/ft1_4FGL_J0704.8+4907_daily_bin1390.fits outfile=/scratch/kocevski/101450/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1390.fits ra=106.207 dec=49.1318 rad=12.0 tmin=599616001.0 tmax=599875201.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.36
user 2.34
sys 1.01

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.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/101450/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.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.30
user 0.31
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/101450/ltcube_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.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/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits
.....................!
real 13.31
user 12.00
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/101450/ltcube_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits outfile=/scratch/kocevski/101450/expmap_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.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/101450/ltcube_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits
.....................!
real 191.51
user 184.92
sys 5.68

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 191 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 J0704.8+4907 @ 106.207 49.1318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits outfile=/scratch/kocevski/101450/cmap_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.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=106.207 yref=49.1318 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.32
user 0.37
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits outfile=/scratch/kocevski/101450/cmap_HighResolution_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.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=106.207 yref=49.1318 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.36
user 0.37
sys 0.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101450/Model_4FGL_J0704.8+4907_daily_bin1390.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 HB 9
Working on...
/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits........................!
real 25.57
user 23.11
sys 2.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits', '/scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits', expMap='/scratch/kocevski/101450/expmap_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits', expCube='/scratch/kocevski/101450/ltcube_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101450/Model_4FGL_J0704.8+4907_daily_bin1390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0704.8+4907'

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.520e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/101450/ft1_filtered_4FGL_J0704.8+4907_daily_bin1390.fits
Spacecraft file(s): /scratch/kocevski/101450/ft2_4FGL_J0704.8+4907_daily_bin1390.fits
Exposure map: /scratch/kocevski/101450/expmap_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits
Exposure cube: /scratch/kocevski/101450/ltcube_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101450/Model_4FGL_J0704.8+4907_daily_bin1390.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) = 852.042239018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2523       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29247E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6603       1.0000         .10000E-03   10000.    
     9 'norm      '    12.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44841E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11292E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    232.24       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15642E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    45.626       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15054E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50438E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12822E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4830       1.0000         .10000E-03   10000.    
    26 'norm      '    7.1337       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .69159       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   849.2308     FROM MIGRAD    STATUS=FAILED      1480 CALLS     4387 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1989.9        .18548E-02** at limit **
   2  norm         10000.0        1284.6        .18156E-02** at limit **
   3  norm          1189.5        2724.1        .80270E-02   -.19971E-02
   4  Prefactor     .10000E-03    57.372        .18142E-02** at limit **
   5  Prefactor    10000.0        1950.1        .19551E-02** at limit **
   6  Prefactor     .10011E-03    201.74        .21400E-02** at limit **
   7  Prefactor     .10000E-03    50.491        .18142E-02** at limit **
   8  norm          7.6779        97.708        .14489E-03   -.20632E-03
   9  norm          11.819        291.82        .11502E-03   -.10678E-03
  10  Prefactor     .11113E-03    1471.8        .21210E-02** at limit **
  11  norm          .10000E-03    34.922        .16938E-02** at limit **
  12  Prefactor     .10001E-03    16.190        .11495E-02** at limit **
  13  Prefactor     .10000E-03    44.935        .18142E-02** at limit **
  14  Prefactor     232.09        174.68        .13279E-03   -.15767E-03
  15  Prefactor     .10000E-03    43.996        .18142E-02** at limit **
  16  norm          45.798        107.90        .29679E-03   -.27995E-03
  17  Prefactor     53.161        106.92        .27560E-03   -.31666E-03
  18  Prefactor     .10006E-03    151.62        .18142E-02** at limit **
  19  norm          3.1015        2.8208        .41911E-04    .32135E-02
  20  Prefactor     10.707        63.795        .12261E-03   -.41771E-04
  21  Prefactor     .10032E-03    146.84        .21153E-02** at limit **
  22  norm          .10002E-03    16.165        .11376E-02** at limit **
  23  Prefactor     .10013E-03    25.178        .14354E-02** at limit **
  24  Prefactor     .10022E-03    89.995        .18142E-02** at limit **
  25  norm          2.4802        7.5167        .12916E-03   -.12655E-02
  26  norm          7.1361        5.0060        .50536E-04    .23068E-02
  27  Normalizat    .69260        .80899        .45534E-03   -.61779E-04
  28  Prefactor     1.0680        .51293        .23797E-03   -.25770E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   849.2308     FROM SIMPLEX   STATUS=UNCHANGED   1402 CALLS     5789 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1989.9        .18997E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        1284.6        .74799E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1189.5        2724.1        .13209E-05   -.86654    
   4  Prefactor     .10000E-03    57.372        .10708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1950.1        .11756E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10011E-03    201.74        .68631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.491        .83591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6779        97.708        .22001E-05   -1.5154    
   9  norm          11.819        291.82        .21957E-05   -1.5020    
  10  Prefactor     .11113E-03    1471.8        .78527E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.922        .60917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    16.190        .10176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.935        .36382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     232.09        174.68        .18453E-05   -1.2649    
  15  Prefactor     .10000E-03    43.996        .71925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          45.798        107.90        .20996E-05   -1.4353    
  17  Prefactor     53.161        106.92        .20773E-05   -1.4248    
  18  Prefactor     .10006E-03    151.62        .81169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1015        2.8208        .22428E-05   -1.5356    
  20  Prefactor     10.707        63.795        .21822E-05   -1.5053    
  21  Prefactor     .10032E-03    146.84        .75094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    16.165        .39640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10013E-03    25.178        .18489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10022E-03    89.995        .61241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4802        7.5167        .22476E-05   -1.5393    
  26  norm          7.1361        5.0060        .22167E-05   -1.5174    
  27  Normalizat    .69260        .80899        .15185E-05   -1.0419    
  28  Prefactor     1.0680        .51293        .13212E-05   -.90495    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   849.2253     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     6334 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9397.0        .37095E-03** at limit **
   2  norm         10000.0        6317.0        .36312E-03** at limit **
   3  norm         10000.0        5793.1        .16054E-01** at limit **
   4  Prefactor     .10000E-03    58.727        .36285E-03** at limit **
   5  Prefactor    10000.0        9125.6        .39101E-01** at limit **
   6  Prefactor     .10000E-03    219.57        .42801E-03** at limit **
   7  Prefactor     .10000E-03    51.536        .36285E-03** at limit **
   8  norm          7.6828        102.14        .28978E-04   -.10877E-04
   9  norm          11.827        330.94        .23005E-04   -.58068E-06
  10  Prefactor     .10000E-03    6783.3        .42421E-03** at limit **
  11  norm          .10000E-03    35.417        .33877E-03** at limit **
  12  Prefactor     .10000E-03    16.297        .22989E-03** at limit **
  13  Prefactor     .10000E-03    45.759        .36285E-03** at limit **
  14  Prefactor     232.10        176.12        .26558E-04    .81334E-06
  15  Prefactor     .10000E-03    44.792        .36285E-03** at limit **
  16  norm          45.812        109.42        .59357E-04   -.36151E-05
  17  Prefactor     53.165        108.84        .55119E-04   -.47954E-05
  18  Prefactor     .10000E-03    161.44        .36285E-03** at limit **
  19  norm          3.1005        2.8230        .83821E-05    .72901E-05
  20  Prefactor     10.717        65.982        .49045E-05   -.53894E-05
  21  Prefactor     .10000E-03    156.10        .42306E-03** at limit **
  22  norm          .10000E-03    16.276        .22752E-03** at limit **
  23  Prefactor     .10000E-03    25.437        .28709E-03** at limit **
  24  Prefactor     .10000E-03    93.370        .36285E-03** at limit **
  25  norm          2.4747        7.5264        .51665E-05   -.21455E-04
  26  norm          7.1360        5.0085        .10107E-04    .33182E-05
  27  Normalizat    .69255        .86362        .18213E-04    .41353E-05
  28  Prefactor     1.0679        .53832        .47594E-04   -.42996E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.6828
  norm       = 11.8275
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 232.104
  Prefactor  = 0.0001
  norm       = 45.8123
  Prefactor  = 53.1651
  Prefactor  = 0.0001
  norm       = 3.10055
  Prefactor  = 10.7167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47474
  norm       = 7.13602
  Normalizat = 0.692554
  Prefactor  = 1.06792
 **********
 **   18 **HESSE 
 **********

 FCN=   849.2253     FROM HESSE     STATUS=OK           491 CALLS     6825 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9397.0        .37095E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        6317.0        .36312E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        5793.5        .32108E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    58.727        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9124.6        .78203E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    219.57        .85602E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.536        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6828        102.17        .57956E-05   -1.5154    
   9  norm          11.827        330.85        .46009E-05   -1.5020    
  10  Prefactor     .10000E-03    6783.4        .84841E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    35.417        .67753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.297        .45978E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.759        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     232.10        176.13        .53116E-05   -1.2649    
  15  Prefactor     .10000E-03    44.792        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          45.812        109.49        .23743E-05   -1.4353    
  17  Prefactor     53.165        108.90        .22048E-05   -1.4248    
  18  Prefactor     .10000E-03    161.44        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1005        2.8240        .33529E-06   -1.5356    
  20  Prefactor     10.717        66.366        .98089E-06   -1.5053    
  21  Prefactor     .10000E-03    156.10        .84613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.276        .45504E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.437        .57418E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    93.370        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4747        7.5278        .10333E-05   -1.5393    
  26  norm          7.1360        5.0085        .20214E-05   -1.5174    
  27  Normalizat    .69255        .86463        .36427E-05   -1.0419    
  28  Prefactor     1.0679        .53843        .95189E-05   -.90499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02326e-09
Minuit parameter uncertainties:
  1  0.592638
  2  0.109248
  3  0.724246
  4  8.86369e-07
  5  1.69623
  6  0.000137157
  7  3.94711e-06
  8  56.1518
  9  125.885
  10  0.0032854
  11  5.17318e-06
  12  9.19391e-07
  13  1.38507e-05
  14  176.533
  15  1.14997e-05
  16  109.977
  17  109.308
  18  0.000114071
  19  2.82408
  20  53.4252
  21  0.00010524
  22  1.86136e-05
  23  4.1589e-06
  24  0.000125098
  25  7.53066
  26  5.00884
  27  0.882558
  28  0.541191
Done.

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

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  5.173e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.068e+00  5.412e-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:  6.926e-01  8.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 106.207 49.132
Photon Flux Upper Limit: 9.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101450/likelihoodResults_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.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) = 849.225461647
delta logL = -0.000132652192747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 849.22533267
delta logL = -3.67563688997e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   849.2253     FROM MIGRAD    STATUS=FAILED       102 CALLS      272 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    6225.1        .94351E-02** at limit **
   2  alpha         1.5135        2.9019        .17787        .54065E-07
   3  Normalizat    .69255        .12134        .45553E-03    .49035E-04
   4  Prefactor     1.0679        .77975E-01    .23797E-03    .93613E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   849.2253     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      453 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    6225.1        .11341E-02** at limit **
   2  alpha         1.5135        2.9019        .18005E-05    .54065E-07
   3  Normalizat    .69255        .12134        .22117E-07    .49035E-04
   4  Prefactor     1.0679        .77975E-01    .16697E-08    .93613E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   849.2253     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      481 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.833        .18870E-02** at limit **
   2  alpha         1.5021        3.0934        .71148E-02   -.76699E-08
   3  Normalizat    .69255        .77700        .18221E-04    .48776E-04
   4  Prefactor     1.0679        .50504        .47594E-04    .93099E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50208
  Normalizat = 0.692555
  Prefactor  = 1.06792
 **********
 **   18 **HESSE 
 **********

 FCN=   849.2253     FROM HESSE     STATUS=OK            23 CALLS      504 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    64.446        .37740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5021        3.4333        .14230E-02   -.41061    
   3  Normalizat    .69255        .77648        .36442E-05   -1.0419    
   4  Prefactor     1.0679        .50477        .95188E-05   -.90498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48402e-11
Minuit parameter uncertainties:
  1  0.000297211
  2  646.349
  3  0.789317
  4  0.50704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101450': 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) = 849.225328359
delta logL = 6.35899482404e-07

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  2.972e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  1.502e+00  6.463e+02  0.000e+00  5.000e+00 ( 1.000e+00)
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.068e+00  5.070e-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:  6.926e-01  7.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 106.207 49.132

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/101450/cmap_HighResolution_599616001_599875201_4FGL_J0704.8+4907_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-04', job_status='DONE', photon_flux_upper_limit='9.11e-07', time_completed='2021-08-26 17:50:29.207256', job_id='101450', GAL2='1.07', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630025429.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1390' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 101450: <4FGL_J0704.8+4907_daily_bin1390> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin1390> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 17:40:46 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:40:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 17:40:47 2021
Terminated at Thu Aug 26 17:50:30 2021
Results reported at Thu Aug 26 17:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1390 106.207 49.1318 599616001 599875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0704.8+4907 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   445.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            584 sec.

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

