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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1097
RA = 183.001, Dec = -23.4494
tmin = 523670401, tmax = 523929601
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='408822', job_status='RUN', time_executed='2021-09-05 03:56:42.316763', time_epoch_executed='1630839402.32' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408822/ft1_4FGL_J1212.0-2326_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408822/ft1_4FGL_J1212.0-2326_daily_bin1097.fits outfile=/scratch/kocevski/408822/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1097.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=523670401.0 tmax=523929601.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.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.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/408822/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1097.fits evtable="EVENTS" outfile="/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/408822/ltcube_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.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/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/408822/ltcube_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits outfile=/scratch/kocevski/408822/expmap_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.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/408822/ltcube_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits
.....................!
real 190.06
user 185.16
sys 4.60

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/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits outfile=/scratch/kocevski/408822/cmap_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits outfile=/scratch/kocevski/408822/cmap_HighResolution_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408822/Model_4FGL_J1212.0-2326_daily_bin1097.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/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits.....................!
real 69.48
user 68.15
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits', '/scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits', expMap='/scratch/kocevski/408822/expmap_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits', expCube='/scratch/kocevski/408822/ltcube_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/408822/Model_4FGL_J1212.0-2326_daily_bin1097.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/408822/ft1_filtered_4FGL_J1212.0-2326_daily_bin1097.fits
Spacecraft file(s): /scratch/kocevski/408822/ft2_4FGL_J1212.0-2326_daily_bin1097.fits
Exposure map: /scratch/kocevski/408822/expmap_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits
Exposure cube: /scratch/kocevski/408822/ltcube_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/408822/Model_4FGL_J1212.0-2326_daily_bin1097.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) = 8398.89061944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.931       1.0000         .10000E-03   10000.    
     3 'norm      '    .52813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.321       1.0000         .10000E-03   10000.    
     7 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7032       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10049       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.346       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2188       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0494       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=   8398.882     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2729 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9532        .79376E-07** at limit **
   2  Prefactor     41.936        37.130       -.81243E-06    .21339E-04
   3  norm          .52783        1.1379        .64697E-06    .49601E-03
   4  Prefactor     .10000E-03    16.719        .87745E-06** at limit **
   5  Prefactor     .10000E-03    3.5910       -.32100E-06** at limit **
   6  Prefactor     11.309        21.655        .62778E-06   -.73811E-04
   7  norm          .10000E-03    31.171        .20823E-06** at limit **
   8  Prefactor     .10000E-03    2.7377       -.11304E-07** at limit **
   9  norm          2.6202        2.6171        .40265E-07    .16104E-04
  10  Prefactor     2.9051        6.3438        .76320E-05   -.97468E-03
  11  Prefactor     .10000E-03    13.427       -.38408E-06** at limit **
  12  Prefactor     51.707        39.316       -.58191E-06   -.32873E-03
  13  Prefactor     .10000E-03    29.723       -.60638E-06** at limit **
  14  Prefactor     .10000E-03    19.331       -.27429E-06** at limit **
  15  Prefactor     4.7045        10.165        .20820E-05   -.46742E-04
  16  Prefactor     .10000E-03    2.4265        .11947E-06** at limit **
  17  Prefactor     10.194        2.8031        .46243E-07   -.65874E-04
  18  Prefactor     .10000E-03    6.4081        .26904E-06** at limit **
  19  norm          .10098        .45195       -.21625E-06   -.17960E-03
  20  Prefactor     41.368        64.876       -.14143E-04    .33007E-04
  21  norm          2.9947        6.9126        .12686E-04    .40113E-03
  22  Prefactor     2.2236        5.8380       -.50293E-05   -.45672E-03
  23  Normalizat    1.1620        .21521       -.17615E-05   -.26566E-04
  24  Prefactor     1.0494        .11039       -.91327E-06   -.13347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.9361
  norm       = 0.527826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6202
  Prefactor  = 2.90512
  Prefactor  = 0.0001
  Prefactor  = 51.7071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70454
  Prefactor  = 0.0001
  Prefactor  = 10.1944
  Prefactor  = 0.0001
  norm       = 0.100977
  Prefactor  = 41.3676
  norm       = 2.99472
  Prefactor  = 2.22357
  Normalizat = 1.16195
  Prefactor  = 1.04944
 **********
 **   18 **HESSE 
 **********

 FCN=   8398.882     FROM HESSE     STATUS=OK           397 CALLS     3126 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9701        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.936        37.002        .30953E-03   -1.4412    
   3  norm          .52783        1.1234        .13565E-03   -1.5563    
   4  Prefactor     .10000E-03    16.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6917        .33883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.309        21.647        .11906E-03   -1.5035    
   7  norm          .10000E-03    31.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7397        .14807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6202        2.6168        .14360E-03   -1.5384    
  10  Prefactor     2.9051        6.3392        .11939E-02   -1.5367    
  11  Prefactor     .10000E-03    13.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.707        39.475        .55750E-04   -1.4269    
  13  Prefactor     .10000E-03    30.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7045        10.148        .92776E-03   -1.5274    
  16  Prefactor     .10000E-03    2.4381        .13938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.194        2.8029        .78309E-04   -1.5069    
  18  Prefactor     .10000E-03    6.4328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10098        2.0169        .11608E-02   -1.5644    
  20  Prefactor     41.368        64.835        .62341E-04   -1.4421    
  21  norm          2.9947        6.9061        .11713E-02   -1.5362    
  22  Prefactor     2.2236        5.7392        .27608E-03   -1.5410    
  23  Normalizat    1.1620        .25180        .34146E-03   -.87787    
  24  Prefactor     1.0494        .13038        .18398E-03   -.91099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26554e-08
