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


Performing analysis on: 4FGL_J0612.5-3138_daily_bin1017
RA = 93.128, Dec = -31.6381
tmin = 502934401, tmax = 503193601
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='201996', job_status='RUN', time_executed='2021-08-24 17:45:56.403807', time_epoch_executed='1629852356.4' WHERE source_name='4FGL J0612.5-3138' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201996/ft1_4FGL_J0612.5-3138_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201996/ft1_4FGL_J0612.5-3138_daily_bin1017.fits outfile=/scratch/kocevski/201996/ft1_filteredMKT_4FGL_J0612.5-3138_daily_bin1017.fits ra=93.128 dec=-31.6381 rad=12.0 tmin=502934401.0 tmax=503193601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.93
user 3.38
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.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/201996/ft1_filteredMKT_4FGL_J0612.5-3138_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.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.77
user 0.33
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/201996/ltcube_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.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/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits
.....................!
real 14.90
user 14.17
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/201996/ltcube_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits outfile=/scratch/kocevski/201996/expmap_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.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/201996/ltcube_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits
.....................!
real 190.55
user 185.09
sys 4.94

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

Setting source of interest to:
4FGL J0612.5-3138 @ 93.128 -31.6381

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits outfile=/scratch/kocevski/201996/cmap_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.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=93.128 yref=-31.6381 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.04
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits outfile=/scratch/kocevski/201996/cmap_HighResolution_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.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=93.128 yref=-31.6381 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.86
user 0.40
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/201996/Model_4FGL_J0612.5-3138_daily_bin1017.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/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits....................!
real 76.65
user 74.68
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits', '/scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits', expMap='/scratch/kocevski/201996/expmap_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits', expCube='/scratch/kocevski/201996/ltcube_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/201996/Model_4FGL_J0612.5-3138_daily_bin1017.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0612.5-3138'

4FGL J0612.5-3138
   Spectrum: PowerLaw
306    Prefactor:  8.025e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
307        Index:  2.500e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  8.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/201996/ft1_filtered_4FGL_J0612.5-3138_daily_bin1017.fits
Spacecraft file(s): /scratch/kocevski/201996/ft2_4FGL_J0612.5-3138_daily_bin1017.fits
Exposure map: /scratch/kocevski/201996/expmap_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits
Exposure cube: /scratch/kocevski/201996/ltcube_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/201996/Model_4FGL_J0612.5-3138_daily_bin1017.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) = 5791.94700848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49747E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5749       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6824       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29569E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.449       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9848       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16424E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2194       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5116       1.0000         .10000E-03   10000.    
    25 'norm      '    11.867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2425       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7627       1.0000         .10000E-03   10000.    
    28 'norm      '    6.0863       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.9504       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5791.906     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4601 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10278E-03    1.2133        .19769E-06** at limit **
   2  Prefactor     .10000E-03    70.284       -.18012E-04** at limit **
   3  Prefactor     .10000E-03    7.3174       -.12601E-06** at limit **
   4  Prefactor     .10000E-03    23.896        .38639E-05** at limit **
   5  Prefactor     .10000E-03    3.1513        .14091E-08** at limit **
   6  norm          .10000E-03    1.6099       -.34017E-08** at limit **
   7  Prefactor     .10000E-03    131.06        .31724E-04** at limit **
   8  norm          4.5749        3.1472       -.89293E-07   -.15784E-03
   9  norm          .10000E-03    11.859       -.70341E-06** at limit **
  10  Prefactor     5.6783        9.2277       -.29836E-06   -.74384E-04
  11  Prefactor     .10000E-03    356.51       -.51735E-04** at limit **
  12  Prefactor     .10000E-03    74.435        .20719E-05** at limit **
  13  Prefactor     .10000E-03    31.777        .16173E-05** at limit **
  14  Prefactor     12.991        15.632       -.30575E-06   -.39870E-04
  15  Prefactor     57.446        53.251       -.24817E-05   -.11522E-04
  16  Prefactor     .10000E-03    10.449        .17950E-05** at limit **
  17  norm          9.9714        8.7816       -.29496E-06   -.26291E-03
  18  Prefactor     .10000E-03    116.41        .18533E-04** at limit **
  19  Prefactor     .10000E-03    3.3746        .22677E-07** at limit **
  20  Prefactor     .10000E-03    16.297        .15620E-05** at limit **
  21  norm          .10000E-03    10.971       -.10672E-05** at limit **
  22  Prefactor     .10000E-03    21.941       -.57720E-05** at limit **
  23  Prefactor     4.2195        5.8758        .33084E-06   -.15992E-03
  24  norm          1.5116        1.4594        .29153E-07    .50772E-04
  25  norm          11.852        17.507       -.10120E-05   -.15732E-03
  26  Prefactor     5.2384        9.3800       -.21429E-06   -.37178E-03
  27  Prefactor     1.7618        6.0279       -.24431E-05   -.81661E-03
  28  norm          6.0908        14.289        .55360E-06    .46052E-04
  29  Prefactor     .10000E-03    9.6315       -.53018E-06** at limit **
  30  norm          .10000E-03    166.05       -.47433E-04** at limit **
  31  norm          2.9380        356.09       -.48112E-04    .11824E-04
  32  Normalizat    1.3653        .23373       -.24893E-06    .19279E-04
  33  Prefactor     .76039        .11711        .16051E-05   -.27300E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.57491
  norm       = 0.0001
  Prefactor  = 5.67825
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9909
  Prefactor  = 57.4463
  Prefactor  = 0.0001
  norm       = 9.97144
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21954
  norm       = 1.51157
  norm       = 11.8515
  Prefactor  = 5.23843
  Prefactor  = 1.76177
  norm       = 6.09082
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 2.93796
  Normalizat = 1.36532
  Prefactor  = 0.760391
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.906     FROM HESSE     STATUS=OK           699 CALLS     5300 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10278E-03    1.9495        .31250E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1519        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6141        .94285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    131.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5749        3.1805        .10430E-03   -1.5280    
   9  norm          .10000E-03    11.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6783        9.2257        .16851E-03   -1.5231    
  11  Prefactor     .10000E-03    362.07        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.991        15.630        .11113E-03   -1.4987    
  15  Prefactor     57.446        53.331        .52928E-04   -1.4191    
  16  Prefactor     .10000E-03    10.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9714        8.7513        .12681E-03   -1.5076    
  18  Prefactor     .10000E-03    119.79        .40796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3858        .13635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2195        5.8651        .19618E-03   -1.5297    
  24  norm          1.5116        1.4708        .84829E-04   -1.5462    
  25  norm          11.852        17.332        .11629E-03   -1.5019    
  26  Prefactor     5.2384        9.2229        .17555E-03   -1.5250    
  27  Prefactor     1.7618        6.1588        .31556E-03   -1.5442    
  28  norm          6.0908        14.302        .16274E-03   -1.5214    
  29  Prefactor     .10000E-03    9.6491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    164.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.9380        361.29        .23643E-03   -1.5365    
  32  Normalizat    1.3653        .26696        .30317E-03   -.81637    
  33  Prefactor     .76039        .13378        .19720E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26071e-09
