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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1245
RA = 183.001, Dec = -23.4494
tmin = 562032001, tmax = 562291201
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='410233', job_status='RUN', time_executed='2021-09-05 04:02:30.747834', time_epoch_executed='1630839750.75' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410233

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410233/ft1_4FGL_J1212.0-2326_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410233/ft1_4FGL_J1212.0-2326_daily_bin1245.fits outfile=/scratch/kocevski/410233/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1245.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=562032001.0 tmax=562291201.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.63
user 3.32
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.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/410233/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.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.52
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/410233/ltcube_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.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/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits
.....................!
real 12.57
user 11.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/410233/ltcube_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits outfile=/scratch/kocevski/410233/expmap_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.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/410233/ltcube_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits
.....................!
real 192.56
user 185.68
sys 5.28

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits outfile=/scratch/kocevski/410233/cmap_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.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=183.001 yref=-23.4494 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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits outfile=/scratch/kocevski/410233/cmap_HighResolution_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.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=183.001 yref=-23.4494 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410233/Model_4FGL_J1212.0-2326_daily_bin1245.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/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits.....................!
real 56.08
user 54.27
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits', '/scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits', expMap='/scratch/kocevski/410233/expmap_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits', expCube='/scratch/kocevski/410233/ltcube_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410233/Model_4FGL_J1212.0-2326_daily_bin1245.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410233/ft1_filtered_4FGL_J1212.0-2326_daily_bin1245.fits
Spacecraft file(s): /scratch/kocevski/410233/ft2_4FGL_J1212.0-2326_daily_bin1245.fits
Exposure map: /scratch/kocevski/410233/expmap_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits
Exposure cube: /scratch/kocevski/410233/ltcube_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410233/Model_4FGL_J1212.0-2326_daily_bin1245.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) = 5882.66141616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0776       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.925       1.0000         .10000E-03   10000.    
     7 'norm      '    32.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .15669E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26696E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5854       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.075       1.0000         .10000E-03   10000.    
    19 'norm      '    .55300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.010       1.0000         .10000E-03   10000.    
    21 'norm      '    9.0887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0961       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6892       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5882.655     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2724 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6354        .14686E-06** at limit **
   2  Prefactor     .10000E-03    21.763        .34600E-07** at limit **
   3  norm          1.0777        1.5811        .27644E-06    .45300E-03
   4  Prefactor     .10000E-03    21.316        .12349E-06** at limit **
   5  Prefactor     .10000E-03    6.3830        .13641E-06** at limit **
   6  Prefactor     24.925        31.822        .77129E-06    .16975E-03
   7  norm          32.115        32.519        .32885E-07    .24869E-04
   8  Prefactor     .10000E-03    8.7773        .75211E-07** at limit **
   9  norm          .10000E-03    3.7894        .83069E-06** at limit **
  10  Prefactor     .10002E-03    6.8847       -.63302E-05** at limit **
  11  Prefactor     .10000E-03    33.068        .96004E-07** at limit **
  12  Prefactor     19.122        33.375        .39361E-05    .42901E-03
  13  Prefactor     .10000E-03    19.340       -.40170E-07** at limit **
  14  Prefactor     .10000E-03    30.460        .62007E-07** at limit **
  15  Prefactor     .10000E-03    11.347       -.22740E-06** at limit **
  16  Prefactor     3.5855        4.4248        .62585E-08    .69044E-05
  17  Prefactor     10.985        3.4196       -.20110E-07   -.30872E-04
  18  Prefactor     21.076        18.994       -.22167E-06    .14051E-04
  19  norm          .55362        1.3591        .52934E-08    .73199E-04
  20  Prefactor     30.827        111.11       -.11513E-04   -.52479E-04
  21  norm          9.0956        14.561        .33145E-05    .68970E-03
  22  Prefactor     9.0934        12.069        .44349E-06    .60547E-03
  23  Normalizat    1.6891        .29028        .15742E-05    .46836E-03
  24  Prefactor     .88460        .14330       -.70607E-06    .75611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9246
  norm       = 32.1154
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 19.122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58549
  Prefactor  = 10.9854
  Prefactor  = 21.0756
  norm       = 0.553619
  Prefactor  = 30.8272
  norm       = 9.09563
  Prefactor  = 9.09345
  Normalizat = 1.68908
  Prefactor  = 0.884601
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.655     FROM HESSE     STATUS=OK           395 CALLS     3119 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0777        1.5443        .11191E-03   -1.5500    
   4  Prefactor     .10000E-03    21.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.925        31.852        .80236E-04   -1.4709    
   7  norm          32.115        32.544        .70706E-04   -1.4574    
   8  Prefactor     .10000E-03    8.7924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.991        .28387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    8.4513        .29805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.122        34.245        .91480E-04   -1.4833    
  13  Prefactor     .10000E-03    19.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5855        4.4198        .17342E-03   -1.5329    
  17  Prefactor     10.985        3.4203        .76407E-04   -1.5045    
  18  Prefactor     21.076        19.007        .87248E-04   -1.4789    
  19  norm          .55362        1.3470        .13069E-03   -1.5559    
  20  Prefactor     30.827        112.66        .35976E-03   -1.4597    
  21  norm          9.0956        14.684        .66472E-03   -1.5105    
  22  Prefactor     9.0934        12.009        .66445E-03   -1.5105    
  23  Normalizat    1.6891        .34585        .33412E-03   -.72595    
  24  Prefactor     .88460        .17049        .21465E-03   -.96681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90875e-09
Minuit parameter uncertainties:
  1  1.3044e-05
  2  1.82523e-06
  3  1.54435
  4  6.25352e-06
  5  9.98743e-06
  6  31.874
  7  32.562
  8  4.986e-06
  9  0.000396625
  10  0.000797738
  11  2.25522e-05
  12  34.2797
  13  1.86095e-05
  14  4.94269e-05
  15  1.48129e-05
  16  4.42018
  17  3.42041
  18  19.0125
  19  1.34709
  20  113.45
  21  14.6896
  22  12.0123
  23  0.346347
  24  0.170597
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.861e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.846e-01  1.706e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.689e+00  3.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410233/likelihoodResults_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.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) = 5882.65514066
delta logL = -0.000244721216404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.65489709
delta logL = -1.15327384265e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5882.655     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9697        .90712E-02** at limit **
   2  Index         1.9683        5.0580        .50000        .21644E-04
   3  Normalizat    1.6891        .35878E-02    .75512E-01   -.13958E-03
   4  Prefactor     .88460        .17521E-02    .44808E-01   -.51952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96829
  Normalizat = 1.68908
  Prefactor  = 0.884597
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.655     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9683        8.9371        .50000       -.65145    
   3  Normalizat    1.6891        .12896E-01    .33411E-03   -.72595    
   4  Prefactor     .88460        .63020E-02    .21465E-03   -.96681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40616e-07
Minuit parameter uncertainties:
  1  3.00638e-06
  2  90.092
  3  0.0128963
  4  0.00630196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410233': 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) = 5882.65489627
delta logL = -3.34735887009e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.006e-06  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.968e+00  9.009e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.846e-01  6.302e-03  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.689e+00  1.290e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/410233/cmap_HighResolution_562032001_562291201_4FGL_J1212.0-2326_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-05 04:13:44.818727', job_id='410233', GAL2='0.88', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1630840424.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1245' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 410233: <4FGL_J1212.0-2326_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1245> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:44 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:00:46 2021
Terminated at Sun Sep  5 04:13:45 2021
Results reported at Sun Sep  5 04:13:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1245 183.001 -23.4494 562032001 562291201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