Minuit parameter uncertainties:
  1  1.60622e-05
  2  37.0227
  3  1.1234
  4  7.77818e-05
  5  4.27531e-05
  6  21.6619
  7  9.75757e-05
  8  8.86478e-07
  9  2.61693
  10  6.34063
  11  4.35687e-05
  12  39.4951
  13  8.18404e-05
  14  2.88757e-05
  15  10.1516
  16  1.11921e-05
  17  2.8029
  18  3.53583e-05
  19  0.902155
  20  64.946
  21  6.90796
  22  5.74058
  23  0.252062
  24  0.130415
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.184e-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:  1.049e+00  1.304e-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.162e+00  2.521e-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: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408822/likelihoodResults_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.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) = 8398.88174236
delta logL = -0.00015634063675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8398.88158564
delta logL = 3.80268829758e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9707       1.0000          .0000       10.000    
     3 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   8398.824     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      287 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30534        .95507        .90712E-02   -.30613E-02
   2  Index         3.0965        .97857        .42777E-01    .40700E-03
   3  Normalizat    1.1494        .21632        .77503E-01    .20229E-04
   4  Prefactor     1.0509        .10936        .39943E-01   -.12191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.305336
  Index      = 3.09646
  Normalizat = 1.14945
  Prefactor  = 1.05091
 **********
 **   18 **HESSE 
 **********

 FCN=   8398.824     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .24E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30534        132.55        .14619E-03   -1.5818    
   2  Index         3.0965        6.4000        .17111E-01   -.39056    
   3  Normalizat    1.1494        .17445        .34305E-03   -.88180    
   4  Prefactor     1.0509        .79683E-01    .18384E-03   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44145e-05
Minuit parameter uncertainties:
  1  12.7499
  2  13.5527
  3  0.17454
  4  0.0796921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408822': 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) = 8398.8237936
delta logL = 0.0577924163881

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.053e-01  1.275e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  3.096e+00  1.355e+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:  1.051e+00  7.969e-02  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.149e+00  1.745e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/408822/cmap_HighResolution_523670401_523929601_4FGL_J1212.0-2326_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-05 04:10:25.653996', job_id='408822', GAL2='1.05', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1630840225.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.78e-02', ts2='0.12', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1097' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:10:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 408822: <4FGL_J1212.0-2326_daily_bin1097> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1097> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 03:55:59 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:56:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:56:01 2021
Terminated at Sun Sep  5 04:10:25 2021
Results reported at Sun Sep  5 04:10:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1097 183.001 -23.4494 523670401 523929601 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 :                                   816.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