Minuit parameter uncertainties:
  1  0.00465681
  2  1.96501e-05
  3  3.85697e-05
  4  0.000150984
  5  1.03724e-06
  6  1.78131e-06
  7  0.000983104
  8  3.18065
  9  2.86479e-06
  10  9.22803
  11  0.00130768
  12  7.02569e-05
  13  6.75248e-05
  14  15.6351
  15  53.3758
  16  3.41997e-06
  17  8.75243
  18  0.00056977
  19  1.70943e-06
  20  1.0059e-05
  21  1.96031e-06
  22  1.91313e-06
  23  5.86587
  24  1.47084
  25  17.3389
  26  9.22536
  27  6.16104
  28  14.31
  29  1.15865e-05
  30  0.00129442
  31  65.568
  32  0.267233
  33  0.133835
Done.

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

Extracting fit parameters...

4FGL J0612.5-3138
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.752e-05  1.000e-04  1.000e+04 ( 1.000e-13)
307        Index:  2.500e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  8.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.604e-01  1.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.365e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 93.128 -31.638
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201996/likelihoodResults_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.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) = 5791.90642279
delta logL = -0.000149691436491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5791.90627324
delta logL = -1.33628418553e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5791.906     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7568.4        .90712E-02** at limit **
   2  Index         2.4354        5.2826        .50000       -.35276E-05
   3  Normalizat    1.3653        .14316        .68528E-01    .10254E-04
   4  Prefactor     .76039        .71593E-01    .43199E-01    .10873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4354
  Normalizat = 1.36532
  Prefactor  = 0.760391
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.906     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4354        6.2079        .50000       -.53858    
   3  Normalizat    1.3653        .24139        .30317E-03   -.81637    
   4  Prefactor     .76039        .12185        .19720E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55279e-11
Minuit parameter uncertainties:
  1  2.1586e-06
  2  4.80985
  3  0.241593
  4  0.121897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201996': 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) = 5791.90627315
delta logL = -5.14619387104e-08

Extracting fit parameters...

4FGL J0612.5-3138
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.159e-06  1.000e-04  1.000e+04 ( 1.000e-13)
307        Index:  2.435e+00  4.810e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  8.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  7.604e-01  1.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.365e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 93.128 -31.638

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/201996/cmap_HighResolution_502934401_503193601_4FGL_J0612.5-3138_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-24 18:01:32.472308', job_id='201996', GAL2='0.76', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1629853292.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-5.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1017' AND source_name='4FGL J0612.5-3138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 18:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 201996: <4FGL_J0612.5-3138_daily_bin1017> in cluster <slac> Done

Job <4FGL_J0612.5-3138_daily_bin1017> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 24 17:45:36 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 17:45:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 17:45:38 2021
Terminated at Tue Aug 24 18:01:33 2021
Results reported at Tue Aug 24 18:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0612.5-3138_daily_bin1017 93.128 -31.6381 502934401 503193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0612.5-3138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

